Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: set the tolerations and nodeSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
Hector Fernandez committed Oct 19, 2020
1 parent 79339f5 commit 4533397
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
spec:
nodeSelector:
{{- toYaml .Values.commonNodeSelector | nindent 8 }}
tolerations:
{{- toYaml .Values.commonTolerations | nindent 8 }}
securityContext:
runAsUser: 1001
serviceAccountName: kubefed-controller
Expand Down Expand Up @@ -82,6 +86,10 @@ spec:
rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
spec:
nodeSelector:
{{- toYaml .Values.commonNodeSelector | nindent 8 }}
tolerations:
{{- toYaml .Values.commonTolerations | nindent 8 }}
securityContext:
runAsUser: 1001
serviceAccountName: kubefed-admission-webhook
Expand Down
14 changes: 13 additions & 1 deletion charts/kubefed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,19 @@ controllermanager:
SchedulerPreferences:
CrossClusterServiceDiscovery:
FederatedIngress:


## common node selector
commonNodeSelector: {}
# key1: value1
# key2: value2

## common tolerations
commonTolerations: []
# - key: "key"
# operator: "Equal"
# value: "value"
# effect: "NoSchedule"

controller:
annotations: {}
replicaCount: 2
Expand Down

0 comments on commit 4533397

Please sign in to comment.