Last active
January 25, 2019 20:55
-
-
Save raizyr/e89e9494ad853b1d0b2adf93c2c5f66e to your computer and use it in GitHub Desktop.
Create a Single Node Kubernetes cluster on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.6.10 --kubernetes-version=v1.13.0 | |
mkdir -p $HOME/.kube | |
sudo cp /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | |
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml | |
kubectl taint nodes --all node-role.kubernetes.io/master- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment