Files
2026-08-26 03:39:42 +05:30

31 lines
722 B
YAML

apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
{{- with .Values.labels }}
labels:
{{ toYaml . | indent 4 }}
{{- end }}
name: "{{ .Values.fullNameOverride }}-svc"
namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
protocol: TCP
name: http
{{- range .Values.service.extraPorts }}
- name: {{ .name }}
port: {{ .port }}
protocol: TCP
targetPort: {{ .targetPort }}
{{- end }}
{{- with .Values.labels }}
selector:
{{ toYaml . | indent 4 }}
{{- end }}