4 name: {{ template "kong.fullname" . }}-admin
6 {{- range $key, $value := .Values.admin.annotations }}
7 {{ $key }}: {{ $value | quote }}
10 app: {{ template "kong.name" . }}
11 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
12 release: "{{ .Release.Name }}"
13 heritage: "{{ .Release.Service }}"
15 type: {{ .Values.admin.type }}
16 {{- if eq .Values.admin.type "LoadBalancer" }}
17 {{- if .Values.admin.loadBalancerIP }}
18 loadBalancerIP: {{ .Values.admin.loadBalancerIP }}
20 {{- if .Values.admin.loadBalancerSourceRanges }}
21 loadBalancerSourceRanges:
22 {{- range $cidr := .Values.admin.loadBalancerSourceRanges }}
29 port: {{ .Values.admin.servicePort }}
30 targetPort: {{ .Values.admin.containerPort }}
31 {{- if (and (eq .Values.admin.type "NodePort") (not (empty .Values.admin.nodePort))) }}
32 nodePort: {{ .Values.admin.nodePort }}
36 app: {{ template "kong.name" . }}
37 release: {{ .Release.Name }}