Modifying a deployment¶
This page describes how to apply a configuration change to a deployed DSS instance, for instance to tune the regular cleanup or the CPU and memory allocation.
Some changes require a specific procedure:
- Flags listed in flags compatibility must be changed using the Zero-Traffic upgrade procedure.
- Kubernetes version changes are described in Kubernetes upgrades.
- CockroachDB version changes are described in CockroachDB version upgrades.
- The regular cleanup applies to the whole pool and should be coordinated with the other members of the pool.
Applying a change¶
- Update the variables in your
terraform.tfvars. See TFVARS.gen.md (AWS, Google) for variables descriptions. - From your infrastructure folder, run
terraform planand review the changes. - Run
terraform applyto apply the changes to the infrastructure and regenerate the Tanka and Helm configuration. - Go to
/build/workspace/${cluster_context}and run./get-credentials.shto login to kubernetes. - Apply the regenerated configuration to the cluster:
- Tanka: go to
/deploy/services/tanka/workspace/${cluster_context}and runtk apply .. - Helm: go to
/deploy/services/helm-charts/dssand runhelm upgrade --kube-context=$KUBE_CONTEXT -f /build/workspace/${cluster_context}/helm_values.yml $RELEASE_NAME ..
- Tanka: go to
- Update the configuration in your
main.jsonnet. - Run
tk diff .and review the changes. - Run
tk apply ..
- Update your values file.
- Go to
/deploy/services/helm-charts/dssand runhelm upgrade --kube-context=$KUBE_CONTEXT -f [values file] $RELEASE_NAME ..
Set values in the values file rather than with helm upgrade --set, to keep the values file aligned with the state of the cluster.