From 707742ab4cb528ccbc67b9d451e47bf65a51892b Mon Sep 17 00:00:00 2001 From: Joep de Jong Date: Sat, 30 Sep 2023 17:01:44 +0200 Subject: [PATCH] Add healthcheck --- apps/passes/healthcheck.yaml | 18 ++++++++++++++++++ apps/passes/kustomization.yaml | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) 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..1fc5b5de --- /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: 80 + requestPath: /passes + 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