From 460db87bd79f5845d8249c5eed68fc7841b7585a Mon Sep 17 00:00:00 2001 From: Soam Vasani Date: Wed, 30 Nov 2016 14:13:00 -0800 Subject: [PATCH] Merge env var section to setup --- README.md | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 58dde620..8b8811f3 100644 --- a/README.md +++ b/README.md @@ -99,15 +99,11 @@ and 31314. $ kubectl create -f http://fission.io/fission-nodeport.yaml ``` -``` - $ kubectl --namespace fission get services -``` - -Save the external IP addresses of controller and router services in -FISSION_URL and FISSION_ROUTER, respectively. FISSION_URL should be -prefixed with a `http://`. FISSION_URL is used by the fission CLI to -find the server. (FISSION_ROUTER is only needed for the examples -below to work.) Below is an example for Minikube with NodePort. +Set FISSION_URL and FISSION_ROUTER environment variables FISSION_URL +should be prefixed with a `http://`. FISSION_URL is used by the +fission CLI to find the server. (FISSION_ROUTER is only needed for +the examples below to work.) Below is an example for Minikube with +NodePort. ``` $ export FISSION_ROUTER=$(minikube ip):31314 @@ -126,25 +122,16 @@ LoadBalancer service type, use these commands: $ kubectl create -f http://fission.io/fission-cloud.yaml ``` -Wait for services to get IP addresses (check this with ```kubectl ---namespace fission get svc```). Then: +Save the external IP addresses of controller and router services in +FISSION_URL and FISSION_ROUTER, respectively. Wait for services to +get IP addresses (check this with ```kubectl --namespace fission get +svc```). Then: ``` $ export FISSION_URL=http://$(kubectl --namespace fission get svc controller -o=jsonpath='{..ip}') $ export FISSION_ROUTER=$(kubectl --namespace fission get svc router -o=jsonpath='{..ip}') ``` - -### Set fission URLs - - -Save the external IP addresses of controller and router services in -FISSION_URL and FISSION_ROUTER, respectively. FISSION_URL should be -prefixed with a `http://`. FISSION_URL is used by the fission CLI to -find the server. (FISSION_ROUTER is only needed for the examples -below to work.) Below is an example for Minikube with NodePort. - - ### Install the client CLI ```