mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/dex] Add securityContext to deployment (#21487)
Signed-off-by: Frederik Mogensen <sodiaf@gmail.com> Co-authored-by: Frederik Mogensen <sodiaf@gmail.com>
This commit is contained in:
co-authored by
Frederik Mogensen
parent
c5989490ca
commit
dc4e53a219
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: dex
|
||||
version: 2.8.1
|
||||
version: 2.9.0
|
||||
appVersion: 2.21.0
|
||||
description: OpenID Connect Identity (OIDC) and OAuth 2.0 Provider with Pluggable Connectors
|
||||
keywords:
|
||||
|
||||
@@ -95,6 +95,7 @@ Parameters introduced starting from v2
|
||||
| `ports.web.nodePort` | K8S Service node port for the dex http/https listener | `32000` |
|
||||
| `ports.web.servicePort` | K8S Service port for the dex http/https listener | `32000` |
|
||||
| `rbac.create` | If `true`, create & use RBAC resources | `true` |
|
||||
| `securityContext` | Allow setting the securityContext of the main dex deployment | `` |
|
||||
| `service.loadBalancerIP` | IP override for K8S LoadBalancer Service | `""` |
|
||||
| `livenessProbe.enabled` | k8s liveness probe enabled (cannot be enabled when `https = true`) | `false` |
|
||||
| `livenessProbe.path` | k8s liveness probe http path | `"/healthz"` |
|
||||
|
||||
@@ -55,6 +55,9 @@ spec:
|
||||
affinity:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.securityContext }}
|
||||
securityContext: {{ toYaml .Values.securityContext | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: main
|
||||
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
||||
|
||||
@@ -25,6 +25,18 @@ tolerations: []
|
||||
# value: bar
|
||||
# effect: NoSchedule
|
||||
|
||||
securityContext:
|
||||
# Rejecting containers trying to run with root privileges
|
||||
# runAsNonRoot: true
|
||||
# Preventing privilege escalation to root privileges
|
||||
# allowPrivilegeEscalation: false
|
||||
# Set the user ID used to run the container
|
||||
# runAsUser: 1001
|
||||
# Set the primary group ID used to run all processes within any container of the pod
|
||||
# runAsGroup: 1001
|
||||
# Set the group ID associated with the container
|
||||
# fsGroup: 1001
|
||||
|
||||
replicas: 1
|
||||
|
||||
# resources:
|
||||
|
||||
Reference in New Issue
Block a user