Helm chart for deploying Peertube on kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. {{- if .Values.ingress.enabled -}}
  2. {{- $fullName := include "peertube.fullname" . -}}
  3. {{- $ingressPath := .Values.ingress.path -}}
  4. {{- $ingressPathType := .Values.ingress.pathType -}}
  5. apiVersion: networking.k8s.io/v1
  6. kind: Ingress
  7. metadata:
  8. name: {{ $fullName }}
  9. labels:
  10. app: {{ template "peertube.name" . }}
  11. chart: {{ template "peertube.chart" . }}
  12. release: {{ .Release.Name }}
  13. heritage: {{ .Release.Service }}
  14. {{- with .Values.ingress.annotations }}
  15. annotations:
  16. {{ toYaml . | indent 4 }}
  17. {{- end }}
  18. spec:
  19. ingressClassName: {{ .Values.ingress.ingressClassName }}
  20. {{- if .Values.ingress.tls }}
  21. tls:
  22. {{- range .Values.ingress.tls }}
  23. - hosts:
  24. {{- range .hosts }}
  25. - {{ . }}
  26. {{- end }}
  27. secretName: {{ .secretName }}
  28. {{- end }}
  29. {{- end }}
  30. rules:
  31. {{- range .Values.ingress.hosts }}
  32. - host: {{ . }}
  33. http:
  34. paths:
  35. - path: {{ $ingressPath }}
  36. pathType: {{ $ingressPathType }}
  37. backend:
  38. service:
  39. name: {{ $fullName }}
  40. port:
  41. number: 9000
  42. {{- end }}
  43. {{- end }}