diff --git a/k8s.yaml b/k8s.yaml index e87a20e..30cccc9 100644 --- a/k8s.yaml +++ b/k8s.yaml @@ -18,6 +18,18 @@ spec: runAsUser: 1001 imagePullSecrets: - name: registry-auth + initContainers: + - name: init-dir + image: alpine:latest + command: + - chown + - 1001:1001 + - /app/cache + securityContext: + runAsNonRoot: false + volumeMounts: + - name: cache + mountPath: "/app/cache" containers: - name: web image: registry.k8s.astropenguin.net/astrojs:2022.03.15.04 @@ -56,7 +68,7 @@ spec: accessModes: [ "ReadWriteOnce" ] resources: requests: - storage: 10Gi + storage: 1Gi storageClassName: local-storage ---