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.

38 lines
931 B

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