kops: add page (#3149)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
d496b0c18f
commit
276b65fc65
24
pages/common/kops.md
Normal file
24
pages/common/kops.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# kops
|
||||
|
||||
> Create, destroy, upgrade and maintain Kubernetes clusters from the command line.
|
||||
> More informations: <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 configurations into 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`
|
Reference in New Issue
Block a user