How do I set up my Google Registry to work with Serverless Containers?

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

    1. Go to Google IAM & Admin > Service Accounts
    2. Create Service Account
    3. Fill in the service account details
    4. Continue to step 2
    5. Give the service account the correct role
    6. Create service account
    7. Open the service account
    8. Go to Keys
    9. Click on Add Key
    10. Create new key
    11. Select JSON
    12. 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: image003.png
GAR: image002.png

Steps

  1. Go to cloud.tilaa.com
  2. Go to Serverless Containers
  3. Open a namespace
  4. Go to Registries
  5. Add Registry
  6. Fill in a name
  7. Fill in the source
    • GCR always ends with
      'gcr.io'
    • GAR always ends with
      'pkg.dev'
  8. Use the username:
    _json_key
  9. Copy and paste the complete content of the JSON file into the password field.
  10. 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.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section