diff --git a/chart/kubecop/templates/controller-statefulset.yaml b/chart/kubecop/templates/controller-statefulset.yaml index 87391b9..c3e62fa 100644 --- a/chart/kubecop/templates/controller-statefulset.yaml +++ b/chart/kubecop/templates/controller-statefulset.yaml @@ -52,3 +52,5 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + tolerations: + {{- toYaml .Values.tolerations | nindent 8 }} diff --git a/chart/kubecop/templates/deamonset.yaml b/chart/kubecop/templates/deamonset.yaml index 4ea75f4..5e81fc2 100644 --- a/chart/kubecop/templates/deamonset.yaml +++ b/chart/kubecop/templates/deamonset.yaml @@ -170,10 +170,7 @@ spec: readOnly: true {{- end }} tolerations: - - effect: NoSchedule - operator: Exists - - effect: NoExecute - operator: Exists + {{- toYaml .Values.tolerations | nindent 8 }} volumes: - name: host hostPath: diff --git a/chart/kubecop/values.yaml b/chart/kubecop/values.yaml index 15954c0..3968e3b 100644 --- a/chart/kubecop/values.yaml +++ b/chart/kubecop/values.yaml @@ -92,7 +92,11 @@ securityContextNormal: {} nodeSelector: {} -tolerations: [] +tolerations: + - effect: NoSchedule + operator: Exists + - effect: NoExecute + operator: Exists affinity: nodeAffinity: