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: