commands.sh

kops

all

Create, destroy, upgrade, and maintain Kubernetes clusters.

More info →

Options (4)

-f, --filenameboolean

Create a cluster from the configuration specification

Example: kops create cluster {{[-f|--filename]}} {{cluster_name.yaml}}
-i, --ssh-public-keyboolean

Create a new SSH public key

Example: kops create sshpublickey {{key_name}} {{[-i|--ssh-public-key]}} {{~/.ssh/id_rsa.pub}}
-o, --outputboolean

Get the cluster configuration as YAML

Example: kops get cluster {{cluster_name}} {{[-o|--output]}} yaml
-y, --yesboolean

Delete a cluster

Example: kops delete cluster {{cluster_name}} {{[-y|--yes]}}

Examples (6)

Create a cluster from the configuration specification

kops create cluster [-f|--filename] cluster_name.yaml

Create a new SSH public key

kops create sshpublickey key_name [-i|--ssh-public-key] ~/.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|--output] yaml

Delete a cluster

kops delete cluster cluster_name [-y|--yes]

Validate a cluster

kops validate cluster cluster_name --wait wait_time_until_ready --count num_required_validations
made by @shridhargupta | data from tldr-pages