From 84d85e41a92df9d4dfd0a214638c26f058b186d8 Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Tue, 28 Jun 2016 14:42:36 +0200 Subject: [PATCH] Added example for Horizone exposing via nodePort --- examples/kubernetes/ccp/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/kubernetes/ccp/README.md diff --git a/examples/kubernetes/ccp/README.md b/examples/kubernetes/ccp/README.md new file mode 100644 index 000000000..f2828c42b --- /dev/null +++ b/examples/kubernetes/ccp/README.md @@ -0,0 +1,18 @@ +CCP examples +============ +Some examples for Openstack CCP. + +Expose Horizon +============== + +* Get nodePort of Horizon service: +```bash +echo $(kubectl --namespace=openstack get svc/horizon -o go-template='{{(index .spec.ports 0).nodePort}}') +``` + +* 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 8080 -j DNAT --to-destination 10.210.0.12:32643 +``` + +Where `10.210.0.12` is IP of one of your k8s minions and `32643` is nodePort of Horizon service.