Skip to content

Commit

Permalink
Merge pull request #127 from Onlineberatung/CARITAS-297-add-site24x7
Browse files Browse the repository at this point in the history
fix: CARITAS-297-add-site24x7
  • Loading branch information
tkuzynow authored Nov 28, 2024
2 parents 15622e3 + da9240e commit 955b2fb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions templates/userservice/userservice-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,27 @@ spec:
- name: wait-for-rocketchat
image: busybox
command: [ "sh", "-c", "until nc -z rocketchat 3000 > /dev/null; do echo Waiting for rocketchat.; sleep 5; done;" ]
{{- if .Values.global.site24x7Enabled }}
- name: site24x7
image: site24x7/apminsight-javaagent:latest
imagePullPolicy: IfNotPresent
command: [ 'cp', '-r', '/opt/site24x7/.', '/home/apm' ]
volumeMounts:
- name: s247agent
mountPath: /home/apm
- name: replace-site24x7-key
image: busybox
command: [ "sh", "-c", "sed -i 's/^license.key=.*/license.key='\"$SITE247_LICENSE_KEY\"'/g' /home/apm/apminsight.conf" ]
volumeMounts:
- name: s247agent
mountPath: /home/apm
env:
- name: SITE247_LICENSE_KEY
valueFrom:
secretKeyRef:
key: SITE247_LICENSE_KEY
name: userservice-secret-{{ .Release.Name }}-env
{{- end }}
containers:
- env:
- name: IDENTITY_OPENID_CONNECT_URL
Expand Down

0 comments on commit 955b2fb

Please sign in to comment.