Orchestrating Constellation clusters
You can use the CLI to create a cluster on the supported cloud platforms. The CLI provisions the resources in your cloud environment and initiates the initialization of your cluster. It uses a set of parameters and an optional configuration file to manage your cluster installation. The CLI is also used for updating your cluster.
Workspaces
Each Constellation cluster has an associated workspace. The workspace is where data such as the Constellation state and config files are stored. Each workspace is associated with a single cluster and configuration. The CLI stores state in the local filesystem making the current directory the active workspace. Multiple clusters require multiple workspaces, hence, multiple directories. Note that every operation on a cluster always has to be performed from the directory associated with its workspace.
Cluster creation process
To allow for fine-grained configuration of your cluster and cloud environment, Constellation supports an extensive configuration file with strong defaults. Generating the configuration file is typically the first thing you do in the workspace.
Altogether, the following files are generated during the creation of a Constellation cluster and stored in the current workspace:
- a configuration file
- a state file
- a Base64-encoded master secret
- Terraform artifacts, stored in subdirectories
- a Kubernetes
kubeconfig
file.
After the initialization of your cluster, the CLI will provide you with a Kubernetes kubeconfig
file.
This file grants you access to your Kubernetes cluster and configures the kubectl tool.
In addition, the cluster's identifier is returned and stored in the state file.