Skip to content

Commit

Permalink
Merge pull request #121 from Onlineberatung/CARITAS-297-add-site24x7
Browse files Browse the repository at this point in the history
feat: CARITAS-297-add-site24x7
  • Loading branch information
Leandro13Silva13 authored Nov 7, 2024
2 parents 1ac7e5f + 905a9d9 commit 20d6138
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
21 changes: 20 additions & 1 deletion templates/userservice/userservice-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,18 @@ spec:
configMapKeyRef:
key: SPRING_SLEUTH_SAMPLER_PERCENTAGE
name: userservice-{{ .Release.Name }}-env
{{ - if .Values.global.site24x7Enabled }}
- name: SITE247_LICENSE_KEY
valueFrom:
secretKeyRef:
key: SITE247_LICENSE_KEY
name: userservice-secret-{{ .Release.Name }}-env
- name: JAVA_TOOL_OPTIONS
valueFrom:
configMapKeyRef:
key: JAVA_TOOL_OPTIONS
name: userservice-{{ .Release.Name }}-env
{{ - end }}
image: {{ .Values.userServiceImageName }}:{{ .Values.userServiceImageVersion }}
imagePullPolicy: Always
name: userservice
Expand Down Expand Up @@ -522,6 +534,10 @@ spec:
volumeMounts:
- mountPath: /import
name: userservice-import
{{ - if .Values.global.site24x7Enabled }}
- mountPath: /site24x7Files/
name: site24x7-files
{{ - end }}
- name: set-masterkey
image: badouralix/curl-jq
env:
Expand Down Expand Up @@ -572,4 +588,7 @@ spec:
restartPolicy: Always
volumes:
- name: userservice-import
emptyDir: {}
emptyDir: {}
- name: site24x7-files
configMap:
name: site24x7-files-{{ .Release.Name }}-configmap
3 changes: 3 additions & 0 deletions templates/userservice/userservice-env-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ data:
{{- end }}
SPRING_SLEUTH_WEB_ENABLED: {{ .Values.zipkin.enabled | default false | quote }}
SPRING_SLEUTH_SAMPLER_PERCENTAGE: {{ .Values.zipkin.samplerPercentage | default "1.0" | quote }}
{{ - if .Values.global.site24x7Enabled }}
JAVA_TOOL_OPTIONS: "-javaagent:/opt/apm/apminsight-javaagent.jar -Dapminsight.application.name=userservice-{{ .Release.Name }} -Dapminsight.log.dir=/home/apm"
{{ - end }}
kind: ConfigMap
metadata:
labels:
Expand Down
2 changes: 2 additions & 0 deletions templates/userservice/userservice-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ data:
ROCKET_SYSTEMUSER_PASSWORD: {{ .Values.rocketSystemuserPassword | b64enc | quote }}
{{- $mongourl := printf "mongodb://%s:%s@mongodb.%s:27017/rocketchat?retryWrites=false" .Values.global.rocketchatMongoUsername .Values.global.rocketchatMongoPassword .Release.Namespace }}
ROCKET_CHAT_MONGO_URL: {{ $mongourl | b64enc | quote }}
SITE247_LICENSE_KEY: {{ .Values.site24x7LicenseKey | b64enc | quote }}

6 changes: 5 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ global:
useExternalMariaDb: false
settingMainTenantSubdomainForSingleDomainMultitenancy: "not-needed"
migrationToolEnabled: false
site24x7Enabled: false

# Secrets MariaDB
mysqlRootPassword: "root"
Expand Down Expand Up @@ -310,4 +311,7 @@ weblate:
migration:
weblate:
useCustomResourcesPath: true
customResourcesPath: "resources/weblate/"
customResourcesPath: "resources/weblate/"

# site24x7
site24x7LicenseKey: "key"

0 comments on commit 20d6138

Please sign in to comment.