Skip to content

This project can speed up Kubernetes installation time Maybe..

License

Notifications You must be signed in to change notification settings

hyun98/kubernetes-install-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-install-helper

This project can speed up Kubernetes installation time Maybe..

You can install docker, kubectl, kubelet and kubeadm.
K8s will be installed by kubeadm


Test Done list

Test at just created server

docker.sh

  • Ubuntu 18.04.6
  • Ubuntu 20.04.4

config-k8s.sh

  • Ubuntu 18.04.6
  • Ubuntu 20.04.4


Download this Repository

git clone https://github.com/hyun98/kubernetes-install-helper.git

cd /kubernetes-install-helper

0.1 Iffff the file does not run, change the permissions to executable

sudo chmod +x ./config-k8s.sh ./docker.sh ./master.sh

1. Install Container Runtime > We use docker

./docker.sh

2.1 Setup k8s configuration

./config-k8s.sh

2.2 If you want reset kubeadm, kubelet, kubectl ...

./config-k8s.sh reset

3. Set the current node as the master node
kubernetes network policy : 'Calico'

./master.sh

token saved at k8s-token.txt
This token has no expiry date


4. Add worker node

example

sudo kubeadm join 10.0.2.4:6443 --token y066kk.g60l4xjdbgb5k4t7 \
        --discovery-token-ca-cert-hash sha256:c58fdb2113aae3f8fab21ed88accf5720608c13694577f73c4ed56fb7907b706
If you add Worker Node, you should find command at Master's k8s-token.txt
And you should prepend 'sudo' to the command

5. Test working

kubectl get all -A

image

cd test

kubectl apply -f nginx.yaml

# wait for pod ..

curl localhost:30000

About

This project can speed up Kubernetes installation time Maybe..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages