.
I’ll go through it once on a completely fresh Ubuntu 20.04 server:
I logged in as root.
I ran:
apt update && apt -y install curl sudo
Then:
curl -s get-rasa-x.rasa.com | sudo bash
Then waited a few minutes for that to finish.
At that point I could access Rasa without SSL at http://www.rasa-test.ga/.
Next up, I ran:
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
Now I begin following the instructions at https://blog.rasa.com/the-complete-guide-to-deploying-your-rasa-assistant/#add-domain-and-ssl.
I ran:
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.0/cert-manager.yaml
I then created /tmp/letsencrypt-issuer-production.yml with these contents (the only change I made was to the email):
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: le-rasa@id-rsa.pub
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-prod
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: traefik
then I ran:
sudo kubectl apply -f /tmp/letsencrypt-issuer-production.yml
Then I created /tmp/cert-request.yml (I changed commonName and dnsNames, and secretName):
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: letsencrypt-prod
namespace: rasa
spec:
secretName: rasa-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: rasa-test.ga
dnsNames:
- rasa-test.ga
- www.rasa-test.ga
then ran:
sudo kubectl apply -f /tmp/cert-request.yml
Then I created /tmp/values.yml (substituting secretName, host and hosts):
ingress:
annotations:
ingress.annotations.certmanager.k8s.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: traefik
hosts:
- host: rasa-test.ga
paths:
- /
- host: www.rasa-test.ga
paths:
- /
tls:
- secretName: rasa-tls
hosts:
- rasa-test.ga
- www.rasa-test.ga
then ran:
helm upgrade --values /tmp/values.yml --namespace rasa --reuse-values rasa rasa-x/rasa-x
and https://rasa-test.ga was working a few seconds later. I’ll keep it online for a little bit before deleting it.