Overview
To use an AutoMQ BYOC environment on Google Cloud, you first need to install the AutoMQ console. The console is a web application deployed in your Google Cloud project. You use it to create, manage, and monitor AutoMQ clusters. Starting from 8.x, the AutoMQ console is distributed and started as a Docker image. New environments should use the Docker installation method.Prerequisites
Before you begin installing the AutoMQ console, prepare the required Google Cloud network resources.- VPC environment: The AutoMQ console and GKE cluster need to run in your VPC, usually the same VPC as your Kafka client applications or a VPC that can reach them.
Steps
Step 1: Register your environment on the AutoMQ website
First, register your deployment environment on the AutoMQ website to obtain the environment metadata and Docker startup command.- Visit AutoMQ Cloud and log in to your account.
- On the console page, click Create Environment.
- Follow the wizard to enter the environment name, cloud provider, region, and related information.
- After creation, copy the Docker startup command generated by the installation wizard.
Step 2: Prepare and deploy the console VM
The AutoMQ console needs to run on a standalone Google Cloud VM. The VM should be in the VPC used by the GKE cluster that you will deploy later. On GCP, the AutoMQ console running on the VM calls Google Cloud APIs through the Google Service Account bound to that VM. To avoid using the default Compute Engine service account, create a dedicated service account in the service project where the console runs before you create the VM. This document refers to it as the console Google Service Account. The console Google Service Account is the control plane identity for the AutoMQ console. During permission initialization, you grant this service account the permissions needed to manage GKE, GCS, Cloud DNS, IAM bindings, and other cloud resources required by AutoMQ. At this point, you only need to create the service account and bind it to the VM when you create the VM. You don’t need to grant the full AutoMQ permissions in advance. After the console starts, the initialization page shows the permissions that need to be granted to this service account and guides you through authorization and verification. If you usegcloud to create the console Google Service Account, use the following example:
Basic requirements
For stable console operation, we recommend the following VM configuration:-
Instance specifications
- At least 2 vCPUs and 8 GB memory.
- At least 20 GiB system disk.
- Use a separate data disk or a stable data directory for console data.
-
Network location
- The console VM should be in a VPC and subnet reachable from the GKE cluster.
- If you use Shared VPC, confirm the permission boundary between the service project where the console runs and the host project where the VPC resides.
- The console service listens on port
8080by default. Allow your operations access source to reach port8080on the console VM, and restrict the source CIDR ranges to your office network, bastion host, or another approved access path.
gcloudto create the firewall rule, use the following command as a reference. It narrows the target to VMs bound to the console Google Service Account by using--target-service-accounts.NETWORK_PROJECT_IDis the project that owns the VPC and firewall rules. In non-Shared VPC environments, it is usually the service project. -
Internet access or egress capability
- The console VM needs to pull Docker images and synchronize required metadata. Use an external IP, Cloud NAT, or another egress path.
- If the console VM doesn’t use an external IP and doesn’t have Cloud NAT or another egress path, enable Private Google Access on the subnet that hosts the console VM so it can reach Cloud Storage, GKE, IAM, Cloud DNS, and other Google APIs. This configuration only covers Google API access. If the VM needs to reach external image registries or other non-Google endpoints, it still needs an external IP, Cloud NAT, or another egress path. For details, see the Google Cloud documentation Configure Private Google Access.
-
VM service account
- When you create the VM, bind the console Google Service Account prepared earlier to the VM. This is the same service account you created at the beginning of this step, and the later permission initialization also applies to this service account.
- The operator who creates the VM needs the
iam.serviceAccounts.actAspermission on this service account to bind it to the VM. - Set the VM access scope to allow full access to all Cloud APIs (
https://www.googleapis.com/auth/cloud-platform). Google Cloud’s default access scopes only include limited permissions such as read-only Cloud Storage, Logging, and Monitoring. - Even if the console Google Service Account has the required IAM roles, a restrictive VM access scope can still block calls to GKE, IAM, Cloud DNS, or write operations to GCS. For details, see the Google Cloud documentation Create a VM that uses a user-managed service account.
Install and start Docker
Log in to the console VM, then install and start Docker. The following commands use Debian / Ubuntu as an example:Start the AutoMQ console
After the VM is ready, copy the Docker startup command generated by the installation wizard in Step 1 and start the AutoMQ console. After you run the startup command, check the container status and logs:Step 3: Configure console permissions and complete initialization
After the AutoMQ console starts successfully, the first login may ask you to initialize permissions. Follow the GCP permission instructions on the page and grant the required permissions to the console Google Service Account. Permission initialization allows the AutoMQ console to create and manage cloud resources. In GCP, the console VM calls Google Cloud APIs through the bound console Google Service Account. Follow the page instructions and grant the listed permissions to this service account. The console verifies those permissions during initialization. GCP permissions can be granted at different locations depending on the capability. In non-Shared VPC environments, the service project and host project are usually the same project. In Shared VPC environments, GKE, the console VM, buckets, and Google Service Accounts usually reside in the service project, while VPC, subnet, and firewall resources reside in the host project. Some bucket and Cloud DNS permissions may also need to be granted on the target resource. The following table helps you understand the bindings shown on the initialization page. Grant permissions based on the content generated on that page.
After granting the permissions, return to the AutoMQ console and click the verification or initialization action. After verification succeeds, you can enter the AutoMQ console and continue configuring GKE.
Next steps
- Deploy to GKE: After installing the console and completing permission initialization, see Deploy to Google Cloud GKE.
- Use AutoMQ via WebUI: Continue to create instances through the environment console and experience the product features. Experience AutoMQ▸
- Use AutoMQ via Terraform: After installing the console, you can manage and use AutoMQ through the AutoMQ Terraform Provider. For Terraform usage, see the Terraform Provider documentation.