mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
fix: k8s templates update for helm
Why: This change addresses the need by: 1. upgrade mongo replica version 2. access mongo via service url 3. change the expose servicePort to numeric Signed-off-by: Jiang Yitao <jiangyt.cn@gmail.com>
This commit is contained in:
parent
c25162aac7
commit
5aeb88ee6c
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
dependencies:
|
||||
- name: mongodb-replicaset
|
||||
version: 3.6.x
|
||||
version: 3.11.x
|
||||
repository: "https://kubernetes-charts.storage.googleapis.com/"
|
||||
condition: mongodb-replicaset.enabled
|
||||
|
|
|
@ -75,7 +75,7 @@ else use user-provided URL.
|
|||
{{- if (index .Values "mongodb-replicaset" "enabled") -}}
|
||||
{{- $count := (int (index .Values "mongodb-replicaset" "replicas")) -}}
|
||||
{{- $release := .Release.Name -}}
|
||||
mongodb://{{- range $v := until $count }}{{ $release }}-mongodb-replicaset-{{ $v }}.{{ $release }}-mongodb-replicaset:27017{{ if ne $v (sub $count 1) }},{{- end -}}{{- end -}}?replicaSet={{ index .Values "mongodb-replicaset" "replicaSetName" }}
|
||||
mongodb://{{ $release }}-mongodb-replicaset:27017/admin?replicaSet={{ index .Values "mongodb-replicaset" "replicaSetName" }}
|
||||
{{- else -}}
|
||||
{{- index .Values "mongodb-replicaset" "url" -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -35,6 +35,6 @@ spec:
|
|||
- path: {{ $ingressPath }}
|
||||
backend:
|
||||
serviceName: {{ $fullName }}
|
||||
servicePort: http
|
||||
servicePort: 80
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue