From 95a2bcdd9dbbd6689a1155493adccef92e106e35 Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Wed, 13 Jul 2016 16:01:43 +0200 Subject: [PATCH] Fixed docs --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 55d63626a..b3cc5a927 100644 --- a/README.md +++ b/README.md @@ -49,17 +49,14 @@ sudo su - git clone https://github.com/adidenko/vagrant-k8s ~/mcp ``` -* Install required software and pull needed repos (modify script if you're not -running it on Vagrant lab, you'll need to create `nodes` list manually and -clone `microservices` and `microservices-repos` repositories, see ccp-pull.sh -for details) +* Install required software and pull needed repos: ```bash cd ~/mcp ./bootstrap-master.sh ``` -* Check nodes list and make sure you have SSH access to them +* Check `nodes` list and make sure you have SSH access to them ```bash cd ~/mcp @@ -84,6 +81,17 @@ ansible-playbook -i nodes_to_inv.py playbooks/ccp-build.yaml ansible-playbook -i nodes_to_inv.py playbooks/ccp-deploy.yaml ``` +* Check Horizon: + +```bash +# On k8s master node check nodePort of Horizon service +HORIZON_PORT=$(kubectl --namespace=openstack get svc/horizon -o go-template='{{(index .spec.ports 0).nodePort}}') +echo $HORIZON_PORT + +# Access Horizon via nodePort +curl -i -s $ANY_K8S_NODE_IP:$HORIZON_PORT +``` + Working with kubernetes -----------------------