1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/kops.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

24 lines
621 B
Markdown

# kops
> Create, destroy, upgrade and maintain Kubernetes clusters from the command-line.
> More information: <https://github.com/kubernetes/kops/>.
- 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:
`kops export kubecfg {{cluster_name}}`
- Get the cluster configuration as yaml:
`kops get cluster {{cluster_name}} -o yaml`
- Delete a cluster:
`kops delete cluster {{cluster_name}} --yes`