diff --git a/helm/kubenurse/templates/ingress.yaml b/helm/kubenurse/templates/ingress.yaml index 40c8a47..00bd034 100644 --- a/helm/kubenurse/templates/ingress.yaml +++ b/helm/kubenurse/templates/ingress.yaml @@ -5,6 +5,10 @@ kind: Ingress metadata: labels: {{- include "kubenurse.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} name: {{ include "kubenurse.fullname" . }} namespace: {{ .Release.Namespace }} spec: @@ -23,4 +27,7 @@ spec: tls: - hosts: - {{ .Values.ingress.url }} + {{- with .Values.ingress.tlsSecretName }} + secretName: {{ . }} + {{- end -}} {{- end -}} \ No newline at end of file diff --git a/helm/kubenurse/values.yaml b/helm/kubenurse/values.yaml index d3a9eb7..e30cca2 100644 --- a/helm/kubenurse/values.yaml +++ b/helm/kubenurse/values.yaml @@ -85,5 +85,7 @@ service: ingress: enabled: true className: nginx + annotations: {} + tlsSecretName: "" # KUBENURSE_INGRESS_URL url: dummy-kubenurse.example.com