Kubernetes Multi Node Cluster Over AWS Cloud
Kubernetes Multi Node Cluster Over AWS Cloud
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
# mkdir -p $HOME/.kube
# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
# sudo chown $(id -u):$(id -g) $HOME/.kube/config
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
# sysctl --system
# kubectl apply -f
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-
flannel.yml
------------------------------------------------------------------------------------------------------------------
At master node:
net-conf.json: |
{
"Network": "10.240.0.0/16",
"Backend": {
"Type": "vxlan"
}
}
because we boot strapped the cluster to use the cidr 10.240.0.0/16. The default flannel
deployment has the network set as 10.244.0.0/16 conflicting with what we bootstrapped
the cluster with
# cat /var/run/flannel/subnet.env
FLANNEL_NETWORK=10.240.0.0/16
FLANNEL_SUBNET=10.240.0.1/24
FLANNEL_MTU=8951
FLANNEL_IPMASQ=true
https://github.com/coreos/flannel-cni/tree/v0.3.0#readme
----------------------------------------------------------------------------------------------------------