about summary refs log tree commit diff
path: root/k8s/rest-api/templates/service.yaml
blob: ac5b49b2e3e4169b82da91e4f3d20bc9a8b2ec8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
apiVersion: v1
kind: Service
metadata:
  name: {{ include "rest-api.fullname" . }}
  labels:
    {{- include "rest-api.labels" . | nindent 4 }}
spec:
  type: {{ .Values.service.type }}
  externalTrafficPolicy: Local
  ports:
    - port: 9999
      targetPort: 8080
      protocol: TCP
      name: http
  selector:
    {{- include "rest-api.selectorLabels" . | nindent 4 }}