Make auto deploy handle multiple apps in same k8s cluster
Fix the auto deploy templates to allow multiple apps in the same cluster. e.g. You can’t have multiple production.KUBE_DOMAIN
.
My preference is for the production app to use url: http://$CI_PROJECT_NAME.$KUBE_DOMAIN
, the staging app to use url: http://$CI_PROJECT_NAME-staging.$KUBE_DOMAIN
and all the rest to use url: http://$CI_PROJECT_NAME-$CI_BUILD_REF_SLUG.$KUBE_DOMAIN
. Or maybe something with CI_ENVIRONMENT_SLUG
.
Earlier version in https://gitlab.com/markpundsack/openshift-example/blob/d85b9cc55ea04c347eead15555d7d71e6d438c13/.gitlab-ci.yml.
/cc @ayufan