Skip to content

Commit

Permalink
Add strategy, nodeSelector, affinity, tolerations (ytsaurus#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgburtsev authored Aug 19, 2024
1 parent 17369f6 commit 0f3d120
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ytop-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
{{- include "ytop-chart.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.controllerManager.replicas }}
strategy: {{- toYaml .Values.controllerManager.strategy | nindent 4 }}
revisionHistoryLimit: {{ .Values.controllerManager.revisionHistoryLimit }}
selector:
matchLabels:
Expand Down Expand Up @@ -77,6 +78,9 @@ spec:
- mountPath: /etc/certs/tls
name: metrics-cert
readOnly: true
nodeSelector: {{- toYaml .Values.controllerManager.nodeSelector | nindent 8 }}
tolerations: {{- toYaml .Values.controllerManager.tolerations | nindent 8 }}
affinity: {{- toYaml .Values.controllerManager.affinity | nindent 8 }}
securityContext:
runAsNonRoot: true
serviceAccountName: {{ include "ytop-chart.fullname" . }}-controller-manager
Expand Down
5 changes: 5 additions & 0 deletions ytop-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ controllerManager:
requests:
cpu: 10m
memory: 64Mi
nodeSelector: {}
affinity: {}
tolerations: []
replicas: 1
revisionHistoryLimit: 10
serviceAccount:
annotations: {}
strategy:
type: RollingUpdate
kubernetesClusterDomain: cluster.local
managerConfig:
controllerManagerConfigYaml: |-
Expand Down

0 comments on commit 0f3d120

Please sign in to comment.