Skip to content

kubernetes cluster: kubeadm mgmt plane + 1 master ctrl plane + 3 worker data plane

License

Notifications You must be signed in to change notification settings

marius-turtle/kubeadm-singlemaster-vagrant

 
 

Repository files navigation

kubeadm-singlemaster-vagrant

Kubernetes Cluster: kubeadm mgmt plane + 1 master ctrl plane + 2.. worker data plane

Vagrant Spin Up For 1 Master + 3 Workers

Step 1: Create Vagrant Box

cd kube-box
bash build.sh

Step 2: Create K8s Cluster

vi Vagrantfile    
# modify variables

vagrant up

After creation ssh into the box and try first commands...

vagrant ssh m01

kubectl get nodes
kubectl get services

Cluster structure K8S 1.15.3

                          |
                          |    

                    ┌─────▼─────┐
                    │    m01    │
                    └─────┬─────┘

      ┌───────────────────┼───────────────────┐      
      │                   │                   │      
┌─────▼─────┐       ┌─────▼─────┐       ┌─────▼─────┐
│    w01    │       │    w02    │       │    ...    │
└───────────┘       └───────────┘       └───────────┘

Network

According to Vagrantfile, the network for the machines is 10.10.10.0/24. /etc/hosts files are updated automatically, m01.local is the master, w01.local and w02.local are the names of the worker nodes.

Registry

m01 hosts an insecure docker registry (docker-distribution). The registry URL is m01.local:5000, so images can be pushed using docker push m01.local:5000/my/image:tag

About

kubernetes cluster: kubeadm mgmt plane + 1 master ctrl plane + 3 worker data plane

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%