mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Support k8s >= 1.22 ingress API
See https://github.com/wekan/charts/pull/1
This commit is contained in:
parent
2827c0e3ed
commit
b84cc037c1
4 changed files with 10 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -38,3 +38,4 @@ ehthumbs.db
|
||||||
# Helm chart
|
# Helm chart
|
||||||
# Chart dependencies
|
# Chart dependencies
|
||||||
/helm/wekan/**/*.tgz
|
/helm/wekan/**/*.tgz
|
||||||
|
/helm/wekan/charts
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
{{- $fullName := include "wekan.fullname" . -}}
|
{{- $fullName := include "wekan.fullname" . -}}
|
||||||
{{- $servicePort := .Values.service.port -}}
|
{{- $servicePort := .Values.service.port -}}
|
||||||
{{- $ingressPath := .Values.ingress.path -}}
|
{{- $ingressPath := .Values.ingress.path -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
{{- $ingressPathType := .Values.ingress.pathtype -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
|
|
@ -27,17 +28,17 @@ spec:
|
||||||
secretName: {{ .secretName }}
|
secretName: {{ .secretName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
backend:
|
|
||||||
serviceName: {{ $fullName }}
|
|
||||||
servicePort: 8080
|
|
||||||
rules:
|
rules:
|
||||||
{{- range .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- host: {{ . }}
|
- host: {{ . }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: {{ $ingressPath }}
|
- path: {{ $ingressPath }}
|
||||||
|
pathType: {{ $ingressPathType }}
|
||||||
backend:
|
backend:
|
||||||
serviceName: {{ $fullName }}
|
service:
|
||||||
servicePort: 8080
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ serviceAccounts:
|
||||||
##
|
##
|
||||||
image:
|
image:
|
||||||
repository: quay.io/wekan/wekan
|
repository: quay.io/wekan/wekan
|
||||||
tag: v5.83
|
tag: v5.65
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
## Configuration for wekan component
|
## Configuration for wekan component
|
||||||
|
|
@ -56,6 +56,7 @@ ingress:
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
path: /*
|
path: /*
|
||||||
|
pathtype: ImplementationSpecific
|
||||||
# This must match 'endpoint', unless your client supports different
|
# This must match 'endpoint', unless your client supports different
|
||||||
# hostnames.
|
# hostnames.
|
||||||
hosts: [ wekan.local ]
|
hosts: [ wekan.local ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue