I’d like to use the CLI to create and destroy clusters - is that possible?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
doctl
has supported Kubernetes since version 1.12.0; find the most recent release here.Creating a cluster using the default options is as easy as running:
Here’s a more complete example of creating a cluster while specifying non-default options:
By default, the cluster’s kubeconfig will be saved locally when you create it. You can grab the kubeconfig for an existing cluster using:
If you have any feedback, please feel free to open an issue on GitHub.
This comment has been deleted