[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:
Frederik Mogensen
2020-03-20 13:34:10 -07:00
committed by GitHub
co-authored by Frederik Mogensen
parent c5989490ca
commit dc4e53a219
4 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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"` |
+3
View File
@@ -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 }}"
+12
View File
@@ -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: