blob: 14b997bb7ab85073c1d8aad8a19479cdc7db2d5a [file] [log] [blame]
gio4a9d83d2024-04-14 13:14:40 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: {{ include "zot.fullname" . }}
5 labels:
6 {{- include "zot.labels" . | nindent 4 }}
7{{- with .Values.service.annotations }}
8 annotations:
9{{ toYaml . | indent 4 }}
10{{- end }}
11spec:
12 type: {{ .Values.service.type }}
13 {{- if and .Values.service.clusterIP ( eq .Values.service.type "ClusterIP" ) }}
14 clusterIP: {{ .Values.service.clusterIP }}
15 {{- end }}
16 ports:
17 - port: {{ .Values.service.port }}
18 targetPort: zot
19 protocol: TCP
20 name: zot
21 {{- if .Values.service.nodePort }}
22 nodePort: {{ .Values.service.nodePort }}
23 {{- end }}
24 selector:
25 {{- include "zot.selectorLabels" . | nindent 4 }}