Skip to content

Commit

Permalink
Update nginx ingress tls
Browse files Browse the repository at this point in the history
  • Loading branch information
dt-dilip committed Apr 26, 2024
1 parent a84dda4 commit 4324d86
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions charts/cdefense/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ metadata:
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
{{ end }}
spec:
{{ if eq .Values.ingress.type "nginx" }}
tls:
- hosts:
- {{ .Values.hostname }}
- {{ if .Values.recommendation.hostname }}"{{ .Values.recommendation.hostname }}"{{- else }}"recommendation.{{ .Values.domain }}"{{- end }}
# - uptime-{{ .Values.hostname }}
secretName: cdefense-on-prem-tls
{{ end }}
rules:
- host: {{ .Values.hostname }}
http:
Expand Down Expand Up @@ -197,6 +205,12 @@ metadata:
# certmanager.k8s.io/acme-dns01-provider: route53
{{ end }}
spec:
{{ if eq .Values.ingress.type "nginx" }}
tls:
- hosts:
- graphql-{{ .Values.hostname }}
secretName: graphql-on-prem-tls
{{ end }}
rules:
- host: graphql-{{ .Values.hostname }}
http:
Expand Down

0 comments on commit 4324d86

Please sign in to comment.