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)
17 views
Prac
Uploaded by
l23070002
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save Prac For Later
Download
Save
Save Prac For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
17 views
Prac
Uploaded by
l23070002
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save Prac For Later
Carousel Previous
Carousel Next
Save
Save Prac For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
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
GCP Essentials Challange
PDF
No ratings yet
GCP Essentials Challange
2 pages
GSP313 Create and Manage Cloud Resources - Challenge Lab
PDF
No ratings yet
GSP313 Create and Manage Cloud Resources - Challenge Lab
2 pages
Challenge 5
PDF
No ratings yet
Challenge 5
2 pages
Gcloud Command Structure
PDF
No ratings yet
Gcloud Command Structure
14 pages
Create Manage Cloud Resource Challenge
PDF
No ratings yet
Create Manage Cloud Resource Challenge
2 pages
Google Cloud Load Balancing Challenge Lab
PDF
No ratings yet
Google Cloud Load Balancing Challenge Lab
4 pages
GSP007
PDF
No ratings yet
GSP007
3 pages
day-7-b-gcp basics for java dev
PDF
No ratings yet
day-7-b-gcp basics for java dev
8 pages
Cmds DEVOPS
PDF
No ratings yet
Cmds DEVOPS
51 pages
Helm - Getting Started
PDF
No ratings yet
Helm - Getting Started
24 pages
gitlab-ci
PDF
No ratings yet
gitlab-ci
2 pages
Configure Weighted Load Balancing 979379b2f0ca467b9aad6101ce2151f9
PDF
No ratings yet
Configure Weighted Load Balancing 979379b2f0ca467b9aad6101ce2151f9
7 pages
Kubernetes Engine Course Command List Rev7
PDF
No ratings yet
Kubernetes Engine Course Command List Rev7
10 pages
The Basics of Google Cloud Compute_ Challenge Lab
PDF
No ratings yet
The Basics of Google Cloud Compute_ Challenge Lab
1 page
CI & CD pipeline using Cloudbuild and Bitbucket
PDF
No ratings yet
CI & CD pipeline using Cloudbuild and Bitbucket
5 pages
Apache Upgrade For Content Server
PDF
No ratings yet
Apache Upgrade For Content Server
6 pages
Dc Micro Service Invest Notes
PDF
No ratings yet
Dc Micro Service Invest Notes
9 pages
Kubernetes Setup
PDF
No ratings yet
Kubernetes Setup
6 pages
Linux PDF
PDF
No ratings yet
Linux PDF
48 pages
Material Install Typebot
PDF
No ratings yet
Material Install Typebot
4 pages
Guided Exercise: Automating Installation With Kickstart: Outcomes
PDF
No ratings yet
Guided Exercise: Automating Installation With Kickstart: Outcomes
3 pages
0 ClassNotes
PDF
0% (1)
0 ClassNotes
144 pages
Nouveau Document Texte
PDF
No ratings yet
Nouveau Document Texte
14 pages
Hyperledger Prerequisites:: Install Curl
PDF
No ratings yet
Hyperledger Prerequisites:: Install Curl
6 pages
bash commands
PDF
No ratings yet
bash commands
3 pages
Kube Describe Pod Ricplt Ricplt Ckey Chart Master Realm Configuration Job 9gsbx
PDF
No ratings yet
Kube Describe Pod Ricplt Ricplt Ckey Chart Master Realm Configuration Job 9gsbx
3 pages
Production Level CICD Pipeline Project Notes
PDF
No ratings yet
Production Level CICD Pipeline Project Notes
25 pages
Deploy AKS-1
PDF
No ratings yet
Deploy AKS-1
3 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
Kubernetes Zerotohero Basic Installation Steps
PDF
No ratings yet
Kubernetes Zerotohero Basic Installation Steps
13 pages
Kubernetes Jenkins Pipeline
PDF
No ratings yet
Kubernetes Jenkins Pipeline
8 pages
1 GCP Cheatsheet Cloud
PDF
No ratings yet
1 GCP Cheatsheet Cloud
3 pages
05 k8s 运维篇 03 服务发布Ingress进阶
PDF
No ratings yet
05 k8s 运维篇 03 服务发布Ingress进阶
16 pages
Docker Compose NoSQL
PDF
No ratings yet
Docker Compose NoSQL
6 pages
Web Helper
PDF
No ratings yet
Web Helper
1,007 pages
Master Cloud
PDF
No ratings yet
Master Cloud
6 pages
Explore Kubernetes Environment
PDF
No ratings yet
Explore Kubernetes Environment
5 pages
Deployment - Doc - NewDocker
PDF
No ratings yet
Deployment - Doc - NewDocker
5 pages
Webhelper
PDF
No ratings yet
Webhelper
58 pages
aws_commands
PDF
No ratings yet
aws_commands
11 pages
Kubernetes Notes
PDF
50% (2)
Kubernetes Notes
5 pages
kubectl commands
PDF
No ratings yet
kubectl commands
9 pages
Deploy a Two Node Kubernetes Cluster on AWS 1726859898
PDF
No ratings yet
Deploy a Two Node Kubernetes Cluster on AWS 1726859898
21 pages
Cka Practice Questions
PDF
100% (1)
Cka Practice Questions
11 pages
Kubernetes
PDF
No ratings yet
Kubernetes
4 pages
swarm
PDF
No ratings yet
swarm
17 pages
1 GCP Cheatsheet Cloud
PDF
No ratings yet
1 GCP Cheatsheet Cloud
3 pages
Configuration_SurveySolutions_Docker
PDF
No ratings yet
Configuration_SurveySolutions_Docker
4 pages
Cheatsheet GCP A4
PDF
100% (1)
Cheatsheet GCP A4
3 pages
Working With Openstack-Queens On Ubutnu18.04-V1.0
PDF
No ratings yet
Working With Openstack-Queens On Ubutnu18.04-V1.0
24 pages
Instalasi Nginx CentOS 6
PDF
No ratings yet
Instalasi Nginx CentOS 6
7 pages
Kubernetes Imp
PDF
No ratings yet
Kubernetes Imp
4 pages
Kubernetes Cluster Security - Kube-hunter
PDF
No ratings yet
Kubernetes Cluster Security - Kube-hunter
6 pages
Main Yml
PDF
No ratings yet
Main Yml
1 page
kitddddddeupgrdddade
PDF
No ratings yet
kitddddddeupgrdddade
4 pages
Allora Worker Node Guide
PDF
No ratings yet
Allora Worker Node Guide
7 pages
Kpi Working Yml
PDF
No ratings yet
Kpi Working Yml
10 pages
How to Hack Like a Ghost: Breaching the Cloud
From Everand
How to Hack Like a Ghost: Breaching the Cloud
Sparc Flow
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 Mamood Alassouli
No ratings yet
Documents
Computers