1
|
kubeadm init --apiserver-advertise-address 192.168.0.13 --pod-network-cidr=10.244.0.0/16
|
1
|
kubectl apply -f https:
//raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
|
1
|
kubeadm join 192.168.0.13:6443 --token opip9p.rh35kkvqzwjizely --discovery-token-ca-cert-hash sha256:9252e13d2ffd3569c40b02c477f59038fac39aade9e99f282a333c0f8c5d7b22
|
1
|
kubectl apply -f https:
//raw.githubusercontent.com/kubernetes/website/master/content/en/examples/application/nginx-app.yaml
|
1
|
kubectl get pods -o wide
|
1
|
kubectl get service
|