Commit 48b65cab authored by David Mendez's avatar David Mendez
Browse files

Use new autoscaler from config repo

parent c813bf6b
......@@ -14,14 +14,17 @@ variables:
CONFIG_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging.yml
CONFIG_GUNICORN_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging.gunicorn.config.py
INGRESS_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/ingress-staging.yml
AUTOSCALER_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/autoscaler-staging.yml
# Config prod_hx
CONFIG_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/prod_hx.yml
CONFIG_GUNICORN_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/prod_hx.gunicorn.config.py
INGRESS_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/ingress-prod_hx.yml
AUTOSCALER_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/autoscaler-prod_hx.yml
# Config prod_hh
CONFIG_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh.yml
CONFIG_GUNICORN_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh.gunicorn.config.py
INGRESS_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/ingress-prod_hh.yml
AUTOSCALER_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/autoscaler-prod_hh.yml
image: docker:latest
......@@ -150,6 +153,7 @@ prepare_config_staging:
- ${CONFIG_STAGING_FILE_PATH}
- ${CONFIG_GUNICORN_STAGING_FILE_PATH}
- ${INGRESS_STAGING_FILE_PATH}
- ${AUTOSCALER_STAGING_FILE_PATH}
deploy_to_staging:
stage: deploy_to_staging
......@@ -195,6 +199,8 @@ deploy_to_staging:
- cat ${INGRESS_STAGING_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_STAGING} -f ${INGRESS_STAGING_FILE_PATH}
- kubectl describe ingress -n ${CHEMBL_NS_STAGING}
- cat ${AUTOSCALER_STAGING_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_STAGING} -f ${AUTOSCALER_STAGING_FILE_PATH}
# ----------------------------------------------------------------------------------------------------------------------
# Test staging
......@@ -237,6 +243,7 @@ prepare_config_prod_hx:
- ${CONFIG_PROD_HX_FILE_PATH}
- ${CONFIG_GUNICORN_PROD_HX_FILE_PATH}
- ${INGRESS_PROD_HX_FILE_PATH}
- ${AUTOSCALER_PROD_HX_FILE_PATH}
deploy_to_prod_hx:
stage: deploy_to_prod_hx
......@@ -281,6 +288,8 @@ deploy_to_prod_hx:
- cat ${INGRESS_PROD_HX_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_PROD} -f ${INGRESS_PROD_HX_FILE_PATH}
- kubectl describe ingress -n ${CHEMBL_NS_PROD}
- cat ${AUTOSCALER_PROD_HX_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_PROD} -f ${AUTOSCALER_PROD_HX_FILE_PATH}
functional_tests_prod_hx:
stage: test_prod_hx
......@@ -317,6 +326,7 @@ prepare_config_prod_hh:
- ${CONFIG_PROD_HH_FILE_PATH}
- ${CONFIG_GUNICORN_PROD_HH_FILE_PATH}
- ${INGRESS_PROD_HH_FILE_PATH}
- ${AUTOSCALER_PROD_HH_FILE_PATH}
deploy_to_prod_hh:
stage: deploy_to_prod_hh
......@@ -361,6 +371,8 @@ deploy_to_prod_hh:
- cat ${INGRESS_PROD_HH_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_PROD} -f ${INGRESS_PROD_HH_FILE_PATH}
- kubectl describe ingress -n ${CHEMBL_NS_PROD}
- cat ${AUTOSCALER_PROD_HH_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_PROD} -f ${AUTOSCALER_PROD_HH_FILE_PATH}
functional_tests_prod_hh:
stage: test_prod_hh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment