1
0
Fork 0

feat: add helm chart

This commit is contained in:
Vojtěch Mareš 2023-07-03 17:59:20 +02:00
parent 7d3852150b
commit d454ec8fc9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
12 changed files with 231 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.className }}
tls:
- hosts:
- {{ .Values.ingress.host | quote }}
secretName: {{ .Release.Name }}-tls
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ .Release.Name }}
port:
name: {{ .Values.service.port.name }}
{{- end -}}