ingress-https.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {{- if and .Values.ingress.create (eq .Values.ingress.type "nginx-ssl") -}}
  2. apiVersion: networking.k8s.io/v1beta1
  3. kind: Ingress
  4. metadata:
  5. name: gethue-ingress
  6. annotations:
  7. kubernetes.io/ingress.class: nginx
  8. certmanager.k8s.io/cluster-issuer: letsencrypt-website-prod
  9. certmanager.k8s.io/acme-challenge-type: http01
  10. nginx.ingress.kubernetes.io/ssl-redirect: "true"
  11. nginx.ingress.kubernetes.io/affinity: "cookie"
  12. nginx.ingress.kubernetes.io/session-cookie-name: "hue-website-ingress"
  13. nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
  14. nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
  15. spec:
  16. rules:
  17. {{- if .Values.docs.enabled -}}
  18. - host: {{ .Values.docs.domain }}
  19. http:
  20. paths:
  21. - backend:
  22. serviceName: gethue-docs
  23. servicePort: 80
  24. path: /
  25. {{- end -}}
  26. {{- if .Values.website.enabled -}}
  27. - host: {{ .Values.website.domain }}
  28. http:
  29. paths:
  30. - backend:
  31. serviceName: gethue-website
  32. servicePort: 80
  33. path: /
  34. {{- end -}}
  35. tls:
  36. - hosts:
  37. {{- if .Values.docs.enabled -}}
  38. - {{ .Values.docs.domain }}
  39. {{- end -}}
  40. {{- if .Values.website.enabled -}}
  41. - {{ .Values.website.domain }}
  42. {{- end -}}
  43. secretName: letsencrypt-website-prod
  44. {{- end -}}