Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 762 Bytes

install-and-configure-kube-proxy.md

File metadata and controls

54 lines (37 loc) · 762 Bytes

Install and configure the kube-proxy

node0

gcloud compute ssh node0

Create the kube-proxy pod

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

node1

gcloud compute ssh node1

Repeat the steps from above.