feat: added nginx ingress

This commit is contained in:
Elam Monnot 2023-04-06 09:15:43 +02:00
parent 542978fd75
commit 30eeabb58b
2 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,10 @@
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml;
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace;
sleep 15;
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ${KEY_FILE} -out ${CERT_FILE} -subj "/CN=${HOST}/O=${HOST}" -addext "subjectAltName = DNS:${HOST}";
kubectl create secret tls tls-peertube --key ${KEY_FILE} --cert ${CERT_FILE};
helm repo add postgresql https://charts.bitnami.com/bitnami;
helm repo add redis https://charts.bitnami.com/bitnami;
helm repo add mail https://bokysan.github.io/docker-postfix;

View File

@ -98,21 +98,21 @@ redis:
## ingress configuration is very specific this part must be configured or else you'll get 503 or 404 errors
ingress:
enabled: false
enabled: true
className: ""
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: 4G # this caps the size of imported videos, if set low this might prevent you from uploading videos
# kubernetes.io/tls-acme: "true"
hosts:
- host: # your domain here
- host: s-peertube.gsb.lan
paths:
- path: /
pathType: ImplementationSpecific
tls:
# - secretName: chart-example-tls
tls:
- secretName: tls-peertube
- hosts:
- # your domain here
- s-peertube.gsb.lan
resources: {}
autoscaling: