mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 20:54:57 +00:00
Update cheatsheets
This commit is contained in:
33
kops
Normal file
33
kops
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# kops
|
||||
|
||||
> Create, destroy, upgrade and maintain Kubernetes clusters.
|
||||
> 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`
|
||||
|
||||
- Validate a cluster:
|
||||
|
||||
`kops validate cluster {{cluster_name}} --wait {{wait_time_until_ready}} --count {{num_required_validations}}`
|
||||
Reference in New Issue
Block a user