This refers to the automated configuration, co-ordination and management of computer systems and services.
http://35.238.41.25:3000/
- We'll start deploying by first cloning our repo in the google cloud shell
git clone <repository url>
-
Change directory to the cloned repo
-
Create a new directory called "manifests"
mkdir manifests
- Change directory to the created folder 'manifests'
- Create the following files as follows
touch mongo-config.yml
touch mongo-secret.yml
touch mongo.yml
touch backend.yml
touch client.yml
- Populate the respective yaml files with the necessary info
- Log in to your google console and open your cloud shell
- Run the following command to enable creation of clusters
gcloud services enable container.googleapis.com
- Create a new cluster with the following command
gcloud container clusters create-auto yolowebapp-gke \
--region us-central1
- Change directory to the manifest destination and run the following commands
kubectl apply -f mongo-config.yml
kubectl apply -f mongo-secret.yml
kubectl apply -f mongo.yml
kubectl apply -f backend.yml
kubectl apply -f client.yml
- Run the following command to check status of the deployments
kubectl get all
- Use the following link to access our deployed application
http://35.238.41.25:3000/
Make sure that you have the following installed:
cd client
npm install
npm start
cd ../backend
npm install
npm start