diff --git a/infrastructure/gatewayapi/healthcheck.yaml b/infrastructure/gatewayapi/healthcheck.yaml new file mode 100644 index 0000000..1c25063 --- /dev/null +++ b/infrastructure/gatewayapi/healthcheck.yaml @@ -0,0 +1,16 @@ +apiVersion: networking.gke.io/v1 +kind: HealthCheckPolicy +metadata: + name: hermes-health-check + namespace: customer1 +spec: + default: + config: + type: HTTP + httpHealthCheck: + port: 9118 + requestPath: /telegram/webhook/default # Or any path that returns 200 + targetRef: + group: "" + kind: Service + name: http-tele-webhook diff --git a/infrastructure/gatewayapi/kustomization.yaml b/infrastructure/gatewayapi/kustomization.yaml index 7a84ebd..637eb99 100644 --- a/infrastructure/gatewayapi/kustomization.yaml +++ b/infrastructure/gatewayapi/kustomization.yaml @@ -3,4 +3,4 @@ kind: Kustomization resources: - apigateway.yaml - gateway-routes/ - + - healthcheck.yaml