Skip to content
Snippets Groups Projects
Commit 7ca8a86c authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add service template

parent 57b23b4f
No related branches found
No related tags found
No related merge requests found
Pipeline #7731 passed with stages
in 37 seconds
{{- define "common.service" }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.name }}
spec:
type: {{ .Values.type | default "ClusterIP" }}
{{- with .Values.ports }}
ports:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.additionalConfig }}
{{- toYaml .Values.additionalConfig | nindent 2 }}
{{- end }}
{{- end }}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment