From 7b7c3cfb25d1d2efa92f9ecffe3e78cdbe76aa0a Mon Sep 17 00:00:00 2001 From: Diwakar10091511 <77308014+Diwakar10091511@users.noreply.github.com> Date: Fri, 14 Jan 2022 23:44:44 +0530 Subject: [PATCH] Update Ensure Access & Identity in Google Cloud: Challenge Lab --- Ensure Access & Identity in Google Cloud: Challenge Lab | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Ensure Access & Identity in Google Cloud: Challenge Lab b/Ensure Access & Identity in Google Cloud: Challenge Lab index 1b9e268..921afbc 100644 --- a/Ensure Access & Identity in Google Cloud: Challenge Lab +++ b/Ensure Access & Identity in Google Cloud: Challenge Lab @@ -3,6 +3,8 @@ Where like this Project is written it means you need to replace tha 1st TASK ---------- create a custom role using a YAML file +nano role-definition.yaml + title: "orca_storage_update" description: "Permissions" stage: "ALPHA" @@ -20,8 +22,8 @@ gcloud iam roles create orca_storage_update --project $DEVSHELL_PROJECT_ID \ 4TH TASK ---------- Create and configure a new Kubernetes Engine private cluster -gcloud container clusters create orca-test-cluster --num-nodes 1 --master-ipv4-cidr=172.16.0.64/28 --network orca-build-vpc --subnetwork orca-build-subnet --enable-master-authorized-networks --master-authorized-networks 192.168.10.2/32 --enable-ip-alias --enable-private-nodes --enable-private-endpoint --service-account orca-private-cluster-sa@.iam.gserviceaccount.com --zone us-east1-b +gcloud container clusters create orca-cluster-232 --num-nodes 1 --master-ipv4-cidr=172.16.0.64/28 --network orca-build-vpc --subnetwork orca-build-subnet --enable-master-authorized-networks --master-authorized-networks 192.168.10.2/32 --enable-ip-alias --enable-private-nodes --enable-private-endpoint --service-account orca-private-cluster-451-sa@.iam.gserviceaccount.com --zone us-east1-b 5th Task ---------- Deploy an application to a private Kubernetes Engine cluster -gcloud container clusters get-credentials orca-test-cluster --internal-ip --zone us-east1-b --project +gcloud container clusters get-credentials orca-cluster-232 --internal-ip --zone us-east1-b --project