You've already forked helm-generic-chart
generated from public/repo-template
All checks were successful
Publish Helm Chart / Build and publish Helm chart (push) Successful in 5s
19 lines
416 B
YAML
19 lines
416 B
YAML
{{- if .Values.services }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Values.name }}
|
|
labels:
|
|
{{- include "template.labels" . | nindent 4 }}
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
{{- range $name, $s := .Values.services }}
|
|
- name: {{ $name }}
|
|
port: {{ $s.port }}
|
|
protocol: {{ $s.protocol }}
|
|
{{- end}}
|
|
selector:
|
|
{{- include "template.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|