Skip to content

Commit adbc26e

Browse files
Kubernetes deployment steps updated
1 parent 12245a8 commit adbc26e

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

Containers/Kubernetes-examples/GCP/steps.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,29 @@ gcloud config set project ${PROJECT_ID}
3030
3) Build and Push Application Docker container to Google Container Registry (GCR)
3131
cd greetings
3232
docker build -t gcr.io/${PROJECT_ID}/greetings:v1 .
33+
34+
Enable Google Container Registry API in Cloud Console at
35+
https://console.cloud.google.com/apis/api/containerregistry.googleapis.com/overview?project=${PROJECT_ID}
36+
37+
Then push the container to GCR
38+
3339
gcloud docker -- push gcr.io/${PROJECT_ID}/greetings:v1
3440

3541

36-
4) Create a GKE cluster
42+
4) Enable Kubernetes Engine API in Cloud Console at
43+
https://console.cloud.google.com/apis/api/container.googleapis.com/overview?project=4{PROJECT_ID}
44+
45+
5) Create a GKE cluster
3746
gcloud container clusters create --machine-type=g1-small --num-nodes=1 testcluster1
3847

3948

40-
5) Create a Google Cloud SQL instance
49+
6) Create a Google Cloud SQL instance
4150
gcloud sql instances create instance1 --tier=db-f1-micro --authorized-networks=0.0.0.0/0
4251

4352

44-
6) Create testdb database on the Cloud SQL instance
45-
gcloud sql users set-password root % --instance instance1 --password 'testpass123!@#'
53+
7) Create testdb database on the Cloud SQL instance
54+
gcloud sql users set-password root --instance=instance1 --host=35.184.210.53 --password='testpass123!@#'
55+
(If for some reason above command fails, you can set the password from Google CloudSQL console).
4656
sudo apt-get install mysql-client
4757
gcloud sql instances list
4858
mysql -h <IP-address-of-SQL-Instance> --user=root --password='testpass123!@#'

0 commit comments

Comments
 (0)