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