From f770ae82e661248b5afe97f395096eaceab643c8 Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Wed, 29 Jun 2016 12:48:21 +0200 Subject: [PATCH] Updated readme in examples --- examples/kubernetes/expose-services/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/kubernetes/expose-services/README.md b/examples/kubernetes/expose-services/README.md index 800d7d4b0..f29b64992 100644 --- a/examples/kubernetes/expose-services/README.md +++ b/examples/kubernetes/expose-services/README.md @@ -30,9 +30,16 @@ echo $(kubectl --namespace=kube-system get svc/kubernetes-dashboard -o go-templa * NAT on your router/jump-box to any k8s minion public IP and nodePort to provide external access: ```bash -iptables -t nat -I PREROUTING -p tcp --dport 2080 -j DNAT --to-destination 10.210.0.12:32005 +iptables -t nat -I PREROUTING -p tcp --dport 9090 -j DNAT --to-destination 10.210.0.12:32005 iptables -t nat -I POSTROUTING -d 10.210.0.12 ! -s 10.210.0.0/24 -j MASQUERADE iptables -I FORWARD -d 10.210.0.12 -j ACCEPT ``` Where `10.210.0.12` is public IP of one of your k8s minions and `32005` is nodePort of `kubernetes-dashboard` service. + +* Access: + +```bash +curl 10.210.0.12:9090 +``` +