From 4db82ed28546431bd8ea44fbf3db2fad8f3fdd75 Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Tue, 5 Dec 2023 17:20:05 -0500 Subject: [PATCH] runAsUser 1001 for dev env (#4203) --- kustomize/base/deployment.yaml | 3 +++ migrations/kustomize/overlays/dev/rqlite.yaml | 5 ++++- migrations/kustomize/overlays/okteto/rqlite.yaml | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/kustomize/base/deployment.yaml b/kustomize/base/deployment.yaml index c6a955adba..f7e7c91d5b 100644 --- a/kustomize/base/deployment.yaml +++ b/kustomize/base/deployment.yaml @@ -33,3 +33,6 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + securityContext: + runAsUser: 1001 + fsGroup: 1001 diff --git a/migrations/kustomize/overlays/dev/rqlite.yaml b/migrations/kustomize/overlays/dev/rqlite.yaml index bb2a830557..a2efe22f2e 100644 --- a/migrations/kustomize/overlays/dev/rqlite.yaml +++ b/migrations/kustomize/overlays/dev/rqlite.yaml @@ -104,7 +104,10 @@ spec: valueFrom: secretKeyRef: name: kotsadm-rqlite - key: password + key: password + securityContext: + runAsUser: 1001 + fsGroup: 1001 volumes: - name: authconfig secret: diff --git a/migrations/kustomize/overlays/okteto/rqlite.yaml b/migrations/kustomize/overlays/okteto/rqlite.yaml index bb2a830557..a2efe22f2e 100644 --- a/migrations/kustomize/overlays/okteto/rqlite.yaml +++ b/migrations/kustomize/overlays/okteto/rqlite.yaml @@ -104,7 +104,10 @@ spec: valueFrom: secretKeyRef: name: kotsadm-rqlite - key: password + key: password + securityContext: + runAsUser: 1001 + fsGroup: 1001 volumes: - name: authconfig secret: