Created
August 1, 2017 08:46
-
-
Save v9n/537ed6cf6904e5dc25cdb7519a1d3e74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make up | |
...a long time | |
... | |
==> minion2: + config_cni | |
==> minion2: + mkdir -p /etc/cni/net.d | |
==> minion2: + cat | |
==> minion2: + sudo curl -sL https://github.com/yeolabs/k8s-cni-ipsec/releases/download/0.1-rc1/strongswan -o /opt/cni/bin/strongswan | |
==> minion2: + sudo chmod +x /opt/cni/bin/strongswan | |
==> minion2: + sudo systemctl restart kubelet | |
namespace "demo" created | |
deployment "demo" created | |
$ make get_pods | |
NAME READY STATUS RESTARTS AGE | |
demo-1594119973-1rh6k 1/1 Running 0 6m | |
demo-1594119973-21m6k 1/1 Running 0 6m | |
demo-1594119973-2h5mf 1/1 Running 0 6m | |
demo-1594119973-375n2 1/1 Running 0 6m | |
demo-1594119973-4q95s 1/1 Running 0 6m | |
demo-1594119973-8gzcf 1/1 Running 0 6m | |
demo-1594119973-99s0j 1/1 Running 0 6m | |
demo-1594119973-b46q9 1/1 Running 0 6m | |
demo-1594119973-z0rx6 1/1 Running 0 6m | |
$ make find_ip | |
10.173.0.10/32 | |
10.173.0.9/32 | |
10.173.0.8/32 | |
10.173.0.7/32 | |
10.173.0.6/32 | |
10.173.0.5/32 | |
10.173.0.4/32 | |
10.173.0.3/32 | |
10.173.0.2/32 | |
$ make shell | |
# now ping any of above ip | |
/ # curl 10.173.0.2:5678 | |
Pong. You hit me, my hostname is demo-1594119973-21m6k, from 10.173.0.9:36866// # curl 10.173.0.3:5678 | |
Pong. You hit me, my hostname is demo-1594119973-z0rx6, from 10.173.0.9:44860// # curl 10.173.0.4:5678 | |
Pong. You hit me, my hostname is demo-1594119973-b46q9, from 10.173.0.9:53574// # curl 10.173.0.5:5678 | |
Pong. You hit me, my hostname is demo-1594119973-4q95s, from 10.173.0.9:57730// # curl 10.173.0.6:5678 | |
Pong. You hit me, my hostname is demo-1594119973-1rh6k, from 10.173.0.9:47150// # curl 10.173.0.7:5678 | |
Pong. You hit me, my hostname is demo-1594119973-99s0j, from 10.173.0.9:52412// # curl 10.173.0.8:5678 | |
Pong. You hit me, my hostname is demo-1594119973-8gzcf, from 10.173.0.9:57386// # curl 10.173.0.9:5678 | |
Pong. You hit me, my hostname is demo-1594119973-2h5mf, from 10.173.0.9:47532// # curl 10.173.0.10:5678 | |
Pong. You hit me, my hostname is demo-1594119973-375n2, from 10.173.0.9:56496/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment