Skip to content

Commit 540db0c

Browse files
committed
hide security context & probes
Signed-off-by: Omer Aplatony <[email protected]>
1 parent 8f9e9e4 commit 540db0c

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed

charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ spec:
3232
{{- toYaml . | nindent 8 }}
3333
{{- end }}
3434
serviceAccountName: {{ include "vertical-pod-autoscaler.admissionController.fullname" . }}
35-
{{- with .Values.admissionController.podSecurityContext }}
3635
securityContext:
37-
{{- toYaml . | nindent 8 }}
38-
{{- end }}
36+
runAsNonRoot: true
37+
runAsUser: 65534
3938
containers:
4039
- name: admission-controller
4140
image: {{ include "vertical-pod-autoscaler.admissionController.image" . }}
@@ -62,9 +61,20 @@ spec:
6261
name: prometheus
6362
protocol: TCP
6463
livenessProbe:
65-
{{- toYaml .Values.admissionController.livenessProbe | nindent 12 }}
64+
httpGet:
65+
path: /health-check
66+
port: prometheus
67+
scheme: HTTP
68+
initialDelaySeconds: 5
69+
periodSeconds: 10
70+
failureThreshold: 3
6671
readinessProbe:
67-
{{- toYaml .Values.admissionController.readinessProbe | nindent 12 }}
72+
httpGet:
73+
path: /health-check
74+
port: prometheus
75+
scheme: HTTP
76+
periodSeconds: 10
77+
failureThreshold: 3
6878
volumeMounts:
6979
{{- toYaml .Values.admissionController.volumeMounts | nindent 12 }}
7080
{{- with .Values.admissionController.resources }}

charts/vertical-pod-autoscaler/values.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,6 @@ admissionController:
5656
# Additional args for the Admission Controller default container.
5757
extraArgs: []
5858

59-
# Security context for the Admission Controller pod
60-
podSecurityContext:
61-
runAsNonRoot: true
62-
runAsUser: 65534
63-
64-
# Liveness probe configuration for the Admission Controller default container.
65-
livenessProbe:
66-
httpGet:
67-
path: /health-check
68-
port: prometheus
69-
scheme: HTTP
70-
initialDelaySeconds: 5
71-
periodSeconds: 10
72-
failureThreshold: 3
73-
74-
# Readiness probe configuration for the _Updater_ default container.
75-
readinessProbe:
76-
httpGet:
77-
path: /health-check
78-
port: prometheus
79-
scheme: HTTP
80-
periodSeconds: 10
81-
failureThreshold: 3
82-
8359
# Resources for the Admission Controller default container.
8460
resources:
8561
limits:

0 commit comments

Comments
 (0)