ingress-https.yaml 901 B

12345678910111213141516171819202122232425262728
  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. - host: {{ .Values.docs.domain }}
  18. http:
  19. paths:
  20. - backend:
  21. serviceName: gethue-docs
  22. servicePort: 80
  23. path: /
  24. tls:
  25. - hosts:
  26. - {{ .Values.docs.domain }}
  27. secretName: letsencrypt-pro
  28. {{- end -}}