Kubernetes setup

 Setup K8S

Test environments: https://labs.play-with-k8s.com / google cloud


1. Click left side "ADD NEW INSTANCE" - create master 

2. Following guide run command 

a. Initializes cluster master node:

#kubeadm init --apiserver-advertise-address $(hostname -i)

After this one finish, it should provide the command to add nodes

#kubeadm join 192.168.0.18:6443 --token 4kr7q0.ryhgmuy4bdlbm6rg \

    --discovery-token-ca-cert-hash sha256:5bc5c451e627851321bcce694c486a7aa0852103c72d19cdcd327b4f01d8a127

b. Initialize cluster networking:

#kubectl apply -n kube-system -f \

    "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 |tr -d '\n')"

3. Click left side "ADD NEW INSTANCE" to add nodes

4. Run command to add to cluster

#kubeadm join 192.168.0.18:6443 --token 4kr7q0.ryhgmuy4bdlbm6rg \

    --discovery-token-ca-cert-hash sha256:5bc5c451e627851321bcce694c486a7aa0852103c72d19cdcd327b4f01d8a127

5. Run command to check cluster status

#kubectl cluster-info

#kubectl get nodes



Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error