Skip to content

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:

Applying a change

  1. Update the variables in your terraform.tfvars. See TFVARS.gen.md (AWS, Google) for variables descriptions.
  2. From your infrastructure folder, run terraform plan and review the changes.
  3. Run terraform apply to apply the changes to the infrastructure and regenerate the Tanka and Helm configuration.
  4. Go to /build/workspace/${cluster_context} and run ./get-credentials.sh to login to kubernetes.
  5. Apply the regenerated configuration to the cluster:
    • Tanka: go to /deploy/services/tanka/workspace/${cluster_context} and run tk apply ..
    • Helm: go to /deploy/services/helm-charts/dss and run helm upgrade --kube-context=$KUBE_CONTEXT -f /build/workspace/${cluster_context}/helm_values.yml $RELEASE_NAME ..
  1. Update the configuration in your main.jsonnet.
  2. Run tk diff . and review the changes.
  3. Run tk apply ..
  1. Update your values file.
  2. Go to /deploy/services/helm-charts/dss and run helm 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.