Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
Prac
Uploaded by
l23070002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download
Save
Save Prac For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
Prac
Uploaded by
l23070002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Prac For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Prac For Later
You are on page 1
/ 2
Search
Fullscreen
Task 1.
Create a project jumphost instance (TEMA)
gcloud compute instances create $INSTANCE \
--zone=$ZONE \
--machine-type=e2-micro
Task 2. Create a Kubernetes service cluster
gcloud container clusters create nucleus-backend \
--num-nodes=1 \
--zone=$ZONE
gcloud container clusters get-credentials nucleus-backend \
--zone $ZONE
kubectl create deployment hello-server \
--image=gcr.io/google-samples/hello-app:2.0
kubectl expose deployment hello-server \
--type=LoadBalancer \
--port $PORT_NO
Task 3. Set up an HTTP load balancer (TEMA)
cat << EOF > startup.sh
#! /bin/bash
apt-get update
apt-get install -y nginx
service nginx start
sed -i -- 's/nginx/Google Cloud Platform - '"\$HOSTNAME"'/'
/var/www/html/index.nginx-debian.html
EOF
gcloud compute instance-templates create web-server-template \
--metadata-from-file startup-script=startup.sh \
--machine-type g1-small \
--region $REGION
gcloud compute target-pools create nginx-pool --region $REGION
gcloud compute instance-groups managed create web-server-group \
--base-instance-name web-server \
--size 2 \
--template web-server-template \
--region $REGION
gcloud compute firewall-rules create $FIREWALL \
--allow tcp:80
gcloud compute http-health-checks create http-basic-check
gcloud compute instance-groups managed \
set-named-ports web-server-group \
--named-ports http:80 \
--region $REGION
gcloud compute backend-services create web-server-backend \
--protocol HTTP \
--http-health-checks http-basic-check \
--global
gcloud compute backend-services add-backend web-server-backend \
--instance-group web-server-group \
--instance-group-region $REGION \
--global
gcloud compute url-maps create web-server-map \
--default-service web-server-backend
gcloud compute target-http-proxies create http-lb-proxy \
--url-map web-server-map
gcloud compute forwarding-rules create $FIREWALL \
--global \
--target-http-proxy http-lb-proxy \
--ports 80
gcloud compute forwarding-rules list
You might also like
Google Cloud Load Balancing Challenge Lab
PDF
No ratings yet
Google Cloud Load Balancing Challenge Lab
4 pages
Basic CI - CD Pipeline For Microservices-Based Application
PDF
100% (1)
Basic CI - CD Pipeline For Microservices-Based Application
14 pages
Github Actions Ultimate Pipeline
PDF
No ratings yet
Github Actions Ultimate Pipeline
13 pages
GSP313 Create and Manage Cloud Resources - Challenge Lab
PDF
No ratings yet
GSP313 Create and Manage Cloud Resources - Challenge Lab
2 pages
Quick Lab GSP 975
PDF
No ratings yet
Quick Lab GSP 975
6 pages
Create and Manage Cloud Resources Challenge Lab
PDF
No ratings yet
Create and Manage Cloud Resources Challenge Lab
2 pages
01-Jul-2021 Kubernetes
PDF
No ratings yet
01-Jul-2021 Kubernetes
11 pages
Kubernetes Zero To Zero
PDF
No ratings yet
Kubernetes Zero To Zero
53 pages
Cka Practice Questions
PDF
100% (1)
Cka Practice Questions
11 pages
Challenge 5
PDF
No ratings yet
Challenge 5
2 pages
Kubernetes - by Shivansh Vasu
PDF
No ratings yet
Kubernetes - by Shivansh Vasu
19 pages
Create Manage Cloud Resource Challenge
PDF
No ratings yet
Create Manage Cloud Resource Challenge
2 pages
Kubernetes
PDF
100% (1)
Kubernetes
14 pages
Deploy, Scale, and Update Your Website On Google Kubernetes Engine
PDF
No ratings yet
Deploy, Scale, and Update Your Website On Google Kubernetes Engine
19 pages
Create Deployment To Deploy An Autoscaled and Load
PDF
No ratings yet
Create Deployment To Deploy An Autoscaled and Load
6 pages
CI & CD Pipeline Using Cloudbuild and Bitbucket
PDF
No ratings yet
CI & CD Pipeline Using Cloudbuild and Bitbucket
5 pages
Configure Weighted Load Balancing
PDF
No ratings yet
Configure Weighted Load Balancing
7 pages
Creating and Managing Resource Challenge Lab
PDF
No ratings yet
Creating and Managing Resource Challenge Lab
2 pages
Set Up and Configure A Cloud Environment in Google Cloud Challenge Lab
PDF
100% (1)
Set Up and Configure A Cloud Environment in Google Cloud Challenge Lab
3 pages
GCP Commands
PDF
No ratings yet
GCP Commands
2 pages
Kubernetes Engine Course Command List Rev7
PDF
No ratings yet
Kubernetes Engine Course Command List Rev7
10 pages
Cloud Shell Commands
PDF
No ratings yet
Cloud Shell Commands
3 pages
(T-GCPAWS-I) Module 5 - Containers in The Cloud
PDF
No ratings yet
(T-GCPAWS-I) Module 5 - Containers in The Cloud
82 pages
Day-7-B-Gcp Basics For Java Dev
PDF
No ratings yet
Day-7-B-Gcp Basics For Java Dev
8 pages
Configure A Firewall and A Startup Script With Deployment Manager
PDF
No ratings yet
Configure A Firewall and A Startup Script With Deployment Manager
7 pages
MY-k8s-Day2-Chapter-3 - (NGINX-KIC-Lab Guide-Partner)
PDF
No ratings yet
MY-k8s-Day2-Chapter-3 - (NGINX-KIC-Lab Guide-Partner)
23 pages
GSP007
PDF
No ratings yet
GSP007
3 pages
30-Jun-2021 Kubernetes
PDF
No ratings yet
30-Jun-2021 Kubernetes
7 pages
GCP
PDF
No ratings yet
GCP
15 pages
MINIKUBE
PDF
No ratings yet
MINIKUBE
5 pages
Intro To Cloud Lab 1
PDF
No ratings yet
Intro To Cloud Lab 1
8 pages
GCP Command Line Cheat Sheet
PDF
No ratings yet
GCP Command Line Cheat Sheet
14 pages
Kubernetes
PDF
No ratings yet
Kubernetes
13 pages
The Basics of Google Cloud Compute - Challenge Lab
PDF
No ratings yet
The Basics of Google Cloud Compute - Challenge Lab
1 page
GCP Essentials Challange
PDF
No ratings yet
GCP Essentials Challange
2 pages
Deploying A Contanerized Web Appliation
PDF
No ratings yet
Deploying A Contanerized Web Appliation
6 pages
SKCT 2022-26 Cloud Lab Questions-With Solution 1-1-40
PDF
No ratings yet
SKCT 2022-26 Cloud Lab Questions-With Solution 1-1-40
40 pages
Kubernettes Setup
PDF
No ratings yet
Kubernettes Setup
3 pages
Deploy Your Website On Cloud Run
PDF
No ratings yet
Deploy Your Website On Cloud Run
19 pages
Ckad
PDF
No ratings yet
Ckad
2 pages
Day4 Translated
PDF
No ratings yet
Day4 Translated
13 pages
Load Balance
PDF
No ratings yet
Load Balance
1 page
Phase 2
PDF
No ratings yet
Phase 2
8 pages
Cka Guide
PDF
No ratings yet
Cka Guide
46 pages
PDF 12-Writing YAML Files
PDF
No ratings yet
PDF 12-Writing YAML Files
5 pages
Lab 8.1
PDF
No ratings yet
Lab 8.1
4 pages
Monisha Phase3
PDF
No ratings yet
Monisha Phase3
5 pages
Cloud Run Deployment Guide
PDF
No ratings yet
Cloud Run Deployment Guide
3 pages
Lab 5
PDF
No ratings yet
Lab 5
1 page
Exercise 8.1: Deploy A New Service: Services
PDF
No ratings yet
Exercise 8.1: Deploy A New Service: Services
4 pages
Cloud Armor
PDF
No ratings yet
Cloud Armor
11 pages
Docker Swarm
PDF
No ratings yet
Docker Swarm
4 pages
Orchestrating The Cloud With Kubernetes
PDF
No ratings yet
Orchestrating The Cloud With Kubernetes
26 pages
Gcloud Command Structure
PDF
No ratings yet
Gcloud Command Structure
14 pages
Creating A VM in Google Cloud
PDF
No ratings yet
Creating A VM in Google Cloud
7 pages
Gcloud Cheat Sheet PDF
PDF
No ratings yet
Gcloud Cheat Sheet PDF
2 pages
Deploy any website on google cloud platform
From Everand
Deploy any website on google cloud platform
AJ Books
No ratings yet
Evaluation of Some Cloud Based Virtual Private Server (VPS) Providers
From Everand
Evaluation of Some Cloud Based Virtual Private Server (VPS) Providers
Dr. Hidaia Mamood Alassouli
No ratings yet
How to a Developers Guide to 4k: Developer edition, #3
From Everand
How to a Developers Guide to 4k: Developer edition, #3
Xinc Cyberwizard
No ratings yet
Evaluation of Some Cloud Based Virtual Private Server (VPS) Providers
From Everand
Evaluation of Some Cloud Based Virtual Private Server (VPS) Providers
Dr. Hidaia Mahmood Alassouli
No ratings yet
Documents
Computers