Skip to content

Commit

Permalink
Add security context to deployments interacting with pulp-file-storag…
Browse files Browse the repository at this point in the history
…e PVC

Add security context runAsUser and fsGroup to deployments interacting with pulp-file-storage PVC

fixes #5142
https://pulp.plan.io/issues/5142
  • Loading branch information
chambridge committed Feb 18, 2021
1 parent 1f31f56 commit 8d82b82
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/5142.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add security context runAsUser and fsGroup to deployments interacting with pulp-file-storage PVC
3 changes: 3 additions & 0 deletions roles/pulp-api/templates/pulp-api.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
labels:
app: pulp-api
spec:
securityContext:
runAsUser: 0
fsGroup: 0
#serviceAccountName: "{{ project_name }}-anyuid"
volumes:
- name: pulp-server
Expand Down
3 changes: 3 additions & 0 deletions roles/pulp-content/templates/pulp-content.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
labels:
app: pulp-content
spec:
securityContext:
runAsUser: 0
fsGroup: 0
#serviceAccountName: "{{ project_name }}-anyuid"
volumes:
- name: pulp-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
labels:
app: pulp-resource-manager
spec:
securityContext:
runAsUser: 0
fsGroup: 0
#serviceAccountName: "{{ project_name }}-anyuid"
volumes:
- name: pulp-server
Expand Down
3 changes: 3 additions & 0 deletions roles/pulp-worker/templates/pulp-worker.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
labels:
app: pulp-worker
spec:
securityContext:
runAsUser: 0
fsGroup: 0
#serviceAccountName: "{{ project_name }}-anyuid"
volumes:
- name: pulp-server
Expand Down

0 comments on commit 8d82b82

Please sign in to comment.