LogoLogo
  • 🤩Welcome!
  • Buffer overflow
    • Remote Buffer Overflow
      • Crashing the Application
      • Controlling the EIP
      • Finding Bad Characters
      • Finding a Return Address
      • Generating Shellcode
      • Getting a Shell
  • Wireless Penetration Testing
    • Wifi Pineapple - Tetra
      • Setup
      • Firmware Upgrade
      • Capturing Wireless Handshake
      • Cracking WPA2 Handshake
      • PineAP
      • Modules
  • PortSwigger Labs
    • Authentication
      • Username enumeration via different responses
      • Username enumeration via subtly different responses
      • Username enumeration via response timing
  • TryHackMe
    • 🎄Advent of Cyber 3 (2021)
      • [Day 1] Save The Gifts
      • [Day 2] Elf HR Problems
      • [Day 3] Christmas Blackout
      • [Day 4] Santa's Running Behind
      • [Day 5] Pesky Elf Forum
      • [Day 6] Patch Management Is Hard
      • [Day 7] Migration Without Security
      • [Day 8] Santa's Bag of Toys
      • [Day 9] Where Is All This Data Going
  • Google Cloud Computing
    • ☁️Cloud Computing Fundamentals
      • Getting Started with Cloud Shell and gcloud
      • Creating a Virtual Machine
      • App Engine: Qwik Start - Python
      • Cloud Functions: Qwik Start - Command Line
      • Kubernetes Engine: Qwik Start
      • Set Up Network and HTTP Load Balancers
Powered by GitBook
On this page
  • Overview
  • Lab
  • Set a default compute zone
  • Creating a GKE Cluster
  • Get authentication credentials for the cluster
  • Deploy an application to the cluster
  • Deleting the cluster

Was this helpful?

  1. Google Cloud Computing
  2. Cloud Computing Fundamentals

Kubernetes Engine: Qwik Start

LAB 5

PreviousCloud Functions: Qwik Start - Command LineNextSet Up Network and HTTP Load Balancers

Last updated 3 years ago

Was this helpful?

Overview

(GKE) provides a managed environment for deploying, managing, and scaling your containerized applications using Google infrastructure. The Kubernetes Engine environment consists of multiple machines (specifically instances) grouped to form a . In this lab, you get hands-on practice with container creation and application deployment with GKE.

Lab

Set a default compute zone

Select wisely! Enter the following command to set your zone!

gcloud config set compute/zone asia-southeast1-a

Creating a GKE Cluster

Enter the following command to create a cluster.

gcloud container clusters create neeishere

Get authentication credentials for the cluster

gcloud container clusters get-credentials [CLUSTER-NAME]

Deploy an application to the cluster

Deploying a test application as shown below.

kubectl create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0

Creating a Kubernetes Service which lets us expose our application to external traffic:

kubectl expose deployment hello-server --type=LoadBalancer --port 8080
  • --port specifies the port that the container exposes.

  • type="LoadBalancer" creates a Compute Engine load balancer for your container.

Inspect Service as shown below to get the public IP:

kubectl get service

Deleting the cluster

gcloud container clusters delete neeishere

A consists of at least one cluster master machine and multiple worker machines called nodes. Nodes are that run the Kubernetes processes necessary to make them part of the cluster.

☁️
cluster
Compute Engine virtual machine (VM) instances
Google Kubernetes Engine
Compute Engine
container cluster
your zone