You've already forked helm-generic-chart
generated from public/repo-template
init
All checks were successful
Publish Helm Chart / Build and publish Helm chart (push) Successful in 5s
All checks were successful
Publish Helm Chart / Build and publish Helm chart (push) Successful in 5s
This commit is contained in:
18
templates/service.yaml
Normal file
18
templates/service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user