Fix rollingUpdate strategy
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
This commit is contained in:
parent
b33bda9709
commit
33d11270b4
|
@ -13,6 +13,10 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.aggregatedApiserver.labels" . | nindent 6}}
|
{{- include "karmada.aggregatedApiserver.labels" . | nindent 6}}
|
||||||
replicas: {{ .Values.aggregatedApiServer.replicaCount }}
|
replicas: {{ .Values.aggregatedApiServer.replicaCount }}
|
||||||
|
{{- with .Values.aggregatedApiServer.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.aggregatedApiServer.podAnnotations }}
|
{{- with .Values.aggregatedApiServer.podAnnotations }}
|
||||||
|
|
|
@ -70,6 +70,10 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.agent.labels" . | indent 6}}
|
{{- include "karmada.agent.labels" . | indent 6}}
|
||||||
|
{{- with .Values.agent.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.agent.podAnnotations}}
|
{{- with .Values.agent.podAnnotations}}
|
||||||
|
|
|
@ -12,6 +12,10 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.apiserver.labels" . | nindent 6}}
|
{{- include "karmada.apiserver.labels" . | nindent 6}}
|
||||||
|
{{- with .Values.apiServer.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.apiServer.podAnnotations }}
|
{{- with .Values.apiServer.podAnnotations }}
|
||||||
|
|
|
@ -18,6 +18,10 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.cm.labels" . | nindent 6}}
|
{{- include "karmada.cm.labels" . | nindent 6}}
|
||||||
|
{{- with .Values.controllerManager.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.controllerManager.podAnnotations }}
|
{{- with .Values.controllerManager.podAnnotations }}
|
||||||
|
|
|
@ -19,6 +19,10 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.scheduler.labels" . | nindent 6}}
|
{{- include "karmada.scheduler.labels" . | nindent 6}}
|
||||||
|
{{- with .Values.scheduler.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.scheduler.podAnnotations}}
|
{{- with .Values.scheduler.podAnnotations}}
|
||||||
|
|
|
@ -16,6 +16,10 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: karmada-scheduler-estimator-{{ $clusterName }}
|
app: karmada-scheduler-estimator-{{ $clusterName }}
|
||||||
{{- include "karmada.schedulerEstimator.labels" . | nindent 6}}
|
{{- include "karmada.schedulerEstimator.labels" . | nindent 6}}
|
||||||
|
{{- with .Values.schedulerEstimator.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.schedulerEstimator.podAnnotations }}
|
{{- with .Values.schedulerEstimator.podAnnotations }}
|
||||||
|
|
|
@ -20,6 +20,10 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.webhook.labels" . | nindent 6}}
|
{{- include "karmada.webhook.labels" . | nindent 6}}
|
||||||
|
{{- with .Values.webhook.strategy }}
|
||||||
|
strategy:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.webhook.podAnnotations}}
|
{{- with .Values.webhook.podAnnotations}}
|
||||||
|
|
|
@ -19,11 +19,10 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "karmada.kube-cm.labels" . | nindent 6}}
|
{{- include "karmada.kube-cm.labels" . | nindent 6}}
|
||||||
|
{{- with .Values.kubeControllerManager.strategy }}
|
||||||
strategy:
|
strategy:
|
||||||
rollingUpdate:
|
{{- toYaml . | nindent 8 }}
|
||||||
maxSurge: 1
|
{{- end }}
|
||||||
maxUnavailable: 1
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.kubeControllerManager.podAnnotations }}
|
{{- with .Values.kubeControllerManager.podAnnotations }}
|
||||||
|
|
|
@ -114,6 +114,11 @@ scheduler:
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## webhook config
|
## webhook config
|
||||||
webhook:
|
webhook:
|
||||||
|
@ -153,6 +158,11 @@ webhook:
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## controller manager config
|
## controller manager config
|
||||||
controllerManager:
|
controllerManager:
|
||||||
|
@ -192,6 +202,11 @@ controllerManager:
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## karmada apiserver config
|
## karmada apiserver config
|
||||||
apiServer:
|
apiServer:
|
||||||
|
@ -246,6 +261,11 @@ apiServer:
|
||||||
nodePort: 0
|
nodePort: 0
|
||||||
maxRequestsInflight: 1500
|
maxRequestsInflight: 1500
|
||||||
maxMutatingRequestsInflight: 500
|
maxMutatingRequestsInflight: 500
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## karmada aggregated apiserver config
|
## karmada aggregated apiserver config
|
||||||
aggregatedApiServer:
|
aggregatedApiServer:
|
||||||
|
@ -287,6 +307,11 @@ aggregatedApiServer:
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## kubernetes controller manager config
|
## kubernetes controller manager config
|
||||||
kubeControllerManager:
|
kubeControllerManager:
|
||||||
|
@ -326,6 +351,11 @@ kubeControllerManager:
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## etcd config
|
## etcd config
|
||||||
etcd:
|
etcd:
|
||||||
|
@ -444,6 +474,11 @@ agent:
|
||||||
tolerations: { }
|
tolerations: { }
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
||||||
## karmada scheduler estimator
|
## karmada scheduler estimator
|
||||||
schedulerEstimator:
|
schedulerEstimator:
|
||||||
|
@ -503,3 +538,8 @@ schedulerEstimator:
|
||||||
tolerations: [ ]
|
tolerations: [ ]
|
||||||
# - key: node-role.kubernetes.io/master
|
# - key: node-role.kubernetes.io/master
|
||||||
# operator: Exists
|
# operator: Exists
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 50%
|
||||||
|
|
Loading…
Reference in New Issue