mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 08:08:49 +01: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:
|
dependencies:
|
||||||
- name: mongodb-replicaset
|
- name: mongodb-replicaset
|
||||||
version: 3.6.x
|
version: 3.11.x
|
||||||
repository: "https://kubernetes-charts.storage.googleapis.com/"
|
repository: "https://kubernetes-charts.storage.googleapis.com/"
|
||||||
condition: mongodb-replicaset.enabled
|
condition: mongodb-replicaset.enabled
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ else use user-provided URL.
|
||||||
{{- if (index .Values "mongodb-replicaset" "enabled") -}}
|
{{- if (index .Values "mongodb-replicaset" "enabled") -}}
|
||||||
{{- $count := (int (index .Values "mongodb-replicaset" "replicas")) -}}
|
{{- $count := (int (index .Values "mongodb-replicaset" "replicas")) -}}
|
||||||
{{- $release := .Release.Name -}}
|
{{- $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 -}}
|
{{- else -}}
|
||||||
{{- index .Values "mongodb-replicaset" "url" -}}
|
{{- index .Values "mongodb-replicaset" "url" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,6 @@ spec:
|
||||||
- path: {{ $ingressPath }}
|
- path: {{ $ingressPath }}
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: http
|
servicePort: 80
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue