mikeeq
4 years ago
1 changed files with 36 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||||
|
{{- if .Values.ingress -}} |
||||
|
{{- if .Values.ingress.enabled -}} |
||||
|
apiVersion: networking.k8s.io/v1 |
||||
|
kind: Ingress |
||||
|
metadata: |
||||
|
annotations: |
||||
|
{{ toYaml .Values.ingress.annotations | indent 4 }} |
||||
|
labels: |
||||
|
{{ toYaml .Values.ingress.labels | indent 4 }} |
||||
|
name: {{ template "helm-guestbook.fullname" .}}-socks-ingress |
||||
|
spec: |
||||
|
{{- if .Values.ingress.tls }} |
||||
|
tls: |
||||
|
{{- range .Values.ingress.tls }} |
||||
|
- hosts: |
||||
|
{{- range .hosts }} |
||||
|
- {{ . | quote }} |
||||
|
{{- end }} |
||||
|
secretName: {{ .secretName }} |
||||
|
{{- end }} |
||||
|
{{- end }} |
||||
|
rules: |
||||
|
{{- range .Values.ingress.hosts }} |
||||
|
- host: {{ . | quote }} |
||||
|
http: |
||||
|
paths: |
||||
|
- path: {{ $.Values.ingress.path }} |
||||
|
pathType: Prefix |
||||
|
backend: |
||||
|
service: |
||||
|
name: http |
||||
|
port: |
||||
|
number: {{ $.Values.service.port }} |
||||
|
{{- end }} |
||||
|
{{- end }} |
||||
|
{{- end }} |
Loading…
Reference in new issue