Usages#
Prerequisites#
Inputs#
export GIT_PATH="$HOME/git/"
export ZONE_NAME="..." # also known as <cluster_ID>
export CLOUD_ZONE_NAME="ocb-..."
export INFRA_ZONE_NAME="infra-..."
export CONTEXT="caascad" # where context can be caascad/ngotalpha/pf/...
Warning
During this procedure, several steps require restarts of different components in cloud zones. Before each restart:
- check there is no CAASCHR that is planned on the same component at the same time
- warn supervsion team on #supervision about the component/zone that is going to be restarted
Vault#
Pour déployer, nous avons besoin de s'identifier à Vault:
export VAULT_ADDR=https://vault.${INFRA_ZONE_NAME}.caascad.com
vault login -method oidc
envs-ng#
Tip
Many steps will consist of running trackbone apply -z "$INFRA_ZONE_NAME" -c ...
Reusing the shell setup here is a good idea!
Repository: caascad/terraform/envs-ng
# git clone git@git.corp.caascad.com:caascad/terraform/envs-ng.git "$GIT_PATH/caascad/terraform/envs-ng"
cd "$GIT_PATH/caascad/terraform/envs-ng"
git pull
git switch -c "<PF-JIRA>"
nix-shell
Déploiement#
Caascad#
trackbone apply -z ${INFRA_ZONE_NAME} -c usages
Ngotalpha#
trackbone apply -z ${INFRA_ZONE_NAME} -c usages-ngotalpha