Skip to content

Commit

Permalink
Merge pull request #416 from runkecheng/feature_optimize_operator_ava…
Browse files Browse the repository at this point in the history
…ilability

Chart: optimize operator availability
  • Loading branch information
andyli029 authored Apr 1, 2022
2 parents e7eb189 + fdba485 commit 02d1eb8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions charts/mysql-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,22 @@ spec:
{{ toYaml .Values.manager.resources | indent 10 }}
serviceAccountName: {{ template "serviceAccountName" . }}
terminationGracePeriodSeconds: 10
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: {{ .Values.tolerationSeconds }}
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: {{ .Values.tolerationSeconds }}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- {{ template "mysql-operator.name" . }}
topologyKey: "kubernetes.io/hostname"
5 changes: 5 additions & 0 deletions charts/mysql-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ nameOverride: ""
fullnameOverride: ""
imagePrefix: ""

## node.kubernetes.io/not-ready:NoExecute
## node.kubernetes.io/unreachable:NoExecute
## operator`s toleration time of the above two taints.
tolerationSeconds: 30

manager:
image: radondb/mysql-operator
tag: latest
Expand Down

0 comments on commit 02d1eb8

Please sign in to comment.