helm-charts/charts/node-labeler/templates/daemonset.yaml
Mohammed Naser cd1357cf6a Run on all architectures
Change-Id: I3c26080278f17b03b1129e2eac98cee578102704
2020-07-24 16:14:01 -04:00

40 lines
942 B
YAML
Executable File

---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ include "node-labeler.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "node-labeler.labels" . | indent 4 }}
spec:
selector:
matchLabels:
{{ include "node-labeler.labels" . | indent 6 }}
template:
metadata:
labels:
{{ include "node-labeler.labels" . | indent 8 }}
spec:
tolerations:
- operator: Exists
effect: NoSchedule
serviceAccountName: {{ include "node-labeler.fullname" . }}
containers:
- name: node-labeler
image: vexxhost/node-labeler:latest
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
env:
- name: NODE
valueFrom:
fieldRef:
fieldPath: spec.nodeName
updateStrategy:
rollingUpdate:
maxUnavailable: 10%