Setting up a Google registry:
As indicated in this knowledge base article, Google has 2 solutions for a Container Registry: Google Cloud Registry (to be deprecated from May 2024) and Google Artifact Registry.
Some extra steps are needed on the Google side to add your Google registry to our platform.
Below you will find the steps needed to set this up.
We can support both options, but there are a few points to take into account.
Follow red for Google Cloud Registry (GCR)
Follow blue for Google Artifact Registry (GAR)
Or both, to support them both.
Steps
-
- Go to Google IAM & Admin > Service Accounts
- Create Service Account
- Fill in the service account details
- Continue to step 2
- Give the service account the correct role
- Create service account
- Open the service account
- Go to Keys
- Click on Add Key
- Create new key
- Select JSON
- Download and save the key on a secure location
Your Google account is now set up for use.
More information about roles and permissions can be found here:
GCR: https://cloud.google.com/container-registry/docs/access-control
GAR: https://cloud.google.com/artifact-registry/docs/access-control
Add the Google registry in Tilaa's Serverless Containers platform:
To add the Google registry you need to know your source.
This depends on the location within Google where you create your Container Registry.
For more information see:
GCR: https://cloud.google.com/artifact-registry/docs/transition/setup-gcr-repo
GAR: https://cloud.google.com/artifact-registry/docs/docker/names
The source can also be easily found when you open your registry in Google.
The domain in the first bread crumb is the source.
For example:
GCR:
GAR:
Steps
- Go to cloud.tilaa.com
- Go to Serverless Containers
- Open a namespace
- Go to Registries
- Add Registry
- Fill in a name
- Fill in the source
-
-
GCR always ends with
'gcr.io'
-
GAR always ends with
'pkg.dev'
-
GCR always ends with
- Use the username:
_json_key
- Copy and paste the complete content of the JSON file into the password field.
- Click on add registry.
After executing the steps above, you can now deploy container images from the Google registry.
A guide on how to deploy your container can be found here.
Comments
Please sign in to leave a comment.