CARVIEW |
Select Language
HTTP/2 301
date: Fri, 18 Jul 2025 05:20:31 GMT
content-type: text/html
location: /reference/doctl/reference/kubernetes/cluster/kubeconfig/save/
x-frame-options: ALLOW-FROM https://marina.digitalocean.com/
x-xss-protection: 1; mode=block
content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-do-app-origin: 66b87bdb-ceab-4f7c-975f-da2affb6d13a
cache-control: private
x-do-orig-status: 301
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=kbPDnoHgiVzFTYuPS7t1KPtbbmiWA7nmxdnrc9GH6Rk-1752816031-1.0.1.1-qPfCW7hKlZ84dmjYQdizBIuEg0csYJ5dcFW_wz71zNZOtYkfWZ9xGoR8YYqACiLCfitNuQRgVa5lTTBO2oa_XP8X7xou1xmdG0vmguRwBIA; path=/; expires=Fri, 18-Jul-25 05:50:31 GMT; domain=.ondigitalocean.app; HttpOnly; Secure; SameSite=None
vary: Accept-Encoding
set-cookie: __cf_bm=BncRD1_q9NJ7i3KHwWRE6DPePwjidIBnRb9rV.iNJuY-1752816031-1.0.1.1-raOiX8WbouvU3MJuJD1.DubAo7nduS7C8Y.9BOfUET9Io59M3yujyu6w.e_C2L5CqDYQu3.tY2HfeeUiHV8NBF82RXifB3YYjotSPzb7fBFv6IgJF7unqFaQxnGxUUX9; path=/; expires=Fri, 18-Jul-25 05:50:31 GMT; domain=.digitalocean.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 960f87bdbfe98a2a-BLR
HTTP/2 200
date: Fri, 18 Jul 2025 05:20:31 GMT
content-type: text/html
last-modified: Thu, 17 Jul 2025 20:59:55 GMT
vary: Accept-Encoding
x-frame-options: ALLOW-FROM https://marina.digitalocean.com/
x-xss-protection: 1; mode=block
content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-do-app-origin: 278230ee-e6a3-11ec-b1dc-0c42a19a82a7
cache-control: private
x-do-orig-status: 200
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=t287Q1wPCFdWEJou5h8hxn2GJ.RfH2BL.rkGipmvmqw-1752816031-1.0.1.1-1WlQyw8OxwyiUvWdTo0K1nk.9kryL91EdlluyqDc73JH0uYJy_uosTYCZsWHgWPWi0Ayn45pXEbOvZuXFP6MNjH_5QZzp5M_Ht3tbjveazU; path=/; expires=Fri, 18-Jul-25 05:50:31 GMT; domain=.ondigitalocean.app; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 960f87c2ffca8a2a-BLR
content-encoding: gzip
doctl kubernetes cluster kubeconfig save | DigitalOcean Documentation
doctl kubernetes cluster kubeconfig save
Generated on 23 Jun 2025
from doctl
version
v1.131.0
Usage
doctl kubernetes cluster kubeconfig save <cluster-id|cluster-name> [flags]
Aliases
s
Description
Adds the credentials for the specified cluster to your local kubeconfig. After this, your kubectl installation can directly manage the specified cluster.
Example
The following example saves the credentials for a cluster named example-cluster
to your local kubeconfig:
doctl kubernetes cluster kubeconfig save example-cluster
Flags
Option | Description |
---|---|
--alias |
An alias for the cluster context name. Defaults to ‘do-[region]-[cluster-name]’ |
--expiry-seconds |
The length of time the cluster credentials are valid for, in seconds. By default, the credentials are automatically renewed as needed. Default: 0 |
--help , -h |
Help for this command |
--set-current-context |
Sets the current kubectl context to that of the newest cluster in your account Default: true |
Related Commands
Command | Description |
---|---|
doctl kubernetes cluster kubeconfig | Display commands for managing your local kubeconfig |
Global Flags
Option | Description |
---|---|
--access-token , -t |
API V2 access token |
--api-url , -u |
Override default API endpoint |
--config , -c |
Specify a custom config file Default: |
--context |
Specify a custom authentication context name |
--http-retry-max |
Set maximum number of retries for requests that fail with a 429 or 500-level error
Default: 5 |
--http-retry-wait-max |
Set the minimum number of seconds to wait before retrying a failed request
Default: 30 |
--http-retry-wait-min |
Set the maximum number of seconds to wait before retrying a failed request
Default: 1 |
--interactive |
Enable interactive behavior. Defaults to true if the terminal supports it (default false)
Default: false |
--output , -o |
Desired output format [text|json] Default: text |
--trace |
Show a log of network activity while performing a command Default: false |
--verbose , -v |
Enable verbose output Default: false |
We can't find any results for your search.
Try using different keywords or simplifying your search terms.