Coder Social home page Coder Social logo

grglzrv / cks-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viktoruj/cks

0.0 0.0 0.0 256 KB

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

License: Apache License 2.0

Shell 18.39% Go 0.18% Makefile 0.63% HCL 80.64% Dockerfile 0.17%

cks-1's Introduction

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

cks-1's People

Contributors

viktoruj avatar viktorujlocalize avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.