8000 GitHub - Mantikor/cks: Opensource Platform for learning kubernetes and eks and preparation for for Certified Kubernetes Specialist (CKA ,CKS , CKAD) exams
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ cks Public
forked from ViktorUJ/cks

Opensource Platform for learning kubernetes and eks and preparation for for Certified Kubernetes Specialist (CKA ,CKS , CKAD) exams

License

Notifications You must be signed in to change notification settings

Mantikor/cks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repo for learning k8s (CKAD, CKA , CKS)

k8s_self_managment terraform module

script support version

k8s version  : [ 1.21 , 1.26 ]   https://kubernetes.io/releases/
Rintime : 
    docker                   [1.21 , 1.23]
    cri-o                    [1.21 , 1.26]
    containerd               [1.21 , 1.26]   # cks default 
    containerd_gvizor        [1.21 , 1.26] 
OS for nodes  : 
   ubuntu  :  20.04 LTS  ,  22.04 LTS 
CNI :
 calico   # wave??

about script

- use aws
- create vpc , subnets
- create  ec2 (spot ) master and workers 
- init master node by kubeadm 
- copy join token to s3
- load   join token  from s3 to worker node and join to the cluster .

Requirements

terrafrom  >= v1.1.7
terragrunt >= v0.36.1
aws IAM user  + Access key  (or IAM role ) with  Admin privilege  form VPC, EC2  
aws profile 

setup

update terragrunt config

cd environments
# set region , s3 , and dynamoDB
vim terragrunt.hcl

create VPC

make run_cks_vpc

or

cd environments/cks/vpc
# edit  cidrs and AZ 
vim terragrunt.hcl
terragrunt apply

create k8s

TASK=13 make run_cks_k8s_task

or

cd environments/cks/k8s
# edit  k8s version ,s3 , nodes size ,key_name  , and etc 
vim terragrunt.hcl
terragrunt apply

login to master node

# find {master_external_ip} in terraform output
# login to master node via ssh    

Init logs (Into nodes )

tail -f /var/log/cloud-init-output.log

clean

destroy k8s cluster

make delete_cks_k8s

or

cd environments/cks/k8s
terragrunt destroy

destroy vpc

make delete_cks_vpc
cd environments/cks/vpc
terragrunt destroy

links

vim :

G - end of file gg - first line of file

About

Opensource Platform for learning kubernetes and eks and preparation for for Certified Kubernetes Specialist (CKA ,CKS , CKAD) exams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 66.9%
  • Shell 32.3%
  • Other 0.8%
0