update
diff --git a/charts/goproxy/templates/install.yaml b/charts/goproxy/templates/install.yaml
index 51ba116..2d07294 100644
--- a/charts/goproxy/templates/install.yaml
+++ b/charts/goproxy/templates/install.yaml
@@ -28,6 +28,9 @@
labels:
app: goproxy
spec:
+ securityContext:
+ fsGroup: 65534
+ fsGroupChangePolicy: OnRootMismatch
containers:
- name: goproxy
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
@@ -37,14 +40,19 @@
containerPort: {{ .Values.port }}
protocol: TCP
command:
+ - /usr/local/bin/goproxy
- server
- --address=:{{ .Values.port }}
+ - --cacher-dir=/go/pkg/mod
env:
- name: GOMODCACHE
value: /go/pkg/mod
volumeMounts:
- name: cache-volume
mountPath: /go/pkg/mod
+ securityContext:
+ runAsUser: 65534
+ runAsGroup: 65534
volumes:
- name: cache-volume
persistentVolumeClaim: