Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ensure Access & Identity in Google Cloud: Challenge Lab #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Ensure Access & Identity in Google Cloud: Challenge Lab
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Where like this <Project ID> 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"
Expand All @@ -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@<Project ID>.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@<Project ID>.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 <Project ID>
gcloud container clusters get-credentials orca-cluster-232 --internal-ip --zone us-east1-b --project <Project ID>