Skip to content

Commit

Permalink
Merge pull request #1522 from dmwm/arooshap-patch-7
Browse files Browse the repository at this point in the history
Update dbs2go-*.yaml to chown of the logs directory by using an init …
  • Loading branch information
arooshap authored Jul 12, 2024
2 parents 045d357 + 65aaba1 commit d141f90
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions kubernetes/cmsweb/services/dbs2go-global-r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@ spec:
prometheus.io/path: "/dbs/prod/global/DBSReader/metrics"
prometheus.io/port: "9252"
spec:
initContainers:
- command:
- sh
- -c
- |
apt-get update && apt-get install -y sudo && apt-get clean && \
chmod 0777 /data/srv/logs/dbs && chown 1000:1000 /data/srv/logs/dbs
image: ubuntu
imagePullPolicy: Always
name: init-install-sudo
resources: {}
securityContext:
runAsGroup: 0
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data/srv/logs/dbs
name: logs
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
19 changes: 19 additions & 0 deletions kubernetes/cmsweb/services/dbs2go-global-w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@ spec:
prometheus.io/path: "/dbs/prod/global/DBSWriter/metrics"
prometheus.io/port: "9253"
spec:
initContainers:
- command:
- sh
- -c
- |
apt-get update && apt-get install -y sudo && apt-get clean && \
chmod 0777 /data/srv/logs/dbs && chown 1000:1000 /data/srv/logs/dbs
image: ubuntu
imagePullPolicy: Always
name: init-install-sudo
resources: {}
securityContext:
runAsGroup: 0
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data/srv/logs/dbs
name: logs
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down

0 comments on commit d141f90

Please sign in to comment.