gcloud compute ssh node0
curl -O https://storage.googleapis.com/configs.kuar.io/kube-proxy-pod.yaml
Configure the master flag:
PROJECT_ID=$(curl -H "Metadata-Flavor: Google" \
http://metadata.google.internal/computeMetadata/v1/project/project-id)
sudo sed -i -e "s/PROJECT_ID/${PROJECT_ID}/g;" kube-proxy-pod.yaml
cat kube-proxy-pod.yaml
Start the kube-proxy service:
sudo cp kube-proxy-pod.yaml /etc/kubernetes/manifests
Verify:
docker ps
Check iptables (search for rules with 'kubernetes' comments):
sudo iptables -vL -n -t nat
gcloud compute ssh node1
Repeat the steps from above.