doctl Verified current stable Not installed? Kubernetes

Doctl / List Regions Supported Kubernetes Clusters

List Regions Supported Kubernetes Clusters

List regions where Kubernetes clusters can be created on DigitalOcean.

$
Terminal
doctl k o r

When To Use

When planning the deployment of Kubernetes clusters across specific geographic regions.

Pro Tip

Review region latency before choosing a deployment location for performance considerations.

Anatomy of Output

Understanding the result

Supported Regions: Region List

Indicates regions where clusters can be deployed.

- NYC1 Region Code

New York City, Zone 1.

- SFO1 Region Code

San Francisco, Zone 1.

- TOR1 Region Code

Toronto, Zone 1.

Power User Variants

Optimized versions

doctl kubernetes options regions --verbose

List supported regions with additional debugging information.

doctl kubernetes options regions --format json

Output the region list in JSON format.

Troubleshooting

Common pitfalls

Error: Could not retrieve regions - network error.

Solution: Check your internet connection and retry.

Error: API timeout while fetching regions.

Solution: Wait a moment and try the command again.

Error: Unauthorized access - API key missing.

Solution: Ensure your API key is correctly configured.

Command Breakdown

What each part is doing

doctl
Base Command
The executable that performs this operation. Here it runs Doctl before the shell applies any redirect operators.
k
k|kubernetes
The value supplied for k|kubernetes.
o
o|options
The value supplied for o|options.
r
r|regions
The value supplied for r|regions.

Alternative Approaches

Comparable commands in other tools

Alternative kubernetes tools for the same job.