Added example for Horizone exposing via nodePort
This commit is contained in:
parent
96add56527
commit
84d85e41a9
1 changed files with 18 additions and 0 deletions
18
examples/kubernetes/ccp/README.md
Normal file
18
examples/kubernetes/ccp/README.md
Normal file
|
@ -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.
|
Loading…
Reference in a new issue