Merge pull request #3336 from chaunceyjiang/tolerations

feat: support for customizing tolerances for internal etcd
This commit is contained in:
karmada-bot 2023-03-27 17:36:48 +08:00 committed by GitHub
commit 35d6638263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View File

@ -196,7 +196,7 @@ helm install karmada-scheduler-estimator -n karmada-system ./charts/karmada
| Name | Description | Value |
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ---------------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `installMode` | InstallMode "host", "agent" and "component" are provided, "host" means install karmada in the control-cluster, "agent" means install agent client in the member cluster, "component" means install selected components in the control-cluster | `"host"` |
| `clusterDomain` | Default cluster domain for karmada | `"cluster.local"` |
| `components` | Selected components list, selectable values: "schedulerEstimator" | `[]` |
@ -233,6 +233,7 @@ helm install karmada-scheduler-estimator -n karmada-system ./charts/karmada
| `etcd.internal.pvc.size` | Storage size of the etcd, takes effect when`etcd.internal.storageType` is "pvc" | `""` |
| `etcd.internal.nodeSelector` | Node selector of the karmada-apiserver | `{}` |
| `etcd.internal.resources` | Resource quota of the etcd | `{}` |
| `etcd.internal.tolerations` | Tolerations of the internal etcd | `[]` |
| `agent.clusterName` | Name of the member cluster | `""` |
| `agent.clusterEndpoint` | Server endpoint of the member cluster | `""` |
| `agent.kubeconfig.caCrt` | CA CRT of the karmada certificate | `""` |
@ -293,9 +294,9 @@ helm install karmada-scheduler-estimator -n karmada-system ./charts/karmada
| `controllerManager.strategy` | Strategy of the karmada-controller-manager | `{"type": "RollingUpdate", "rollingUpdate": {"maxUnavailable": "0", "maxSurge": "50%"} }` |
| `controllerManager.featureGates` | FeatureGates of the karmada-controller-manager | `{"PropagateDeps": "false"}` |
| `controllerManager.controllers` | Controllers of the karmada-controller-manager | `""` |
| `controllerManager.extraCommandArgs` | extra command args of the karmada-controller-manager | `{}` |
| `controllerManager.extraCommandArgs` | extra command args of the karmada-controller-manager | `{}` |
| `apiServer.labels` | Labels of the karmada-apiserver deployment | `{"app": "karmada-apiserver"}` |
| `apiServer.serviceAnnotations` | Annotations of the karmada-apiserver service | `{}` |
| `apiServer.serviceAnnotations` | Annotations of the karmada-apiserver service | `{}` |
| `apiServer.replicaCount` | Target replicas of the karmada-apiserver | `1` |
| `apiServer.podLabels` | Labels of the karmada-apiserver pods | `{}` |
| `apiServer.podAnnotations` | Annotations of the karmada-apiserver pods | `{}` |

View File

@ -39,8 +39,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.etcd.internal.tolerations }}
tolerations:
- operator: Exists
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: etcd
image: {{ template "karmada.internal.etcd.image" . }}

View File

@ -578,6 +578,10 @@ etcd:
size: ""
## @param etcd.internal.nodeSelector node selector of the etcd
nodeSelector: {}
## @param etcd.internal.tolerations tolerations of the internal etcd
tolerations: []
# - key: node-role.kubernetes.io/master
# operator: Exists
## @param etcd.internal.resources
resources: {}
# If you do want to specify resources, uncomment the following