X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-infra%2F25-tiller%2Fhelm%2Fkong%2Fcharts%2Fkong%2Ftemplates%2Fservice-kong-admin.yaml;fp=ric-infra%2F25-tiller%2Fhelm%2Fkong%2Fcharts%2Fkong%2Ftemplates%2Fservice-kong-admin.yaml;h=40107cb7799106d98f6f3a6aed394a4f235d1a84;hb=adbdd09e7300845d14107f67034d817286519a40;hp=0000000000000000000000000000000000000000;hpb=67e464c5c70457e37681d96baa79c36b4b26eb3d;p=it%2Fdep.git diff --git a/ric-infra/25-tiller/helm/kong/charts/kong/templates/service-kong-admin.yaml b/ric-infra/25-tiller/helm/kong/charts/kong/templates/service-kong-admin.yaml new file mode 100755 index 00000000..40107cb7 --- /dev/null +++ b/ric-infra/25-tiller/helm/kong/charts/kong/templates/service-kong-admin.yaml @@ -0,0 +1,38 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "kong.fullname" . }}-admin + annotations: + {{- range $key, $value := .Values.admin.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + labels: + app: {{ template "kong.name" . }} + chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + release: "{{ .Release.Name }}" + heritage: "{{ .Release.Service }}" +spec: + type: {{ .Values.admin.type }} + {{- if eq .Values.admin.type "LoadBalancer" }} + {{- if .Values.admin.loadBalancerIP }} + loadBalancerIP: {{ .Values.admin.loadBalancerIP }} + {{- end }} + {{- if .Values.admin.loadBalancerSourceRanges }} + loadBalancerSourceRanges: + {{- range $cidr := .Values.admin.loadBalancerSourceRanges }} + - {{ $cidr }} + {{- end }} + {{- end }} + {{- end }} + ports: + - name: kong-admin + port: {{ .Values.admin.servicePort }} + targetPort: {{ .Values.admin.containerPort }} + {{- if (and (eq .Values.admin.type "NodePort") (not (empty .Values.admin.nodePort))) }} + nodePort: {{ .Values.admin.nodePort }} + {{- end }} + protocol: TCP + selector: + app: {{ template "kong.name" . }} + release: {{ .Release.Name }} + component: app