Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Single Zone Cluster, Small Footprint

Yuriy Lesyuk edited this page Jan 11, 2021 · 3 revisions

Walkthrough: Single-Zone Cluster, Small Runtime

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

Clone ahr and bootstrap AHR_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

Plan and configure your Hybrid project and cluster

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"'

Plan your [static] ip addresses in the region or...

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

Service account directory and service accounts

export SA_DIR=/home/yuriyl/apigee-hybrid/service-account-keys

If your service accounts are not created yet, execute:

ahr-sa-ctl create all

Configure and initialize environment variables and settings


cd $HYBRID_HOME

source $HYBRID_HOME/hybrid110-demo2.sh
source $AHR_HOME/bin/ahr-env

Generate Cluster json and create cluster

ahr-cluster-ctl template $AHR_HOME/templates/cluster-single-zone-one-nodepool-template.json > $CLUSTER_CONFIG

ahr-cluster-ctl create

Generate Runtime Configuration yaml file

source <(ahr-runtime-ctl home)


ahr-runtime-ctl template $AHR_HOME/templates/overrides-small-1.1-template.yaml > $RUNTIME_CONFIG

Verify prerequisites

ahr-verify

Get source code of Apigee Hybrid installation

ahr-runtime-ctl get
source <(ahr-runtime-ctl home)

Install the runtime auxillery componenets

ahr-runtime-ctl apigeectl init -f $RUNTIME_CONFIG
ahr-runtime-ctl apigeectl wait-for-ready -f $RUNTIME_CONFIG

Configure synchronizer and apigeeconnect component

ahr-runtime-ctl setsync $SYNCHRONIZER_SA_ID

ahr-runtime-ctl setproperty features.mart.apigee.connect.enabled true

Verify Hybrid Control Plane Configuration

ahr-runtime-ctl org-config

Install Hybrid runtime components

ahr-runtime-ctl apigeectl apply -f $RUNTIME_CONFIG
ahr-runtime-ctl apigeectl wait-for-ready -f $RUNTIME_CONFIG

Test Request for Ping proxy

curl https://$RUNTIME_HOST_ALIAS/ping -v

Scenarios



Deep Dives

Archive

Ingress and TLS

DevPortal

Troubleshooting Flows

Clone this wiki locally