From 7aaca4fafade155fc18349268ef5e21720f4463f Mon Sep 17 00:00:00 2001 From: Joe Monk Date: Sun, 26 Jan 2025 23:30:30 +0000 Subject: [PATCH] Try security context --- apps/sonarr/deployment.yaml | 5 ++++- clusters/kairos/samba/deployment.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/sonarr/deployment.yaml b/apps/sonarr/deployment.yaml index 1eed61c..4b82ef2 100644 --- a/apps/sonarr/deployment.yaml +++ b/apps/sonarr/deployment.yaml @@ -67,4 +67,7 @@ spec: volumes: - name: config persistentVolumeClaim: - claimName: sonarr \ No newline at end of file + claimName: sonarr + securityContext: + runAsUser: 1000 + runAsGroup: 1000 \ No newline at end of file diff --git a/clusters/kairos/samba/deployment.yaml b/clusters/kairos/samba/deployment.yaml index a928b41..243410c 100644 --- a/clusters/kairos/samba/deployment.yaml +++ b/clusters/kairos/samba/deployment.yaml @@ -51,4 +51,7 @@ spec: path: /usr/local/data - name: samba-config configMap: - name: samba-config \ No newline at end of file + name: samba-config + securityContext: + runAsUser: 1000 + runAsGroup: 1000 \ No newline at end of file