c12s-kubespray/examples/kubernetes/ccp
2016-07-13 13:38:12 +02:00
..
README.md Refactor CCP deployment part 2016-07-12 17:20:58 +02:00
run_demo.sh Update the list of patchsets for ccp-neutron 2016-07-13 13:38:12 +02:00

CCP examples

Some examples for Openstack CCP.

Expose Horizon

  • Get nodePort of Horizon service:
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:
iptables -t nat -I PREROUTING -p tcp --dport 8080 -j DNAT --to-destination 10.210.0.12:32643
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 IP of one of your k8s minions and 32643 is nodePort of Horizon service.

  • You can do the same for novnc:
echo $(kubectl --namespace=openstack get svc/nova-novncproxy -o go-template='{{(index .spec.ports 0).nodePort}}')