From 0afe4a7ab58cbee7da53e0c5ad49e9511e0bc06b Mon Sep 17 00:00:00 2001 From: Deni Bertovic Date: Tue, 2 Oct 2018 16:26:57 +0200 Subject: [PATCH] Adds ingress and fixes CI deployment --- .gitlab-ci.yml | 22 +++++--- etc/kube/cron_deployment_template.yaml | 61 ++++++++++++++++++++++ etc/kube/deployment_template.yaml | 14 ++++- etc/kube/hoogle_deployment_template.yaml | 65 ++++++++++++++++++++++++ etc/kube/hoogle_service_template.yaml | 19 +++++++ etc/kube/ingress_template.yaml | 21 ++++++++ 6 files changed, 195 insertions(+), 7 deletions(-) create mode 100644 etc/kube/cron_deployment_template.yaml create mode 100644 etc/kube/hoogle_deployment_template.yaml create mode 100644 etc/kube/hoogle_service_template.yaml create mode 100644 etc/kube/ingress_template.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 349d063..3f88fde 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,8 +14,12 @@ stages: variables: STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root" DEPLOYMENT_IMAGE: "${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_SLUG}_${CI_PIPELINE_ID}" - DEPLOYMENT_NAME: "stackage-server-${CI_BUILD_REF_SLUG}" - DEPLOYMENT_APP: "${CI_ENVIRONMENT_SLUG}" + DEPLOYMENT_NAME: "stackage-server-prod" + HOOGLE_DEPLOYMENT_NAME: "stackage-server-hoogle-prod" + CRON_DEPLOYMENT_NAME: "stackage-server-cron-prod" + DEPLOYMENT_APP: "stackage-server-prod" + CRON_DEPLOYMENT_APP: "stackage-server-cron-prod" + HOOGLE_DEPLOYMENT_APP: "stackage-server-hoogle-prod" # This creates anchors for bits of script that are reused between builds .anchors: @@ -27,8 +31,11 @@ variables: kubectl config use-context cluster - &KUBEAPPLY kubectl apply -f <(envsubst