doctl Verified current stable Not installed? Kubernetes

Doctl / List Kubernetes Versions Digitalocean Clusters

List Kubernetes Versions Digitalocean Clusters

List available Kubernetes versions for clusters on DigitalOcean.

$
Terminal
doctl k o v

When To Use

When upgrading an existing Kubernetes deployment or initiating a new cluster setup.

Pro Tip

Review version depreciation schedules to maintain compatibility.

Anatomy of Output

Understanding the result

Available Kubernetes Versions: Version List

Lists the Kubernetes versions supported.

- 1.21.5 Version

Latest stable version.

- 1.20.8 Version

Previous stable version.

- 1.19.10 Version

Older stable version.

Power User Variants

Optimized versions

doctl kubernetes options versions --verbose

List Kubernetes versions with additional debugging info.

doctl kubernetes options versions --format json

Output versions in JSON format.

Troubleshooting

Common pitfalls

Error: Could not retrieve versions - API call failed.

Solution: Verify API key permissions.

Error: Network issue during retrieval.

Solution: Check internet connectivity.

Error: Unauthorized request - API key missing.

Solution: Check if 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.
v
v|versions
The value supplied for v|versions.

Alternative Approaches

Comparable commands in other tools

Alternative kubernetes tools for the same job.