Create a cluster in a custom region

This document explains how to create a cluster in a custom region using the PlanetScale console. A custom region uses a Kubernetes cluster that you control on a cloud provider, instead of using a PlanetScale-managed private cloud.


To create a custom cluster, complete the following steps:

  1. Open the Clusters view.
  2. Click Create Cluster.
  3. Name your cluster.
  4. Select Custom Kubernetes Region.
  5. Click Create new custom region.
  6. Download the script.
  7. Execute the script.
  8. Paste the output of the script into the field under Step 2: Provide details.
  9. Click Continue.
  10. Provide details for Backup Store.
  11. Name your Custom Region.
  12. Click Create Custom Region.
  13. Click Finish.

Step 1: Open the Clusters view.

When you create a account, you are prompted to create a cluster. You can also access this view by going to

Step 2: Click Create Cluster.

Step 3: Name your cluster.

After clicking Create Cluster, you are prompted to name your cluster.

The name of your cluster is prepended with your account name, and must be unique.

Step 4: Select Custom Kubernetes Region.

Step 5: Click Create new custom region.

Step 6: Download the script.

This script will output details about your Kubernetes cluster.

To download the script using cURL, use the following command:

curl -o

To download the script using Wget, use the following command:

wget -O

Step 7: Execute the script.

Run The script will target the Kubernetes cluster in your current kubectl context.

Optionally, you can run the script with either of the following flags:

  • --dry-run: Review the changes that the script would make to your Kubernetes cluster without making the changes.
  • --namespace: Run the script against a specific namespace. The default namespace is the namespace of your current context. The most common value for this namespace is default.

For example, the following command outputs the changes that the script would make to the namespace other-namespace:

$ bash --dry-run --namespace other-namespace

The following command runs the script against the namespace in the current kubectl context:

$ bash

Because the script makes changes to your Kubernetes cluster, you must run the script without the --dry-run flag before you can create a custom cluster.

You should see output like this:

apiserver: ""
ca_crt:"<CA certificate string>"
token: "<token string>"
namespace: "default"
  - "standard"
default_storageclass: "standard"
    - "us-central1-a"
    - "us-central1-a"
    - "us-central1-a"
    - "us-central1"
    - "us-central1"
    - "us-central1"
provider: "gce"

For more information about the script, see Custom region requirements.

Step 8: Provide script output.

Paste the output of the script from Step 7 into the field under **C: Paste Script Output".

Step 9: Click Continue.

Step 10: Provide the details for your Backup Store.

PlanetScaleDB requires access to a storage bucket. Provide storage bucket details for yourAmazon S3, GCP Cloud Storage, or Azure Cloud Storage bucket.

Step 11: Input your Custom Region Name.

Step 12: Click Create custom region.

A summary of your custom region will appear.

Step 13: Review and click Finish.

Your custom region name now appears when you Create a cluster.

What's next