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

Commit

Permalink
Merge pull request #1302 from mesosphere/hectorj2f/node_selector_tole…
Browse files Browse the repository at this point in the history
…rations

chore: set the tolerations and nodeSelector
  • Loading branch information
k8s-ci-robot authored Oct 20, 2020
2 parents 5787ab8 + 71821a6 commit 59e60d9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions charts/kubefed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ chart and their default values.
| controllermanager.image | Name of the KubeFed image. | kubefed |
| controllermanager.tag | Tag of the KubeFed image. | latest |
| controllermanager.imagePullPolicy | Image pull policy. | IfNotPresent |
| controllermanager.commonTolerations | Tolerations for all the pods. | [] |
| controllermanager.commonNodeSelector | Node selector for all the pods. | {} |
| controllermanager.featureGates.PushReconciler | Push reconciler feature. | true |
| controllermanager.featureGates.SchedulerPreferences | Scheduler preferences feature. | true |
| controllermanager.featureGates.CrossClusterServiceDiscovery | Cross cluster service discovery feature. | false |
Expand Down
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 59e60d9

Please sign in to comment.