add tls
This commit is contained in:
@@ -4,6 +4,10 @@ metadata:
|
||||
name: {{ include "stage.fullname" . }}
|
||||
labels:
|
||||
{{- include "stage.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- if .Values.ingress.tls.issuer }}
|
||||
cert-manager.io/cluster-issuer: {{ .Values.ingress.tls.issuer}}
|
||||
{{- end}}
|
||||
spec:
|
||||
{{- with .Values.ingress.className }}
|
||||
ingressClassName: {{ . }}
|
||||
@@ -18,6 +22,12 @@ spec:
|
||||
name: {{ include "stage.fullname" $ }}
|
||||
port:
|
||||
number: {{ $.Values.service.port }}
|
||||
{{- if .Values.ingress.hostname }}
|
||||
{{- if .Values.ingress.hostname }}
|
||||
host: {{ .Values.ingress.hostname | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.ingress.tls.enabled }}
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ .Values.ingress.hostname | quote }}
|
||||
secretName: {{ include "stage.fullname" . }}-cert
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -46,6 +46,9 @@ service:
|
||||
ingress:
|
||||
className: ""
|
||||
# hostname: "ontime.example.com"
|
||||
tls:
|
||||
enabled: false
|
||||
issuer: ''
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
|
||||
Reference in New Issue
Block a user