tldr/pages/common/kops.md

25 lines
599 B
Markdown
Raw Normal View History

2019-06-30 12:02:25 +01:00
# kops
> Create, destroy, upgrade and maintain Kubernetes clusters.
2020-12-04 12:37:44 +00:00
> More information: <https://github.com/kubernetes/kops/>.
2019-06-30 12:02:25 +01:00
- Create a cluster from the configuration specification:
`kops create cluster -f {{cluster_name.yaml}}`
- Create a new ssh public key:
`kops create secret sshpublickey {{key_name}} -i {{~/.ssh/id_rsa.pub}}`
- Export the cluster configuration to the `~/.kube/config` file:
2019-06-30 12:02:25 +01:00
`kops export kubecfg {{cluster_name}}`
- Get the cluster configuration as YAML:
2019-06-30 12:02:25 +01:00
`kops get cluster {{cluster_name}} -o yaml`
- Delete a cluster:
`kops delete cluster {{cluster_name}} --yes`