From cbcae710b63d2d440f2cf27781d1b6a2940ac876 Mon Sep 17 00:00:00 2001 From: Joep de Jong Date: Sat, 30 Sep 2023 17:20:35 +0200 Subject: [PATCH] Fix passes --- apps/passes/healthcheck.yaml | 18 ++++++++++++++++++ apps/passes/kustomization.yaml | 3 ++- apps/passes/service.yaml | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 apps/passes/healthcheck.yaml diff --git a/apps/passes/healthcheck.yaml b/apps/passes/healthcheck.yaml new file mode 100644 index 00000000..093dae8a --- /dev/null +++ b/apps/passes/healthcheck.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.gke.io/v1 +kind: HealthCheckPolicy +metadata: + name: passes + namespace: default +spec: + default: + config: + type: HTTP + httpHealthCheck: + port: 3000 + requestPath: / + logConfig: + enabled: true + targetRef: + group: "" + kind: Service + name: passes diff --git a/apps/passes/kustomization.yaml b/apps/passes/kustomization.yaml index 65935151..9568342f 100644 --- a/apps/passes/kustomization.yaml +++ b/apps/passes/kustomization.yaml @@ -4,4 +4,5 @@ resources: - image.yaml - service.yaml - deploy.yaml - - httproute.yaml \ No newline at end of file + - httproute.yaml + - healthcheck.yaml \ No newline at end of file diff --git a/apps/passes/service.yaml b/apps/passes/service.yaml index d170ecfc..81417248 100644 --- a/apps/passes/service.yaml +++ b/apps/passes/service.yaml @@ -10,7 +10,7 @@ spec: - name: http port: 80 protocol: TCP - targetPort: 8080 + targetPort: 3000 selector: app: passes sessionAffinity: None