How to add a new service to the K8s deployment
All services can be deployed by copy-pasting the following things in the respective file in the infrastructure-k8s
repo and then replacing $PREVIOUS_SERVICE
with $NEW_SERVICE
and $previous_service
with $new_service
respectively.
Files containing the same thing for multiple services are expected to be alphabetically sorted.
When you add a new service, you need to copy and adapt the following things:
- the deployment in
misarch-$new_service.tf
- a version variable in
variables-versions.tf
- a ConfigMap in
configmaps.tf
- an entry in
latest-deployments.tfvars
- a DB in
dbs.tf
if necessary - a password and output in
passwords.tf
if necessary - service specific annotations in
variables-annotations
- service specific labels in
variables-labels
- service specific URLs in
variables-urls