Kubernetes service CLI Reference¶
See https://docs.openstack.org/magnum/latest/cli/index.html for more information about commands and details for each command.
These commands allow you to create, list, show details of, update, and delete cluster templates and clusters in your project, as well as manage cluster certificates. The <template_id_or_name>
, <cluster_id_or_name>
, <image_id_or_name>
, <keypair_name>
, <network_id_or_name>
, and <flavor_id_or_name>
in the commands are placeholders that should be replaced with the actual IDs or names of the resources.
List cluster templates¶
Show cluster template details¶
Create a cluster template¶
Bash
- openstack coe cluster template create <template_name> --image <image_id_or_name> --keypair <keypair_name> --external-network <network_id_or_name> --flavor <flavor_id_or_name> --coe <orchestration_engine>
<orchestration_engine>
: The container orchestration engine to use (e.g., kubernetes
, swarm
, mesos
).
Delete a cluster template¶
List clusters¶
Show cluster details¶
Create a cluster¶
Bash
openstack coe cluster create <cluster_name> --cluster-template <template_id_or_name> --master-count <master_node_count> --node-count <worker_node_count>
Delete a cluster¶
Update a cluster¶
Bash
openstack coe cluster update <cluster_id_or_name> --rollback <True_or_False> --node-count <new_worker_node_count>
List cluster certificates¶
Show cluster certificate¶
bash
openstack coe cluster certificate show <cluster_id_or_name>