27 lines
982 B
YAML
27 lines
982 B
YAML
{{ if .Values.appProxy.enabled }}
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "cf-app-proxy.fullname" . }}
|
|
labels: {{- include "cf-app-proxy.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{ if .Values.appProxy.ingress.class }}kubernetes.io/ingress.class: {{ .Values.appProxy.ingress.class }}{{ end }}
|
|
{{ range $key, $value := .Values.appProxy.ingress.annotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{ end }}
|
|
spec:
|
|
rules:
|
|
- host: {{ .Values.appProxy.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: {{ if .Values.appProxy.ingress.pathPrefix }}{{ .Values.appProxy.ingress.pathPrefix }}{{ else }}'/'{{end}}
|
|
backend:
|
|
serviceName: {{ include "cf-app-proxy.fullname" . }}
|
|
servicePort: 80
|
|
{{ if .Values.appProxy.ingress.tlsSecret }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.appProxy.ingress.host }}
|
|
secretName: {{ .Values.appProxy.ingress.tlsSecret }}
|
|
{{ end }}
|
|
{{ end }} |