diff --git a/common/templates/_service.tpl b/common/templates/_service.tpl new file mode 100644 index 0000000000000000000000000000000000000000..618cb20ade289daed8586daf7e2e35b8f1e2fea0 --- /dev/null +++ b/common/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- 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 }}