ingress-http.yaml 785 B

12345678910111213141516171819202122232425262728
  1. {{- if and .Values.ingress.create (eq .Values.ingress.type "nginx") -}}
  2. apiVersion: networking.k8s.io/v1beta1
  3. kind: Ingress
  4. metadata:
  5. name: gethue
  6. annotations:
  7. kubernetes.io/ingress.class: nginx
  8. nginx.ingress.kubernetes.io/affinity: "cookie"
  9. nginx.ingress.kubernetes.io/session-cookie-name: "gethue"
  10. nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
  11. nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
  12. spec:
  13. rules:
  14. - host: {{ .Values.docs.domain }}
  15. http:
  16. paths:
  17. - backend:
  18. serviceName: gethue-docs
  19. servicePort: 80
  20. path: /
  21. - host: {{ .Values.website.domain }}
  22. http:
  23. paths:
  24. - backend:
  25. serviceName: gethue-website
  26. servicePort: 80
  27. path: /
  28. {{- end -}}