mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
455 B
18 lines
455 B
{{- define "common.service.tpl" -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
{{ template "common.metadata" . }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: http
|
|
selector:
|
|
app.kubernetes.io/name: {{ template "common.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
|
{{- end -}}
|
|
{{- define "common.service" -}}
|
|
{{- template "common.util.merge" (append . "common.service.tpl") -}}
|
|
{{- end -}}
|