File size: 535 Bytes
4ac7321
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c151f41
4ac7321
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: v1
kind: Service
metadata:
  name: "{{ include "name" . }}"
  annotations: {{ toYaml .Values.service.annotations | nindent 4 }}
  namespace: {{ .Release.Namespace }}
  labels: {{ include "labels.standard" . | nindent 4 }}
spec:
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  {{- if $.Values.monitoring.enabled }}
  - name: metrics
    port: 5565
    protocol: TCP
    targetPort: metrics
  {{- end }}
  selector: {{ include "labels.standard" . | nindent 4 }}
  type: {{.Values.service.type}}