1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-28 14:41:10 +01:00

make livenessprobe consistent across manifests; make helm chart configurable via values.yaml

This commit is contained in:
Amir Alavi
2022-01-12 11:40:57 -05:00
parent 551eced42a
commit f50a3fa119
5 changed files with 14 additions and 9 deletions

View File

@@ -68,6 +68,8 @@ spec:
- {{ $value | quote }} - {{ $value | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 16 }}
resources: resources:
{{- toYaml .Values.resources | nindent 16 }} {{- toYaml .Values.resources | nindent 16 }}
securityContext: securityContext:

View File

@@ -48,13 +48,7 @@ spec:
- containerPort: 10258 - containerPort: 10258
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
failureThreshold: 3 {{- toYaml .Values.livenessProbe | nindent 12 }}
httpGet:
path: /healthz
port: 10258
scheme: HTTPS
initialDelaySeconds: 3
periodSeconds: 3
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
securityContext: securityContext:

View File

@@ -94,3 +94,12 @@ serviceAccount:
# The name of the ServiceAccount to use. # The name of the ServiceAccount to use.
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: name:
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10258
scheme: HTTPS
initialDelaySeconds: 3
periodSeconds: 10

View File

@@ -40,7 +40,7 @@ spec:
port: 10258 port: 10258
scheme: HTTPS scheme: HTTPS
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 10
resources: resources:
requests: requests:
cpu: 500m cpu: 500m

View File

@@ -36,7 +36,7 @@ spec:
port: 10258 port: 10258
scheme: HTTPS scheme: HTTPS
initialDelaySeconds: 3 initialDelaySeconds: 3
periodSeconds: 3 periodSeconds: 10
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
capabilities: capabilities: