From cfd4c4cbba80d4860ae6b64ce7e883ac886736fb Mon Sep 17 00:00:00 2001 From: gregory hendrickson Date: Thu, 26 Jan 2023 00:51:11 -0800 Subject: [PATCH] Add README.md Add .gitignore --- .gitignore | 24 ++++++++++++++++++++++++ README.md | 20 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a12b23f --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Build artifacts +*.tar.gz +*.tar +*.zip + +# Temporary files +*.tmp +*.swp + +# Log files +*.log + +# OS generated files +.DS_Store +Thumbs.db + +# Kubernetes generated files +*.out +pods/ +services/ +deployments/ +replicasets/ +configmaps/ +secrets/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..c635b5b --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +Ghost Blog on Kubernetes +This repository contains the configuration files necessary to deploy a Ghost blog on Kubernetes using a MySQL backend and an nginx-proxy for routing traffic. + +Prerequisites +A running Kubernetes cluster +The kubectl command-line tool installed on your local machine +Deployment +To deploy the Ghost blog, run the following commands: + +Copy code +kubectl apply -f namespace.yaml +kubectl apply -f ghost-blog-deployment.yaml +kubectl apply -f ghost-blog-service.yaml +kubectl apply -f mysql-deployment.yaml +kubectl apply -f mysql-service.yaml +kubectl apply -f ingress-service.yaml +This will create the necessary resources in the cluster, including a deployment for the Ghost app, a service for connecting to the MySQL server, and an ingress service for routing traffic to the Ghost app via the nginx-proxy with https and http. + +Volumes +This configuration is using a Persistent Volume to store the Ghost blog data, this can be done by creating a persistent volume and persistent volume claim, and then referencing it in the ghost-blog-deployment.yaml file. \ No newline at end of file