You are on page 1of 22

KUBERNET

ES ON GCP
--------------
EXERCICE
1 - CREATE
KUBERNETES
CUSTER ON
THE CLOUD
CREATE GCP KUBERNETES CLUSTER
We click on the button "Create a Cluster"
CREATE GCP KUBERNETES CLUSTER
We click on the button "My first cluster "
CREATE GCP
KUBERNETES
CLUSTER

In the previous lab we created a


CLUSTER with one Node using
MINIKUBE, now we create CLUSTER
with 3 nodes on Google Coud Platform

=> Click on “my-first-cluster-1”


CLUSTER DETAILS
CLUSTER DETAILS
Details of instances used in the Cluster
Compute Engine > Instances de VM
CLUSTER DETAILS
Characteristics of the created instances
Compute Engine > Modèls d’instances
CLUSTER DETAILS
Show CLUSTER workload
Kubernetes Engine > Charge de travail > Afficher les charges de travail du système
CLUSTER DETAILS
Details of instances used in the Cluster
Compute Engine > Instances de VM
2 - HANDLING
THE
KUBERNETES
CLUSTER
CONNECT TO
KUBERNETES CLUSTER
CONNECT TO
CLUSTER
WITH CLOUD
SHELL
3 – DEPLOY
WORDPRESS
APPLICATION
ON THE
KUBERNETES
CLUSTER
URL MYSQL :
https://kubernetes.io/examples/application/wor
dpress/mysql-deployment.yaml

URL WORDPRESS :
https://kubernetes.io/examples/application/wor
dpress/wordpress-deployment.yaml
CREATE A SECRET FOR MYSQL DATABASE
kubectl create secret generic mysql-pass --from-literal=password=myp@sswd
We use this secret in file : wordpress-deployement
CREATE A
SECRET
FOR MYSQL
DATABASE
- OUTPUT
CREATE
WORDPRESS
AND MYSQL
DEPLOYMENTS
OUTPUT
OUTPUT ON BROWSER
Get IP address by running the command :
Kubectl get services wordpress
FINALLY
THE END
DON'T FORGET TO DELETE THE
CLUSTER BEFORE LEAVING !!!

You might also like