Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
| admissionController.volumes[0].secret.defaultMode | int | `420` | |
| admissionController.volumes[0].secret.secretName | string | `"vpa-tls-certs"` | |
| commonLabels | object | `{}` | |
| containerSecurityContext | object | `{}` | |
| fullnameOverride | string | `nil` | |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `nil` | |
| podSecurityContext.runAsNonRoot | bool | `true` | |
| podSecurityContext.runAsUser | int | `65534` | |
| rbac.create | bool | `true` | |
| recommender.affinity | object | `{}` | |
| recommender.enabled | bool | `true` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "vertical-pod-autoscaler.admissionController.fullname" . }}
{{- with .Values.podSecurityContext }}
securityContext:
runAsNonRoot: true
runAsUser: 65534
{{ toYaml . | nindent 8 | trim }}
{{- end }}
{{- with .Values.admissionController.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -92,6 +93,10 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{ toYaml . | nindent 12 | trim }}
{{- end }}
volumes:
{{- toYaml .Values.admissionController.volumes | nindent 12 }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "vertical-pod-autoscaler.recommender.fullname" . }}
{{- with .Values.podSecurityContext }}
securityContext:
runAsNonRoot: true
runAsUser: 65534
{{ toYaml . | nindent 8 | trim }}
{{- end }}
containers:
- name: recommender
image: {{ include "vertical-pod-autoscaler.recommender.image" . }}
Expand Down Expand Up @@ -89,6 +90,10 @@ spec:
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{ toYaml . | nindent 10 | trim }}
{{- end }}
{{- with .Values.recommender.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "vertical-pod-autoscaler.updater.fullname" . }}
{{- with .Values.podSecurityContext }}
securityContext:
runAsNonRoot: true
runAsUser: 65534
{{ toYaml . | nindent 8 | trim }}
{{- end }}
containers:
- name: updater
image: {{ include "vertical-pod-autoscaler.updater.image" . }}
Expand Down Expand Up @@ -58,4 +59,8 @@ spec:
scheme: HTTP
periodSeconds: 10
failureThreshold: 3
{{- with .Values.containerSecurityContext }}
securityContext:
{{ toYaml . | nindent 12 | trim }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ rbac:
# If `true`, create `ClusterRole` & `ClusterRoleBinding` resources to enable access to the Kubernetes API.
create: true

podSecurityContext:
runAsNonRoot: true
runAsUser: 65534

containerSecurityContext: {}

admissionController:
enabled: true
image:
Expand Down