LinuxCommandLibrary

doctl-kubernetes-options

Show options for Kubernetes versions with doctl

TLDR

List regions that support Kubernetes clusters

$ doctl kubernetes options regions
copy

List machine sizes that can be used in a Kubernetes cluster
$ doctl kubernetes options sizes
copy

List Kubernetes versions that can be used with DigitalOcean clusters
$ doctl kubernetes options versions
copy

SYNOPSIS

`doctl kubernetes [options]`

PARAMETERS

--context string
    The name of the kubeconfig context to use. Default: Current context.

--format string
    Output format. One of: text, json. Default: text.

--namespace string
    Kubernetes namespace to use. Default: `default`.

--token string
    DigitalOcean API V2 token to use. Overrides environment variable `DIGITALOCEAN_ACCESS_TOKEN`.

--trace
    Trace the API request.

--verbose
    Show verbose output.

DESCRIPTION

The `doctl-kubernetes-options` command outlines the common options available when interacting with Kubernetes clusters managed through DigitalOcean's `doctl` CLI. These options govern how `doctl` connects to, authenticates with, and manipulates your Kubernetes clusters. This includes specifying context, namespaces, and output formatting for various Kubernetes-related commands. Understanding these options allows you to customize your interactions and streamline cluster management using `doctl` effectively. It is important to know how to use kubectl and some base kubernetes knowledge before administering the resources via doctl.

CAVEATS

Some Kubernetes commands may have their own specific options in addition to these global options.

AUTHENTICATION

doctl primarily authenticates with DigitalOcean's Kubernetes service via an API token. This token can be provided through the `--token` option or the `DIGITALOCEAN_ACCESS_TOKEN` environment variable. It's crucial to keep your API token secure.

CONTEXT MANAGEMENT

The `--context` option is essential for managing multiple Kubernetes clusters. It specifies which kubeconfig context `doctl` should use to interact with your cluster. Ensure your kubeconfig file is correctly configured with the necessary cluster details and credentials.

SEE ALSO

kubectl(1), doctl(1)

Copied to clipboard