21 lines
636 B
YAML
21 lines
636 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "access-broker.fullname" . }}
|
|
labels:
|
|
{{- include "access-broker.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{ toYaml .Values.service.annotations | indent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
protocol: TCP
|
|
name: http
|
|
targetPort: {{ .Values.service.targetPort }}
|
|
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
{{- end }}
|
|
selector:
|
|
{{- include "access-broker.selectorLabels" . | nindent 4 }}
|