summaryrefslogtreecommitdiffstats
path: root/helm/policy-models-simulator/templates/service.yaml
blob: 362ac93a68170649e5b3bf9153a4e6ba7b7d1be4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apiVersion: v1
kind: Service
metadata:
  name: {{ include "policy-models-simulator.fullname" . }}
  labels:
{{ include "policy-models-simulator.labels" . | indent 4 }}
spec:
  type: {{ .Values.service.type }}
  ports:
    - port: {{ .Values.service.externalPort }}
      targetPort: {{ .Values.service.internalPort }}
      name: {{ .Values.service.portName }}
    - port: {{ .Values.service.externalPort2 }}
      targetPort: {{ .Values.service.internalPort2 }}
      name: {{ .Values.service.portName }}2
    - port: {{ .Values.service.externalPort3 }}
      targetPort: {{ .Values.service.internalPort3 }}
      name: {{ .Values.service.portName }}3
    - port: {{ .Values.service.externalPort4 }}
      targetPort: {{ .Values.service.internalPort4 }}
      name: {{ .Values.service.portName }}4
    - port: {{ .Values.service.externalPort5 }}
      targetPort: {{ .Values.service.internalPort5 }}
      name: {{ .Values.service.portName }}5
    - port: {{ .Values.service.externalPort6 }}
      targetPort: {{ .Values.service.internalPort6 }}
      name: {{ .Values.service.portName }}6
  selector:
    app.kubernetes.io/name: {{ include "policy-models-simulator.name" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}