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
12 changes: 12 additions & 0 deletions deploy/k8s/ory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
spec:
securityContext:
runAsNonRoot: true
# Image users are named (ory/nonroot); the kubelet needs a numeric id to verify non-root.
runAsUser: 10000
runAsGroup: 10000
seccompProfile: { type: RuntimeDefault }
initContainers:
- name: migrate
Expand Down Expand Up @@ -104,6 +107,9 @@ spec:
spec:
securityContext:
runAsNonRoot: true
# Image users are named (ory/nonroot); the kubelet needs a numeric id to verify non-root.
runAsUser: 65532
runAsGroup: 65532
seccompProfile: { type: RuntimeDefault }
initContainers:
- name: migrate
Expand Down Expand Up @@ -173,6 +179,9 @@ spec:
spec:
securityContext:
runAsNonRoot: true
# Image users are named (ory/nonroot); the kubelet needs a numeric id to verify non-root.
runAsUser: 10000
runAsGroup: 10000
seccompProfile: { type: RuntimeDefault }
initContainers:
- name: migrate
Expand Down Expand Up @@ -240,6 +249,9 @@ spec:
spec:
securityContext:
runAsNonRoot: true
# Image users are named (ory/nonroot); the kubelet needs a numeric id to verify non-root.
runAsUser: 10000
runAsGroup: 10000
seccompProfile: { type: RuntimeDefault }
containers:
- name: oathkeeper
Expand Down
6 changes: 6 additions & 0 deletions deploy/k8s/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
spec:
securityContext:
runAsNonRoot: true
# The image's user is `node` (uid 1000); the kubelet needs the numeric id.
runAsUser: 1000
runAsGroup: 1000
seccompProfile: { type: RuntimeDefault }
containers:
- name: sso-ui
Expand Down Expand Up @@ -70,6 +73,9 @@ spec:
restartPolicy: OnFailure
securityContext:
runAsNonRoot: true
# The image's user is `node` (uid 1000); the kubelet needs the numeric id.
runAsUser: 1000
runAsGroup: 1000
seccompProfile: { type: RuntimeDefault }
containers:
- name: sync
Expand Down