Step 1: Create a cluster Stay organized with collections Save and categorize content based on your preferences.
Before you begin:
These steps assume you have created environment variables in the previous steps. Check them with the following commands:
echo $PROJECT_IDecho $CLUSTER_LOCATIONecho $ORG_NAMEecho $ENV_NAME
Click for descriptions and commands to define the variables.
These steps use the following environment variables:
- PROJECT_ID: The ID of your Google Cloud project. SeeHybrid quickstart - Step 2: Create a Google Cloud project
export PROJECT_ID=your_project_ID
- CLUSTER_LOCATION: The region in which your you will create your cluster.
Note:Apigee recommends you use aregion name and not a zone name. A region is a specific geographical location where you can host your resources. Regions can have multiple zones. For example, theexport CLUSTER_LOCATION=cluster-region
us-west1region denotes a region on the west coast of the United States that has three zones:us-west1-a,us-west1-b,and us-west1-c. The available regions are listed inAvailable regions and zones. Just be aware that, for example,us-west1is a valid region name, whileus-west1-ais a zone in the region. For most hybrid installations, use a region name for theCLUSTER_LOCATIONvariable. - ORG_NAME: The name of your org. This must match your Google Cloud project ID. SeeHybrid quickstart - Step 4: Create an organization
export ORG_NAME=your_organization_name
- ENV_NAME: The name of your hybrid environment. SeeHybrid quickstart - Step 6: Create an environment group
export ENV_NAME=your_environment_name
This procedure explains how to set up the cluster in which you will run Apigee hybrid. The instructions vary depending on the platform in which you are running hybrid. Select your platform to see the instructions.
GKE
This step explains how to set up your shell environment and create a GKE cluster in your Google Cloud project.
Caution:Apigee does not supportGKE Sandbox orgVisor for hybrid installations on GKE.Creating a cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of GKE supported by this version of hybrid version 1.5.10:
- Use the following instructions to create a user cluster:
When you have a cluster installed and running, go to the next step.
GKE on prem
Creating a cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of GKE supported by this version of hybrid version 1.5.10:
- Use the following instructions to create a user cluster:
- GKE on-prem installation overview in the GKE on-prem documentation.
When you have a cluster installed and running, go to the next step.
Anthos on bare metal
Requirements and prerequisites
Anthos clusters on bare metal lets you run Kubernetes clusters directly on your own machine resources.
Review the following requirements and prerequisites:
- Hardware requirements:Configuring hardware for Anthos clusters on bare metal
- Installation prerequisites overview
Creating a cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of GKE supported by this version of hybrid version 1.5.10:
- Use the following instructions to create a user cluster:
- Creating user clusters in a multi-cluster setup in the Anthos clusters on bare metal documentation.
When you have a cluster installed and running, go to the next step.
AKS
Create an AKS cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of AKS supported by this version of hybrid version 1.5.10:
- Use one of the following sets of instructions to create a cluster:
- Using the Azure CLI:Quickstart: Deploy an Azure Kubernetes Service cluster using the Azure CLI.
- Using the Azure Portal:Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using the Azure portal.
EKS
Creating a cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of EKS supported by this version of hybrid version 1.5.10:
- Use the following instructions to create a user cluster:
When you have a cluster installed and running, go to the next step.
GKE on AWS
Creating a cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of GKE supported by this version of hybrid version 1.5.10:
- Use the following instructions to create a user cluster:
When you have a cluster installed and running, go to the next step.
OpenShift
Creating a cluster
- Gather your cluster requirements for Apigee hybrid cluster:
- Check the version of GKE supported by this version of hybrid version 1.5.10:
- Use the following instructions to install Apigee on your OpenShift user cluster and register it with GKE Hub.If you do not have an openshift cluster ready to use with Apigee, see the the instructions in the OpenShift documentation, for example:Installing a cluster quickly on Google Cloud.
- Install and configure the
ocCLI tool. SeeGetting started with the OpenShift CLI in the OpenShift documentation. - Register with GKE Hub
- Create the a file named
gke-connect-scc.yamlwith the following contents:# Connect Agent SCCapiVersion: v1kind: SecurityContextConstraintsmetadata: name: gke-connect-sccallowPrivilegeEscalation: falserequiredDropCapabilities:- ALLrunAsUser: type: MustRunAsNonRootseLinuxContext: type: RunAsAnysupplementalGroups: type: MustRunAs ranges: - min: 1 max: 65535fsGroup: type: MustRunAs ranges: - min: 1 max: 65535volumes:- secretreadOnlyRootFilesystem: trueseccompProfiles:- docker/defaultusers:groups: - system:serviceaccounts:gke-connect
- Create the component in
ocwith hte following command:oc create -f gke-connect-scc.yaml
- Create the environment variables for the context with the following commands:
export KUBECONFIG=<> # Cluster kubeconfig file path
export CONTEXT=admin - Register with GKE Hub with the following command:
gcloud --project=${PROJECT_ID} container hub memberships registerCLUSTER_NAME \ --kubeconfig=${KUBECONFIG} \ --context=${CONTEXT} \ --service-account-key-file=KEY_FILE_PATHWhere:
- PROJECT_ID is your Google Cloud project ID.
- CLUSTER_NAME is the name of the cluster you just created.
- KUBECONFIG is the path to your cluster kubeconfig file.
- CONTEXT is the context under which
gcloudis registering the cluster.CONTEXT must beadminfor this command. - KEY_FILE_PATH is the path to your service account key file, for example
./dist/apigee-my-project-ro-sa.json. The service account must have the the following two IAM roles:- GKE Hub Admin
- GKE Connect Agent
- Create the a file named
- Install and configure the
When you have a cluster installed and registered with GKE Hub, go to the next step.
1(NEXT) Step 2: Install cert-manager3456789
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.