Single Zone Cluster, Small Footprint - apigee/ahr GitHub Wiki
TIP: Eventually, your session expires. You would need to reset it. To initialise a working state every next time, copy and execute this collection of commands in your terminal.
export AHR_HOME=~/apigee-hybrid/ahr export HYBRID_HOME=~/apigee-hybrid/apigee-hybrid110-demo2 export PATH=$AHR_HOME/bin:$PATH export AHR_HOME=~/apigee-hybrid/ahr source $AHR_HOME/bin/ahr-env source $HYBRID_HOME/hybrid110-demo2.sh source <(ahr-runtime-ctl home) cd $HYBRID_HOME
mkdir -p ~/apigee-hybrid
cd ~/apigee-hybrid
git clone https://github.com/apigee/ahr
export AHR_HOME=~/apigee-hybrid/ahr
export PATH=$AHR_HOME/bin:$PATH
export HYBRID_HOME=~/apigee-hybrid/apigee-hybrid110-demo2
mkdir -p $HYBRID_HOME
cd $HYBRID_HOME
cp $AHR_HOME/examples/hybrid-demo6-sz-s-1.1.sh hybrid110-demo2.sh
vi hybrid110-demo2.sh
Adjust environment variables
export HYBRID_HOME=~/apigee-hybrid/apigee-hybrid110-demo2
export PROJECT=emea-cs-hybrid-demo2
export REGION=europe-west2
export CLUSTER_CONFIG=cluster-sz.json
export CLUSTER_VERSION=1.14
export CLUSTER_ZONE=europe-west2-b
export CLUSTER_LOCATIONS='"europe-west2-b"'
export APIGEE_NET_CHAIN=<...>
export APIGEE_NET_KEY=<...>
export RUNTIME_HOST_ALIAS=$ORG-$ENV.hybrid-apigee.net
export RUNTIME_IP=35.246.104.54
export MART_IP=35.197.194.6
export SA_DIR=/home/yuriyl/apigee-hybrid/service-account-keys
If your service accounts are not created yet, execute:
ahr-sa-ctl create all
cd $HYBRID_HOME
source $HYBRID_HOME/hybrid110-demo2.sh
source $AHR_HOME/bin/ahr-env
ahr-cluster-ctl template $AHR_HOME/templates/cluster-single-zone-one-nodepool-template.json > $CLUSTER_CONFIG
ahr-cluster-ctl create
source <(ahr-runtime-ctl home)
ahr-runtime-ctl template $AHR_HOME/templates/overrides-small-1.1-template.yaml > $RUNTIME_CONFIG
ahr-verify
ahr-runtime-ctl get
source <(ahr-runtime-ctl home)
ahr-runtime-ctl apigeectl init -f $RUNTIME_CONFIG
ahr-runtime-ctl apigeectl wait-for-ready -f $RUNTIME_CONFIG
ahr-runtime-ctl setsync $SYNCHRONIZER_SA_ID
ahr-runtime-ctl setproperty features.mart.apigee.connect.enabled true
ahr-runtime-ctl org-config
ahr-runtime-ctl apigeectl apply -f $RUNTIME_CONFIG
ahr-runtime-ctl apigeectl wait-for-ready -f $RUNTIME_CONFIG
curl https://$RUNTIME_HOST_ALIAS/ping -v