| gio | 4a9d83d | 2024-04-14 13:14:40 +0400 | [diff] [blame^] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 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 }} |
| 11 | spec: |
| 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 }} |