Skip to content

Commit

Permalink
Update dbs2go-global-r.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arooshap authored Jul 11, 2024
1 parent b63ca0d commit 94166b6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions kubernetes/cmsweb/services/dbs2go-global-r.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,19 @@ spec:
prometheus.io/path: "/dbs/prod/global/DBSReader/metrics"
prometheus.io/port: "9252"
spec:
initContainers:
- name: init-chown
image: busybox
command: ["sh", "-c", "chown -R 1000:2000 /data/srv/logs/dbs"]
securityContext:
runAsUser: 0
volumeMounts:
- name: logs
mountPath: /data/srv/logs/dbs
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 2000
containers:
- image: registry.cern.ch/cmsweb/dbs2go #imagetag
lifecycle:
postStart:
exec:
command:
- bash
- -c
- sudo chmod 0777 /data/srv/logs/dbs; sudo chown _dbs2go:_dbs2go /data/srv/logs/dbs
name: dbs2go-global-r
imagePullPolicy: Always
env:
Expand Down

0 comments on commit 94166b6

Please sign in to comment.