feat: add helm chart for deployment to k8s
This commit is contained in:
parent
917376899c
commit
bb1a9403bb
14 changed files with 218 additions and 1 deletions
28
deploy/templates/ingress.yaml
Normal file
28
deploy/templates/ingress.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{{- if .Values.ingress.enabled -}}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
annotations:
|
||||
{{- if .Values.ingress.annotations }}
|
||||
{{- toYaml .Values.ingress.annotations | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.ingress.host | quote }}
|
||||
secretName: {{ .Release.Name }}-ingress-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 -}}
|
||||
Reference in a new issue