HealthCheck Filter

EnRoute Technical Reference

HealthCheck Plugin

The HealthCheck plugin enables the HealthCheck Envoy filter for EnRoute Ingress Gateway or Standalone Gateway

HealthCheck Filter Configuration

HealthCheck filter configuration needs the following config

FieldDescription
pathPath for healthcheck
HealthCheck Filter Config Example
{
     "path" : "/healthz"
}

Notes

HealthCheck Filter Config for KubernetesHealthCheck Filter Config for Standalone

---
apiVersion: enroute.saaras.io/v1
kind: HttpFilter
metadata:
  labels:
    app: svc-app
  name: svc-filter
  namespace: svc-namespace
spec:
  name: svc-filter
  type: http_filter_healthcheck
  httpFilterConfig:
    config: |
         {
             "path" : "/healthz"
         }
---

HC_FILTER_NAME="svc-filter"
HC_FILITER_TYPE="http_filter_healthcheck"
HC_CONFIG='
{
    "path" : "/healthz"
}
'
curl -s -X POST localhost:1323/filter   \
    -d "filter_name=${HC_FILTER_NAME}" \
    -d "filter_type=${HC_FILTER_TYPE}" \
    -d "filter_config"="${HC_CONFIG}"

Notes

HealthCheck plugin is included with Community Edition

HealthCheck plugin is a global HttpFilter. It sets configuration on the Listener and is applicable to all GatewayHost when defined.