Added template library helm chart

This commit is contained in:
2023-08-20 18:51:00 +02:00
parent 01da298c21
commit e79fa3fe02
18 changed files with 511 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{{- define "template.service" -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "template.fullname" . }}
labels:
{{- include "template.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- name: http
protocol: TCP
port: {{ .Values.service.port }}
targetPort: http
{{- if .Values.application.isSpring }}
- name: http-actuator
protocol: TCP
port: {{ .Values.service.actuatorPort }}
targetPort: http-actuator
{{- end }}
selector:
{{- include "template.selectorLabels" . | nindent 4 }}
{{- end }}