Adding a new service via HTTPS
Many of the services we deploy on the cluster should be deployed and made accessible via https. The below steps explain how this is done
1. Create a new application in ArgoCD
- Add an application to the
infra/argo/app-of-apps/templatesfile which creates a new application in ArgoCD. - make sure this points at a separate dev branch so you can work on this deployment without flooding the infra branch with PRs
2. Develop the application
- iterate until the application is working as expected
- add an
HttpRoutewhich directs the traffic to the new service - when the service does not respond via 200 at the service port (
/root path) aHealthCheckPolicyis necessary.
3. Merge the application to the infra branch
- overwrite the
targetRevisionwith{{ .Values.spec.source.targetRevision }}to point back at the infra branch - merge the application to the infra branch