Skip to content

Commit

Permalink
Use root for couchdb container (#23)
Browse files Browse the repository at this point in the history
* Use root for couchdb container

* Bump version
  • Loading branch information
henokgetachew authored Sep 24, 2024
1 parent 51559d3 commit ea8b6b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cht-chart-4x/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ icon: https://avatars.githubusercontent.com/u/474424?s=200&v=4

type: application

version: 1.0.0
version: 1.0.1

appVersion: ""
3 changes: 3 additions & 0 deletions charts/cht-chart-4x/templates/couchdb-n-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
labels:
cht.service: couchdb-{{ $nodeNumber }}
spec:
securityContext:
runAsUser: 0 # Run as root
fsGroup: 0 # Set fsGroup to root
tolerations:
- key: {{ $root.Values.toleration.key }}
operator: {{ $root.Values.toleration.operator }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cht-chart-4x/templates/couchdb-single-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
labels:
cht.service: couchdb
spec:
securityContext:
runAsUser: 0 # Run as root
fsGroup: 0 # Set fsGroup to root
tolerations:
- key: {{ .Values.toleration.key }}
operator: {{ .Values.toleration.operator }}
Expand Down

0 comments on commit ea8b6b0

Please sign in to comment.