|
@ -1,6 +1,7 @@ |
|
|
{{- if .Values.ingress.enabled -}} |
|
|
{{- if .Values.ingress.enabled -}} |
|
|
{{- $fullName := include "peertube.fullname" . -}} |
|
|
{{- $fullName := include "peertube.fullname" . -}} |
|
|
{{- $ingressPath := .Values.ingress.path -}} |
|
|
{{- $ingressPath := .Values.ingress.path -}} |
|
|
|
|
|
{{- $ingressPathType := .Values.ingress.pathType -}} |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
kind: Ingress |
|
|
kind: Ingress |
|
|
metadata: |
|
|
metadata: |
|
@ -15,6 +16,7 @@ metadata: |
|
|
{{ toYaml . | indent 4 }} |
|
|
{{ toYaml . | indent 4 }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
spec: |
|
|
spec: |
|
|
|
|
|
ingressClassName: {{ .Values.ingress.ingressClassName }} |
|
|
{{- if .Values.ingress.tls }} |
|
|
{{- if .Values.ingress.tls }} |
|
|
tls: |
|
|
tls: |
|
|
{{- range .Values.ingress.tls }} |
|
|
{{- range .Values.ingress.tls }} |
|
@ -31,7 +33,7 @@ spec: |
|
|
http: |
|
|
http: |
|
|
paths: |
|
|
paths: |
|
|
- path: {{ $ingressPath }} |
|
|
- path: {{ $ingressPath }} |
|
|
pathType: Prefix |
|
|
|
|
|
|
|
|
pathType: {{ $ingressPathType }} |
|
|
backend: |
|
|
backend: |
|
|
service: |
|
|
service: |
|
|
name: {{ $fullName }} |
|
|
name: {{ $fullName }} |
|
|