Want to be notified of new releases in mihailgmihaylov/ghost-on-kubernetes?
This repo guides you through the custom modification and setup of a Ghost blog on Google Cloud Kubernetes environment with Docker containers, MySQL database on Persistant Storage with kubernetes claims and LetsEncrypt for SSL certificate.
!Note that it is a very detailed guide with deep explanation and customizations and may not be suitable for the everyday user. The purpose of it is to break down and understand each service and create the optimal environment.
tar -c --one-file-system -C "$dir" . | tar xC "$targetDir"
set -- gosu user "$@"
and see there are sections for // ### Producton, // ### Testing etc. These are examples we can use. At the end we will need only one. The best way is to create our own config.js and copy it in the Docker file.
Make sure that the contentPath: path.join(__dirname, '/') is not /content. In some examples in the TESTING or other sections it is set to content.
sudo docker build -t ghost-mysql .
Then edit the ghost.yaml file and add your image tag there.
Then go to Instance Groups -> select the group -> Edit Group -> select for instance template "gke-mihail-mihaylov-default-pool-preemptibility"
then go to gcloud console and reserve the IP: Networking -> External IP Adresses search for the IP address and set it to static.
You can start editing your block and make the first article which will be the article how to make this block in kubernetes aaaand... endless recursion!!!
kubectl exec -it kubernetes-certbot-kvw0u -- bash ./run.sh "mihail-mihaylov.com" "mihail.georgiev.mihaylov@gmail.com" "mihail-mihaylov.com,www.mihail-mihaylov.com"