diff options
| author | James Munnelly <munnerz@users.noreply.github.com> | 2019-04-14 21:18:24 +0100 |
|---|---|---|
| committer | James Munnelly <james@munnelly.eu> | 2019-04-15 15:23:59 +0100 |
| commit | afce06a837f4f325af64b38c659c7073613f913f (patch) | |
| tree | 0a909118d769a6683d8461cc667aa89c5facb93a /deploy/example-webhook/templates/ingress.yaml | |
| download | cert-manager-webhook-hostinger-afce06a837f4f325af64b38c659c7073613f913f.tar.gz cert-manager-webhook-hostinger-afce06a837f4f325af64b38c659c7073613f913f.zip | |
Initial commit
Diffstat (limited to 'deploy/example-webhook/templates/ingress.yaml')
| -rw-r--r-- | deploy/example-webhook/templates/ingress.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/deploy/example-webhook/templates/ingress.yaml b/deploy/example-webhook/templates/ingress.yaml new file mode 100644 index 0000000..37d8b61 --- /dev/null +++ b/deploy/example-webhook/templates/ingress.yaml @@ -0,0 +1,38 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "example-webhook.fullname" . -}} +{{- $ingressPath := .Values.ingress.path -}} +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + app: {{ include "example-webhook.name" . }} + chart: {{ include "example-webhook.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +{{- with .Values.ingress.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} +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: {{ $ingressPath }} + backend: + serviceName: {{ $fullName }} + servicePort: http + {{- end }} +{{- end }} |
