From 867899db7eba5f02d3e5c8eba7333cf7c42f817b Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 2 Feb 2024 11:23:21 +0100 Subject: [PATCH 1/3] add liveness probe to dashboard --- dashboard/base/dashboard.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard/base/dashboard.yaml b/dashboard/base/dashboard.yaml index 96d8321..7d08c2a 100644 --- a/dashboard/base/dashboard.yaml +++ b/dashboard/base/dashboard.yaml @@ -26,6 +26,12 @@ spec: imagePullPolicy: Always ports: - containerPort: 8080 + livenessProbe: + httpGet: + path: / + port: 8080 + initialDelaySeconds: 3 + periodSeconds: 3 --- apiVersion: v1 kind: Service From 83cd96ffa07ea2345aa018948f747e02075be574 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 2 Feb 2024 11:27:33 +0100 Subject: [PATCH 2/3] fix drone pipeline for alternative (staging) branches --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c153f6c..b9060bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ steps: image: aaronriedel/kustomize-ci commands: - cd /deployment-repo - - git clone https://git.ar21.de/yolokube/core-deployments.git . + - git clone -b $DRONE_BRANCH https://git.ar21.de/yolokube/core-deployments.git . - cd /deployment-repo/dashboard/overlays/staging - kustomize build -o /deployment-repo/dashboard/staging/dashboard.yaml volumes: From 58962ae5f9d2e651210cc86fd852662b614b53d5 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 2 Feb 2024 10:27:45 +0000 Subject: [PATCH 3/3] KUSTOMIZE BUILD STAGING: rebuild dashboard deployment with kustomize 588 (done automagically via Drone pipeline) --- dashboard/staging/dashboard.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard/staging/dashboard.yaml b/dashboard/staging/dashboard.yaml index cf9169b..692c62d 100644 --- a/dashboard/staging/dashboard.yaml +++ b/dashboard/staging/dashboard.yaml @@ -36,6 +36,12 @@ spec: containers: - image: git.ar21.de/yolokube/dashboard:staging-777 imagePullPolicy: Always + livenessProbe: + httpGet: + path: / + port: 8080 + initialDelaySeconds: 3 + periodSeconds: 3 name: dashboard ports: - containerPort: 8080