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

chore: set the tolerations and nodeSelector #1302

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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