1 {{- if .Values.admin.ingress.enabled -}}
2 {{- $serviceName := include "kong.fullname" . -}}
3 {{- $servicePort := .Values.admin.servicePort -}}
4 {{- $path := .Values.admin.ingress.path -}}
5 {{- $tls := .Values.admin.ingress.tls -}}
6 {{- $hostname := .Values.admin.ingress.hostname -}}
7 apiVersion: extensions/v1beta1
10 name: {{ template "kong.fullname" . }}-admin
12 {{- include "kong.metaLabels" . | nindent 4 }}
14 {{- range $key, $value := .Values.admin.ingress.annotations }}
15 {{ $key }}: {{ $value | quote }}
19 - host: {{ $hostname }}
24 serviceName: {{ $serviceName }}-admin
25 servicePort: {{ $servicePort }}
30 secretName: {{ $tls }}