From 276b65fc65a1b4f0b5fd14078e2a9b4fbaaa8b13 Mon Sep 17 00:00:00 2001 From: Ivan Aracki Date: Sun, 30 Jun 2019 13:02:25 +0200 Subject: [PATCH] kops: add page (#3149) --- pages/common/kops.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/kops.md diff --git a/pages/common/kops.md b/pages/common/kops.md new file mode 100644 index 0000000000..aeab23f331 --- /dev/null +++ b/pages/common/kops.md @@ -0,0 +1,24 @@ +# kops + +> Create, destroy, upgrade and maintain Kubernetes clusters from the command line. +> More informations: . + +- 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`