Skip to content

prvnmali2017/cks-course-environment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes CKS Course Environment

This is the repository of the CKS FULL COURSE

There is also just the CKS SIMULATOR

And the CKS CHALLENGE SERIES

Setup Cluster in Gcloud

Setup cks-master

Create VM

1. create VM:
name: cks-master
family: e2-medium (2vCPU, 4GB)
image: ubuntu18.04 LTS bionic
disk: 50GB

Like:

gcloud compute instances create cks-master --zone=europe-west3-c \
--machine-type=e2-medium \
--image=ubuntu-1804-bionic-v20201014 \
--image-project=ubuntu-os-cloud \
--boot-disk-size=50GB

Configure

sudo -i
bash <(curl -s https://raw.githubusercontent.com/killer-sh/cks-course-environment/master/cluster-setup/latest/install_master.sh)

Setup cks-worker

Create VM

1. create VM:
name: cks-worker
family: e2-medium (2vCPU, 4GB)
image: ubuntu18.04 LTS bionic
disk: 50GB

Like:

gcloud compute instances create cks-worker --zone=europe-west3-c \
--machine-type=e2-medium \
--image=ubuntu-1804-bionic-v20201014 \
--image-project=ubuntu-os-cloud \
--boot-disk-size=50GB

Configure

sudo -i
bash <(curl -s https://raw.githubusercontent.com/killer-sh/cks-course-environment/master/cluster-setup/latest/install_worker.sh)

Connect to cluster

# install "gcloud" command

# connect "gcloud" to your GCP
gcloud auth login
gcloud projects list
gcloud config set project YOUR_PROJECT

# connect to instance
gcloud compute instances list
gcloud compute ssh cks-master

Open ports

gcloud compute firewall-rules create nodeports --allow tcp:30000-40000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.3%
  • Open Policy Agent 6.7%
  • Go 4.5%
  • Dockerfile 2.5%