Skip to content
Snippets Groups Projects
Unverified Commit c8bf0d6d authored by Varac's avatar Varac
Browse files

Rename cluster-health stage, fix cert needs

parent 2c377010
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ stages: ...@@ -167,7 +167,7 @@ stages:
- configure-stackspin - configure-stackspin
- apps-kustomizations-ready - apps-kustomizations-ready
- certs - certs
- health-test - cluster-health
- integration-test - integration-test
variables: variables:
...@@ -599,7 +599,7 @@ nextcloud-cert: ...@@ -599,7 +599,7 @@ nextcloud-cert:
variables: variables:
RESOURCE: "nextcloud" RESOURCE: "nextcloud"
needs: needs:
- job: nextcloud-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -609,7 +609,7 @@ kube-prometheus-stack-cert: ...@@ -609,7 +609,7 @@ kube-prometheus-stack-cert:
variables: variables:
RESOURCE: "kube-prometheus-stack" RESOURCE: "kube-prometheus-stack"
needs: needs:
- job: monitoring-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -619,7 +619,7 @@ single-sign-on-cert: ...@@ -619,7 +619,7 @@ single-sign-on-cert:
variables: variables:
RESOURCE: "single-sign-on" RESOURCE: "single-sign-on"
needs: needs:
- job: single-sign-on-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -629,7 +629,7 @@ dashboard-cert: ...@@ -629,7 +629,7 @@ dashboard-cert:
variables: variables:
RESOURCE: "dashboard" RESOURCE: "dashboard"
needs: needs:
- job: dashboard-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -639,7 +639,7 @@ wekan-cert: ...@@ -639,7 +639,7 @@ wekan-cert:
variables: variables:
RESOURCE: "wekan" RESOURCE: "wekan"
needs: needs:
- job: wekan-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -649,7 +649,7 @@ wordpress-cert: ...@@ -649,7 +649,7 @@ wordpress-cert:
variables: variables:
RESOURCE: "wordpress" RESOURCE: "wordpress"
needs: needs:
- job: wordpress-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
...@@ -659,20 +659,22 @@ zulip-cert: ...@@ -659,20 +659,22 @@ zulip-cert:
variables: variables:
RESOURCE: "zulip" RESOURCE: "zulip"
needs: needs:
- job: zulip-kustomization-ready - job: configure-zerossl-issuer
- job: install-stackspin - job: install-stackspin
extends: extends:
- .apps-cert - .apps-cert
- .zulip_rules - .zulip_rules
# Stage: health-test # Stage: cluster-health
# ================== # =====================
# #
# General cluster health checks # General cluster health checks
testinfra: testinfra:
stage: health-test stage: cluster-health
needs:
- job: install-stackspin
script: script:
- *debug_information - *debug_information
- cd ansible/ - cd ansible/
...@@ -683,13 +685,13 @@ testinfra: ...@@ -683,13 +685,13 @@ testinfra:
interruptible: true interruptible: true
kube-prometheus-stack-alerts: kube-prometheus-stack-alerts:
stage: health-test stage: cluster-health
needs:
- job: install-stackspin
- job: kube-prometheus-stack-cert
variables: variables:
# RESOURCE var is used in job specific rules (i.e. ..monitoring_rules) # RESOURCE var is used in job specific rules (i.e. ..monitoring_rules)
RESOURCE: "kube-prometheus-stack" RESOURCE: "kube-prometheus-stack"
# Enforce python requests using the system cert store, where LE staging
# cacert is added
REQUESTS_CA_BUNDLE: "/etc/ssl/certs/ca-certificates.crt"
script: script:
- *debug_information - *debug_information
- export BASIC_AUTH_PW=$(python3 -m stackspin $HOSTNAME secrets | grep stackspin-prometheus-basic-auth | cut -d'=' -f2) - export BASIC_AUTH_PW=$(python3 -m stackspin $HOSTNAME secrets | grep stackspin-prometheus-basic-auth | cut -d'=' -f2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment