- Install do command line tool (doctl) to acces your k8s cluster.
Steps can be found here https://docs.digitalocean.com/reference/doctl/ - Make sure you have helm installed in your system.
Steps can be found here https://helm.sh/docs/intro/install/
-
Deploy volume.yml
kubectl apply -f volume.yml
-
Run helm.sh
chmod +x helm.sh
./heml.sh
-
After running helm.sh you will see that your nginx ingress controller and cert manager has been installed.
kubectl get pods
-
Deploy deply.yaml which deploys ghost on k8s. make sure to change this
value: <---url-of-website--->
url of website should be the domain name for ghost -
kubectl get pods
You will see blog pod coming up /
kubectl get svc
Take the external ip from load balancer service and add it to dns to map it to domain name used above. -
make sure to change this
host: <---domain-of-website--->
domain name for ghost
Once its done run
kubectl apply -f ingress.yml
-
https certificate setup
make sure to change this
email: <---issuer-email-id--->
email id to which the letsencrypt certificate will be issued.
kubectl apply -f cert-issuer.yml
This apply https to your domain name.