Updating Cluster Configuration
The base infrastructure and cluster configuration is managed by the docker-compose
tooling provided by CloudOps for Kubernetes. You can modify many aspects of the configuration by updating your docker-commpose.override.yml
file then re-running the docker-compose up
command.
Procedure
note
Perform the following steps on the operations workstation, ideally using the workstation that you used for the initial setup. For more information, see the Operations Workstation documentation.
The procedure to update the base infrastructure and cluster configuration is:
Confirm that you have checked out the correct branch of the
cloud-ops-kubernetes
Git project on your operations workstation.Obtain the
docker-compose.override.yml
file that you saved when you setup the cluster or last updated the configuration, and copy it into the root of thecloud-ops-kubernetes
Git project.Set the parameter
TF_VAR_bootstrap_mode
in thedocker-compose.override.yml
file tosetup
.Read through the
docker-compose.override.yml
file and update your configuration as you require.Run the Docker Compose command
build
to build the Docker image and update the CloudOps for Kubernetes cluster:Run the following Docker Compose command to build the Docker image and apply the changes:
docker-compose up --build
The changes will be applied to the cluster configuration.
Save Important Files
Save the docker-compose.override.yml
file and any dependencies, such as TLS keys, in a safe place.
important
You will need the docker-compose.override.yml
file and any dependencies again to perform the following:
- Update the cluster
- Show the current state of the cluster
- Create local Terraform configuration
- Clean up the cluster
warning
Do not commit these files into Git. The docker-compose.override.yml
file contains secrets and should be stored somewhere securely.