Skip to content

Commit 29e427e

Browse files
authored
Create master-setup
1 parent 9f136e4 commit 29e427e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kubeadm/master-setup

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Configure kubectl as a normal ubuntu user
2+
sudo su - ubuntu
3+
mkdir -p $HOME/.kube
4+
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
5+
sudo chown $(id -u):$(id -g) $HOME/.kube/config
6+
# To verify, if kubectl is working or not, run the following command.
7+
kubectl get pods -o wide -n kube-system
8+
#You will notice from the previous command, that all the pods are running except one: ‘core-dns’. For resolving this we will install a # pod network addon like Calico or Weavenet ..etc.
9+
#Note: Install any one network addon don't install both. Install either weave net or calico.
10+
To install Weave network plugin/addon run the following command.
11+
kubectl apply -f https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml
12+

0 commit comments

Comments
 (0)