Demo configuraiton for non-prod CDP environments
Demo configuration for non-prod CDP environments
This repository contains the config and pipeline for the
Common Data Platform (CDP).
environments/
contains environment-specific variables substituted into the Kubernetes resource definitions. The environment-specific directory also contains a kustomization.yml
file, which selects what components will be deployed in each environment, as well as a cdp-version
file. The contents of the cdp-version
file should match a tag defined in the cdp-deployment-templates repo.
Edit the file to contain your secrets (deploy.cfg
- use deploy.template.cfg
as a template).
Run the deployment script, providing the environment you wish to deploy (e.g. cdp-dev
) as the second parameter to the docker container’s deploy.sh script.
The docker container’s working directory should be the base of the cdp-environments repo.
It should be mounted as a volume provided to the deploy.sh
script as the first parameter.
docker run -it --rm -v `pwd`:/cdp-environments quay.io/ukhomeofficedigital/cdp-ci deploy.sh /cdp-environments cdp-dev
export DEPLOY_TO=cdp-dev
./deploy.sh
To add a new component, follow the instructions in the README file from the cdp-deployment-templates repo . The following changes are also needed:
environments/<namespace>/conf.cfg
to add any new placeholdersenvironments/<namespace>/kustomization.yaml
file to add the new templates from step (1), and files from step (2) from README. If a config file under conf-template/foo/foo.properties is to be added, the configMapGenerator should have an entry similar to this:
- name: foo
files:
- resolved/conf/foo/foo.properties
To add a new environment, copy the configuration files from one of the directories under the environments folder, and edit the three files appropriately:
cdp-version - the contents of this file match a tag from the cdp-deployment-templates git repo. Depending on the risk appetite, a floating tag named after namespaces can be used (e.g. cdp-dev
)
Create the following kube secrets: