Skip to content

Commit ec1764b

Browse files
authored
Remove explicit fsGroup definition (#3926)
There is no use-case that is relevant for enforcing the `fsGroup` as the default user's group. Our `nginx` user will already have access to the volumes being created, as they are made with `g+rwx`.
1 parent 22c165b commit ec1764b

File tree

7 files changed

+0
-14
lines changed

7 files changed

+0
-14
lines changed

deployments/daemon-set/nginx-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ spec:
2222
securityContext:
2323
seccompProfile:
2424
type: RuntimeDefault
25-
# fsGroup: 101 #nginx
2625
# volumes:
2726
# - name: nginx-etc
2827
# emptyDir: {}

deployments/daemon-set/nginx-plus-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ spec:
2222
securityContext:
2323
seccompProfile:
2424
type: RuntimeDefault
25-
# fsGroup: 101 #nginx
2625
# volumes:
2726
# - name: nginx-etc
2827
# emptyDir: {}

deployments/deployment/nginx-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ spec:
2323
securityContext:
2424
seccompProfile:
2525
type: RuntimeDefault
26-
# fsGroup: 101 #nginx
2726
# volumes:
2827
# - name: nginx-etc
2928
# emptyDir: {}

deployments/deployment/nginx-plus-ingress.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ spec:
2323
securityContext:
2424
seccompProfile:
2525
type: RuntimeDefault
26-
# fsGroup: 101 #nginx
2726
# volumes:
2827
# - name: nginx-etc
2928
# emptyDir: {}

deployments/helm-chart/templates/controller-daemonset.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ spec:
4242
securityContext:
4343
seccompProfile:
4444
type: RuntimeDefault
45-
{{- if .Values.controller.readOnlyRootFilesystem }}
46-
fsGroup: 101 #nginx
47-
{{- end }}
4845
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
4946
{{- if .Values.controller.nodeSelector }}
5047
nodeSelector:

deployments/helm-chart/templates/controller-deployment.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ spec:
8080
securityContext:
8181
seccompProfile:
8282
type: RuntimeDefault
83-
{{- if .Values.controller.readOnlyRootFilesystem }}
84-
fsGroup: 101 #nginx
85-
{{- end }}
8683
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
8784
hostNetwork: {{ .Values.controller.hostNetwork }}
8885
dnsPolicy: {{ .Values.controller.dnsPolicy }}

docs/content/configuration/security.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ When using manifests instead of Helm, uncomment the following sections of the de
6060
Refer to the below code-block for guidance:
6161

6262
```
63-
# fsGroup: 101 #nginx
64-
.
65-
.
66-
.
6763
# volumes:
6864
# - name: nginx-etc
6965
# emptyDir: {}

0 commit comments

Comments
 (0)