Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created March 17, 2017 14:50
Show Gist options
  • Save lazypower/fcfbb3ee9b3a3524d7f468d26a701c31 to your computer and use it in GitHub Desktop.
Save lazypower/fcfbb3ee9b3a3524d7f468d26a701c31 to your computer and use it in GitHub Desktop.
## ingress-worker/0
ubuntu@ip-172-31-26-132:~$ kubectl get po -o wide|grep micro
microbot-1855935831-l8fjl 1/1 Running 0 3m 10.1.6.8 ip-172-31-26-132
ubuntu@ip-172-31-26-132:~$ kubectl get svc|grep micro
microbot 10.152.183.217 <none> 80/TCP 3m
ubuntu@ip-172-31-26-132:~$ nc -w1 -z -v 10.152.183.217 80
Connection to 10.152.183.217 80 port [tcp/http] succeeded!
## kubernetes-worker/0
ubuntu@ip-172-31-1-239:~$ nc -w1 -z -v 10.152.183.217 80
nc: connect to 10.152.183.217 port 80 (tcp) timed out: Operation now in progress
# This should work around it on kubernetes-worker/0
sudo ip r add 10.152.183.217/32 dev flannel.1 src 10.1.42.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment