ingress-http.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. {{ if .Values.docs.enabled }}
  15. - host: {{ .Values.docs.domain }}
  16. http:
  17. paths:
  18. - backend:
  19. serviceName: docs
  20. servicePort: 9001
  21. path: /
  22. {{ end }}
  23. {{ if .Values.website.enabled }}
  24. - host: {{ .Values.website.domain }}
  25. http:
  26. paths:
  27. - backend:
  28. serviceName: website
  29. servicePort: 9002
  30. path: /
  31. {{ end }}
  32. {{ if .Values.website.jp.enabled }}
  33. - host: {{ .Values.website.jp.domain }}
  34. http:
  35. paths:
  36. - backend:
  37. serviceName: website-jp
  38. servicePort: 9002
  39. path: /
  40. {{ end }}
  41. {{- end -}}