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;