Skip to main content

Ambassador in GKE

This page shows how to create an Ambassador API Gateway instance as part of a Google Kubernetes Engine (GKE) cluster.

For prerequisites, see the main guide.

Java SDK

When you create your GKE cluster, you have the option to specify an API Gateway. In the example below, we demonstrate how to create an Ambassador instance as part of your GKE.

GoogleKubernetesEngine.builder()
.withId("gke-1")
.withDescription("GKE with Ambassador")
.withDisplayName("GKE #1")
.region(EU_WEST1)
.withAPIGateway(CaaSAmbassador.builder()
.withId("api-gateway")
.withDescription("Ambassador API Gateway")
.withDisplayName("API Gateway")
.withNamespace("ambassador")
.withAcmeProviderAuthority("https://acme-v02.api.letsencrypt.org/directory")
.withHost("gcp.test.mydomain.com")
.withHostOwnerEmail("owner@mydomain.com")
.withTlsSecretName("ambassador-tls-secret-name")
.withLicenseKey("license-key")
.build())
.build();

For more details, see the Ambassador in GCP sample on GitHub.

Pushing prerequisite images

If the required images are missing in your container registry, pull, tag, and push them to your GCP Artifact Registry or Container Registry following your organization's standard process.