Skip to content

Commit e07f73d

Browse files
authored
[Helm][K8S] Add rootPath helm (#1593)
* Update of values.yaml to use a new variable to manage the application rootpath * Use rootPath of values in deployment to manage rootPath and probes
1 parent bfe38c7 commit e07f73d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

chart/stirling-pdf/templates/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ spec:
6262
imagePullPolicy: {{ .Values.image.pullPolicy }}
6363
securityContext:
6464
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
65-
{{- if .Values.envs }}
6665
env:
66+
- name: SYSTEM_ROOTURIPATH
67+
value: {{ .Values.rootPath}}
68+
{{- if .Values.envs }}
6769
{{ toYaml .Values.envs | indent 8 }}
6870
{{- end }}
6971
{{- if .Values.extraArgs }}
@@ -75,13 +77,13 @@ spec:
7577
containerPort: 8080
7678
livenessProbe:
7779
httpGet:
78-
path: /
80+
path: {{ .Values.rootPath}}
7981
port: http
8082
{{ toYaml .Values.probes.livenessHttpGetConfig | indent 12 }}
8183
{{ toYaml .Values.probes.liveness | indent 10 }}
8284
readinessProbe:
8385
httpGet:
84-
path: /
86+
path: {{ .Values.rootPath}}
8587
port: http
8688
{{ toYaml .Values.probes.readinessHttpGetConfig | indent 12 }}
8789
{{ toYaml .Values.probes.readiness | indent 10 }}

chart/stirling-pdf/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ secret:
1515
commonLabels: {}
1616
# team_name: dev
1717

18+
# rootpath for the application
19+
rootPath: /
20+
1821
envs: []
1922
# - name: UI_APP_NAME
2023
# value: "Stirling PDF"
@@ -24,8 +27,6 @@ envs: []
2427
# value: "Stirling PDF"
2528
# - name: ALLOW_GOOGLE_VISIBILITY
2629
# value: "true"
27-
# - name: APP_ROOT_PATH
28-
# value: "/"
2930
# - name: APP_LOCALE
3031
# value: "en_GB"
3132

0 commit comments

Comments
 (0)