snippetbashTip
kops — Create, destroy, upgrade, and maintain Kubernetes clusters. More information: <https://kops.sigs.k8s
Viewed 0 times
upgradecreatecommanddestroyandclikopsmaintain
Problem
How to use the
kops command: Create, destroy, upgrade, and maintain Kubernetes clusters. More information: <https://kops.sigs.k8s.io/cli/kops/>.Solution
kops — Create, destroy, upgrade, and maintain Kubernetes clusters. More information: <https://kops.sigs.k8s.io/cli/kops/>.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]}} yamlDelete 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}}Code Snippets
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]}} yamlDelete a cluster
kops delete cluster {{cluster_name}} {{[-y|--yes]}}Context
tldr-pages: common/kops
Revisions (0)
No revisions yet.