From 52b9f3af87214e2ef16c41b88d5590a9ee8b2a01 Mon Sep 17 00:00:00 2001 From: Elam Monnot Date: Thu, 6 Apr 2023 11:39:09 +0200 Subject: [PATCH] feat: changed ingress for peertube --- roles/peertube/files/finish | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/roles/peertube/files/finish b/roles/peertube/files/finish index 8ffe212..8a30a4c 100644 --- a/roles/peertube/files/finish +++ b/roles/peertube/files/finish @@ -1,10 +1,6 @@ +MYHOST=s-peertube.gsb.lan; 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}; +openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.cert -subj /CN="${MYHOST}"/O="${MYHOST}" -addext "subjectAltName = DNS:${MYHOST}";kubectl create secret tls tls-peertube --key key.tls --cert tls.cert; 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;