Supported versions:
Unsupported versions:
This step explains how to download and install apigeectl, set up the installation directories, and create Google Cloud service accounts, and TLS credentials that are required for Apigee hybrid to operate.
apigeectl
apigeectl is the command-line interface
(CLI) for installing and managing Apigee hybrid in a Kubernetes cluster.
The following steps describe how to get apigeectl:
Download the release package for your operating system using the following command:
Mac 64 bit:
curl -LO \
https://storage.googleapis.com/apigee-release/hybrid/apigee-hybrid-setup/1.2.0/apigeectl_mac_64.tar.gzLinux 64 bit:
curl -LO \
https://storage.googleapis.com/apigee-release/hybrid/apigee-hybrid-setup/1.2.0/apigeectl_linux_64.tar.gzMac 32 bit:
curl -LO \
https://storage.googleapis.com/apigee-release/hybrid/apigee-hybrid-setup/1.2.0/apigeectl_mac_32.tar.gzLinux 32 bit:
curl -LO \
https://storage.googleapis.com/apigee-release/hybrid/apigee-hybrid-setup/1.2.0/apigeectl_linux_32.tar.gzExtract the downloaded gzip file contents into the base directory you just created. For example:
tar xvzf filename.tar.gz -C path-to-base-directory
The tar contents are, by default, expanded into a directory with the version and platform in its
name. For example: ./apigeectl_1.0.0-f7b96a8_linux_64. Rename that directory
to apigeectl using the following command:
mv apigeectl_1.0.0-f7b96a8_linux_64 apigeectlcd ./apigeectl
This directory is the apigeectl home directory. It is where the apigeectl
executable command is located.
export APIGEECTL_HOME=$PWD
echo $APIGEECTL_HOME
The directory structure described below is a suggested approach. It separates Apigee hybrid
release software from configuration files that you must create. Through the use of the
$APIGEECTL_HOME variable and symbolic links that you create, you can easily
switch to a new software version if you choose to. See also Upgrading Apigee hybrid.
apigeectl directory
is located).
hybrid-files. You can give the directory any
name you wish, but in the docs, the name hybrid-files is used
consistently. Later,
you will store configuration files, service account keys, and TLS certificates in this folder.
This folder lets you keep your config files separate from the apigeectl software
installation:
mkdir hybrid-files
pwd && ls
/hybrid-base-directory
apigeectl
hybrid-fileshybrid-filesfolder using the following command:
cd hybrid-files
hybrid-files directory, create the following
subdirectories to organize files that you will create later using the following commands:
mkdir overridesmkdir service-accountsmkdir certs
hybrid-files directory, create the following symbolic links to
$APIGEECTL_HOME. These links
allow you to run the apigeectl command from inside the hybrid-files
directory.
ln -s$APIGEECTL_HOME/tools toolsln -s$APIGEECTL_HOME/config configln -s$APIGEECTL_HOME/templates templatesln -s$APIGEECTL_HOME/plugins plugins
ls -l | grep ^l
Apigee hybrid uses Google Cloud service accounts to allow hybrid components to communicate by making authorized API calls. In this step, you use an Apigee hybrid command-line tool to create a set of services accounts. The tool also downloads the service account private keys for you. You must then add these keys to your Apigee hybrid cluster configuration file.
Create the keys:
base_directory/hybrid-files directory.
hybrid-files directory. This command
creates a service account for the apigee-metrics component and places
the downloaded key in the ./service-accounts directory.
./tools/create-service-account apigee-metrics ./service-accounts
When you see the following prompt, enter y:
[INFO]: gcloud configured project ID is project_id. Press: y to proceed with creating service account in project: project_id Press: n to abort.
If this is the first time an SA with the exact name assigned by the tool was created, then the tool just creates it, and you do not have to do anything further.
If, however, you see the following message and prompt, enter y to generate new keys:
[INFO]: Service account apigee-metrics@project_id.iam.gserviceaccount.com already exists. ... [INFO]: The service account might have keys associated with it. It is recommended to use existing keys. Press: y to generate new keys.(this does not de-activate existing keys) Press: n to skip generating new keys.
./tools/create-service-account apigee-synchronizer ./service-accounts./tools/create-service-account apigee-udca ./service-accounts./tools/create-service-account apigee-mart ./service-accounts./tools/create-service-account apigee-cassandra ./service-accounts./tools/create-service-account apigee-logger ./service-accounts
ls ./service-accounts gcp-project-id-apigee-cassandra.json gcp-project-id-apigee-logger.json gcp-project-id-apigee-mart.json gcp-project-id-apigee-metrics.json gcp-project-id-apigee-synchronizer.json gcp-project-id-apigee-udca.json
You are required to provide TLS certificates for the MART and runtime ingress gateways in your Apigee hybrid configuration. The credentials used for the MART gateway must be authorized by a certificate authority (CA). For the purpose of this quickstart (a non-production trial installation), the runtime gateway can accept self-signed credentials.
In this step, you will create the TLS credential files and add them to
the base_directory/hybrid-files/certs directory.
In Step 3: Configure the cluster, you will add the file
paths to the cluster configuration file.
The runtime ingress gateway (the gateway that handles API proxy traffic) requires a TLS certificate/key pair. For this quickstart installation, you can use self-signed credentials. In the following steps, openssl is used to generate the credentials.
base_directory/hybrid-files directory.
hybrid-files directory using the following command:
openssl req -nodes -new -x509 -keyout ./certs/keystore.key -out \
./certs/keystore.pem -subj '/CN=mydomain.net' -days 3650This command creates a self-signed certificate/key pair that you can use for the quickstart installation. The CN mydomain.net can be any value you wish for the self-signed credentials.
./certs directory using the following command:
ls ./certs
keystore.pem
keystore.key
Where keystore.pem is the self-signed TLS certificate file and keystore.key
is the key file.
As noted in Before you begin, you must use an authorized TLS certificate/key pair for the MART gateway configuration. If you have not done so, obtain or create these credentials now.
base_directory/hybrid-files/certs directory.
./certs directory. For example:
ls ./certs
fullchain.pem
privkey.key
keystore.pem
keystore.key
Where fullchain.pem is the authorized TLS certificate file and privkey.key
is the authorized key file.
You now have a home base from which you can configure, deploy, and manage Apigee hybrid in your Kubernetes cluster. Next, you will create a file that will be used by Kubernetes to deploy the hybrid runtime components to the cluster.
1 2 (NEXT) Step 3: Configure the cluster 4Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-23 UTC.