Manage Clusters
Learn how to create and manage Kubernetes clusters for use with Codiac.
A cluster is an orchestrated collection of virtual machines on which Codiac deploys customer software. Clusters also include network infrastructure to enable connections between services and the internet.
Create Cluster
- Use
codiac cluster create
to create your cluster from the command line:
codiac cluster create
- Follow the prompts to:
- Enter your Codiac username.
- Enter your Codiac password.
- Select your tenant.
- Select your cloud provider: Amazon Web Services (AWS) or Azure.
- Select the parameters you want to set for your cluster, including the name, region, node type, etc.
- Verify all the parameters are correct, then enter Y to start the cluster creation process.
List Clusters
- Use
codiac cluster list
to list your existing Codiac clusters:
codiac cluster list
-
Follow the prompts to select your target enterprise.
-
This command outputs a list of your cluster(s), the cloud service provider where they are hosted, and their region.
Delete Cluster
Codiac has two options for ending a cluster:
- destroy: Deletes the physical cluster, not the Codiac cluster definition record.
- forget: Deletes the Codiac cluster definition record, not the physical cluster.
Destroy
The codiac cluster destroy
command deletes the physical cluster from your cloud service provider (AWS or Azure). This command does not delete the Codiac cluster definition record.
To undo the effects of this command, use codiac cluster recreate
to provision a new physical cluster from an existing Codiac cluster definition record.
- Use
codiac cluster destroy
to delete the physical cluster:
codiac cluster destroy
-
Follow the prompts to select the cluster you wish to destroy.
-
The cluster is deleted from your cloud service provider (AWS or Azure). The Codiac cluster definition remains intact.
Forget
The codiac cluster forget
command deletes the Codiac cluster definition record. This command does not delete the physical cluster from your cloud service provider (AWS or Azure).
Before you use this command to forget a cluster, you must delete all cabinets and environments associated with that cluster.
- Use 'codiac cluster forget' to forget the cluster details:
codiac cluster forget
-
Follow the prompts to select the cluster for which you want to delete the Codiac cluster definition record.
-
The Codiac cluster definition record is deleted. The physical cluster at your cloud service provider (AWS or Amazon) remains intact.
This command does not affect the Kubernetes cluster. Your cloud service provider will continue to bill you until you destroy the cluster.