diff --git a/local-dev/kubectl-patches/api.yaml b/local-dev/kubectl-patches/api.yaml index 301be7e502..61c15d6a5a 100644 --- a/local-dev/kubectl-patches/api.yaml +++ b/local-dev/kubectl-patches/api.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: api + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/api/src" name: api-src diff --git a/local-dev/kubectl-patches/auth-server.yaml b/local-dev/kubectl-patches/auth-server.yaml index 7dbb37859a..80b4f69ba7 100644 --- a/local-dev/kubectl-patches/auth-server.yaml +++ b/local-dev/kubectl-patches/auth-server.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: auth-server + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/auth-server/src" name: auth-server-src diff --git a/local-dev/kubectl-patches/controllerhandler.yaml b/local-dev/kubectl-patches/controllerhandler.yaml index a771a8f1a8..b6d00f6fb5 100644 --- a/local-dev/kubectl-patches/controllerhandler.yaml +++ b/local-dev/kubectl-patches/controllerhandler.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: controllerhandler + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/controllerhandler/src" name: controllerhandler-src diff --git a/local-dev/kubectl-patches/logs2email.yaml b/local-dev/kubectl-patches/logs2email.yaml index ddb4e78dd9..28ba4350b9 100644 --- a/local-dev/kubectl-patches/logs2email.yaml +++ b/local-dev/kubectl-patches/logs2email.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: logs2email + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/logs2email/src" name: logs2email-src diff --git a/local-dev/kubectl-patches/logs2microsoftteams.yaml b/local-dev/kubectl-patches/logs2microsoftteams.yaml index 042d0c8469..54d2264c1e 100644 --- a/local-dev/kubectl-patches/logs2microsoftteams.yaml +++ b/local-dev/kubectl-patches/logs2microsoftteams.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: logs2microsoftteams + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/logs2microsoftteams/src" name: logs2microsoftteams-src diff --git a/local-dev/kubectl-patches/logs2rocketchat.yaml b/local-dev/kubectl-patches/logs2rocketchat.yaml index 02fd02f1b9..d925c9da8f 100644 --- a/local-dev/kubectl-patches/logs2rocketchat.yaml +++ b/local-dev/kubectl-patches/logs2rocketchat.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: logs2rocketchat + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/logs2rocketchat/src" name: logs2rocketchat-src diff --git a/local-dev/kubectl-patches/logs2slack.yaml b/local-dev/kubectl-patches/logs2slack.yaml index 5e082e4461..f475cce6e6 100644 --- a/local-dev/kubectl-patches/logs2slack.yaml +++ b/local-dev/kubectl-patches/logs2slack.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: logs2slack + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/logs2slack/src" name: logs2slack-src diff --git a/local-dev/kubectl-patches/ui.yaml b/local-dev/kubectl-patches/ui.yaml index bb39c3d53d..3ba1181f78 100644 --- a/local-dev/kubectl-patches/ui.yaml +++ b/local-dev/kubectl-patches/ui.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: ui + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - name: services-ui mountPath: /app/services/ui diff --git a/local-dev/kubectl-patches/webhook-handler.yaml b/local-dev/kubectl-patches/webhook-handler.yaml index 0a823c92a4..b6d48b9996 100644 --- a/local-dev/kubectl-patches/webhook-handler.yaml +++ b/local-dev/kubectl-patches/webhook-handler.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: webhook-handler + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/webhook-handler/src" name: webhook-handler-src diff --git a/local-dev/kubectl-patches/webhooks2tasks.yaml b/local-dev/kubectl-patches/webhooks2tasks.yaml index 193dda984a..ed1e7ba709 100644 --- a/local-dev/kubectl-patches/webhooks2tasks.yaml +++ b/local-dev/kubectl-patches/webhooks2tasks.yaml @@ -5,8 +5,12 @@ metadata: spec: template: spec: + securityContext: + runAsUser: 1000 containers: - name: webhooks2tasks + command: ["yarn"] + args: ["run", "dev"] volumeMounts: - mountPath: "/app/services/webhooks2tasks/src" name: webhooks2tasks-src