28 lines
779 B
YAML
28 lines
779 B
YAML
|
{{- if .Values.apiGateway.enabled }}
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: {{ template "consul.fullname" . }}-api-gateway-controller
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
app: {{ template "consul.name" . }}
|
||
|
chart: {{ template "consul.chart" . }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
release: {{ .Release.Name }}
|
||
|
component: api-gateway-controller
|
||
|
annotations:
|
||
|
{{- if .Values.apiGateway.controller.service.annotations }}
|
||
|
{{ tpl .Values.apiGateway.controller.service.annotations . | nindent 4 | trim }}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: sds
|
||
|
port: 9090
|
||
|
protocol: TCP
|
||
|
targetPort: 9090
|
||
|
selector:
|
||
|
app: {{ template "consul.name" . }}
|
||
|
release: "{{ .Release.Name }}"
|
||
|
component: api-gateway-controller
|
||
|
{{- end }}
|