Skip to content

Commit

Permalink
adding ingress class annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
haritzsaiz committed Jul 11, 2023
1 parent abb9446 commit 7d4b38e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/lamassu/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
14 changes: 7 additions & 7 deletions charts/lamassu/templates/api-gateway-ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ metadata:
name: api-gateway-ingress-https
namespace: {{.Release.Namespace}}
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/ingress.class: {{ .Values.ingress.annotations.kubernetes.io/ingress.class }}
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
{{- if eq .Values.tls.type "letsEncrypt"}}
acme.cert-manager.io/http01-edit-in-place: "true"
{{- end}}
{{- if eq .Values.tls.type "external"}}
nginx.ingress.kubernetes.io/proxy-ssl-secret: {{.Release.Namespace}}/downstream-cert
{{- end}}
#Routed Service recives HTTPS connections
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
{{- if eq .Values.tls.type "letsEncrypt" -}}
acme.cert-manager.io/http01-edit-in-place: "true"
{{- end -}}
{{- if eq .Values.tls.type "external" -}}
nginx.ingress.kubernetes.io/proxy-ssl-secret: {{.Release.Namespace}}/downstream-cert
{{- end -}}
spec:
tls:
- hosts:
Expand Down
4 changes: 4 additions & 0 deletions charts/lamassu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ postgres:
username: ""
password: ""

ingress:
annotations:
kubernetes.io/ingress.class: "nginx"

auth:
oidc:
frontend:
Expand Down

0 comments on commit 7d4b38e

Please sign in to comment.