BYOC Onboarding
This page applies to BYOC deployments. To compare the plans, see Deployment models.
You create and manage your BYOC deployment in the Subimage management portal, manage.subimage.io. The portal is where you connect your cloud account, create your deployment, and follow its status.
Before you start
- A dedicated cloud account. Use an AWS account or a Google Cloud project that holds only the Subimage deployment. The access you grant in step 2 covers the whole account or project.
- Fewer guardrails on that account, if you can. If possible, put the account in its own AWS organizational unit, or the project in its own Google Cloud folder, where your service control policies (SCPs), organization policies, and IAM deny policies do not apply or are relaxed. This is not required: restrictive policies only mean the setup takes some custom work with Subimage. See Google Cloud organization policies and Google Cloud IAM deny policies for the ones that most often matter.
- A region. The portal lists the regions available for your plan.
- A hostname. Pick the hostname your users will open, for example
subimage.example.com. You need to create a DNS record for it. - Compute quota. A deployment needs more compute than a new cloud account
allows by default. Ask for the increase before you start, because it can
take a few days:
- On AWS, at least 128 vCPUs of the "Running On-Demand Standard instances" quota in your region.
- On Google Cloud, at least 160 N2 CPUs in your region.
- An administrator who can run the account setup in step 2. See Permissions to run the setup.
Permissions to run the setup
On AWS, the administrator needs to create a CloudFormation stack that creates IAM roles.
On Google Cloud, the simplest is the Owner role on the project. If your organization does not grant Owner, these roles on the project are enough:
| Role | Used to |
|---|---|
roles/serviceusage.serviceUsageAdmin |
Enable the required APIs. |
roles/iam.serviceAccountAdmin |
Create the service accounts and their bindings. |
roles/iam.serviceAccountUser |
Create the temporary GKE cluster below. |
roles/resourcemanager.projectIamAdmin |
Grant the service accounts their project roles. |
roles/iam.roleAdmin |
Create one custom role. |
roles/iam.workloadIdentityPoolAdmin |
Create the workload identity pool and its provider. |
roles/container.admin |
Create and delete the temporary GKE cluster below. |
Google Cloud organization policies
These organization policies are not set by default, but if your organization sets them, they can block the setup or the deployment. Check them on the project before you start:
| Policy | What to allow |
|---|---|
iam.workloadIdentityPoolProviders |
The Subimage control plane identity provider, https://oidc.eks.us-east-2.amazonaws.com/id/B785000B73171573504052986290EAB0. The control plane runs on AWS and signs in to your project through workload identity federation. |
iam.allowedPolicyMemberDomains |
The workload identity principal that the setup binds to the bootstrap service account. |
gcp.resourceLocations |
The region you deploy to. |
compute.restrictLoadBalancerCreationForTypes |
External HTTPS load balancers, for the application. |
To see the effective value of a policy on the project:
gcloud resource-manager org-policies describe iam.workloadIdentityPoolProviders \
--project=<project> --effectiveGoogle Cloud IAM deny policies
The setup and each deployment change IAM policies in the project:
- The setup grants project roles to the service accounts it creates, and binds them to their workload identities.
- When Subimage installs a deployment, it creates service accounts for its components and grants them access to their own secrets, buckets, and keys. Later upgrades do this again only when they add a component.
If your organization uses an IAM deny policy that blocks setIamPolicy in the
project, these changes fail with a 403 error. Before you start, either exempt
the service accounts that the setup creates from that deny policy, or plan to
apply the bindings through your own IAM process. In that case, Subimage sends
you the exact bindings for the setup and for each install that needs them.
1. Subscribe to a plan
- Open manage.subimage.io and sign up with your work email. Verify the email address.
- In the left menu, open Account Management > Subscriptions and select Manage Subscriptions.
- Keep Subimage as the product. Select Subscribe on the BYOC or the BYOC with Private Graph plan.
- Tell your Subimage contact that you subscribed. Subimage approves the subscription, and the plan then shows in your list of subscriptions.
2. Connect your cloud account
In the portal, open Deployments > Cloud Accounts and add your AWS account or Google Cloud project. The portal gives you an account configuration and a setup method. Choose one of the methods below. Each method creates the same access, described in Access and security.
AWS
- Terraform. Download
subimage_byoc_aws_onboarding.tf. Setconfig_identityto theAccountConfigIdentityIdvalue of the CloudFormation link that the portal shows. Then runterraform init && terraform applywith credentials for the account. - CloudFormation. Open the quick-create link that the portal shows. Before
you create the stack, set the
IsBYOCPrivateAccountandEnablePrivateArtifactRegistryparameters totrue.
Both methods create the AccountConfigSetup CloudFormation stack.
Google Cloud
First, create the identity pool that Google Cloud adds to a project when a GKE cluster first exists in it. A temporary GKE Autopilot cluster in any region is enough, for example the region you will deploy to:
gcloud container clusters create-auto temp-pool --project=<project> --region=<region>
gcloud container clusters delete temp-pool --project=<project> --region=<region> --quietIf the project has no default network, add --network=<network> to the
create command. If Autopilot has no capacity in the region, use another
region: the temporary cluster does not have to be in the region you deploy to.
Then enable the Service Usage API:
gcloud services enable serviceusage.googleapis.com --project=<project>Then choose a method:
- Setup script. Run the command that the portal shows, in Cloud Shell or
with the
gcloudCLI. - Terraform. Download
subimage_byoc_gcp_onboarding.tf. Setproject_idto your project andaccount_config_idto the Account Config ID that the portal shows. Then runterraform init && terraform apply. The file also holdsagent_infrastructure_mutation_enabled; see Controls you keep.
Wait until the portal shows the account as ready.
3. Create your deployment
In the portal, open Deployments > Instances and select Create. Choose the connected account and fill in these fields:
| Field | What to enter |
|---|---|
| Region | The region for the deployment. |
| Deployment ID | A short lowercase name for the deployment, for example acme. Up to 24 characters. You cannot change it later. |
| Organization display name | Your company name, shown on the sign-in page. |
| Tenant hostname | The hostname you picked, without https:// or a path. You cannot change it later. |
| Graph memory and Graph storage | BYOC with Private Graph only. See Operations. |
Subimage then creates the infrastructure and installs the application. The portal shows the progress. The first deployment in a region also creates the Kubernetes cluster and its network, so it takes longer than later changes.
4. Point your hostname to the deployment
When the deployment is ready, the portal shows the DNS record to create for your hostname. Create it at your DNS provider. Subimage then issues the TLS certificate for the hostname.
5. Sign in and connect your data
Open your hostname and sign in. Then connect your sources: see Getting started and the module setup guides.
Troubleshooting
| Problem | Fix |
|---|---|
The Google Cloud setup fails with Identity Pool does not exist. |
Create and delete the temporary GKE cluster in Google Cloud, then run the setup again. |
| The Google Cloud setup cannot create the workload identity pool provider. | Allow the Subimage identity provider in iam.workloadIdentityPoolProviders. See Google Cloud organization policies. |
| The Google Cloud setup creates the service accounts, but every IAM binding fails with a 403 error. | An IAM deny policy blocks setIamPolicy. See Google Cloud IAM deny policies. |
| The deployment fails to enable Google Cloud APIs. | Enable the Service Usage API, then retry the deployment from the portal. |
| The setup failed partway, or someone deleted its resources. | Run the current setup again from the start on the same account or project. On Google Cloud, a recreated project or a deleted workload identity pool needs the full setup again. |
If the problem persists, contact Subimage support with the account ID or project ID and the error.