diff --git a/apps/events/healthcheck.yaml b/apps/events/healthcheck.yaml new file mode 100644 index 00000000..7cae8327 --- /dev/null +++ b/apps/events/healthcheck.yaml @@ -0,0 +1,19 @@ +--- +apiVersion: networking.gke.io/v1 +kind: HealthCheckPolicy +metadata: + namespace: default + name: events +spec: + default: + config: + type: HTTP + httpHealthCheck: + port: 8080 + requestPath: /events/actuator/health/readiness + logConfig: + enabled: true + targetRef: + group: "" + kind: Service + name: events-wisvch-redirect \ No newline at end of file diff --git a/apps/events/kustomization.yaml b/apps/events/kustomization.yaml index 4fa02cba..4973efde 100644 --- a/apps/events/kustomization.yaml +++ b/apps/events/kustomization.yaml @@ -4,5 +4,6 @@ resources: - image.yaml - service.yaml - deploy.yaml + - healthcheck.yaml - httproute.yaml - serviceaccount.yaml