-
Notifications
You must be signed in to change notification settings - Fork 0
K8s HTTP Health Check Policy
Andy Potanin edited this page Jun 21, 2026
·
1 revision
Creates a GKE HealthCheckPolicy for a backend service used with the Gateway API.
Use this module when a Rabbit service exposed through the shared HTTP gateway needs a custom health check configuration instead of the default GKE health check.
- GKE
HealthCheckPolicycreation (networking.gke.io/v1). - HTTP health check with configurable port and path.
- Target reference to a Kubernetes Service.
- A kubeconfig secret created by the
k8s-accessmodule. - The target service must exist in the specified namespace.
- The GKE cluster must have the Gateway API enabled.
- The health check name is derived from
namewith a-hcsuffix. -
targetRef.kindshould beService. - The health check is used by the GKE Gateway controller to determine backend health.
- Default health check endpoint is
/statuson port12030, matching theworker-sitecontainer health endpoint.
services:
- name: "k8s Health Check Policy"
module: "k8s-http-health-check-policy"
id: "health-check"
deployment_order: 92
configurations:
name: "www-example-com"
namespace: "www-example-com"
targetRef:
kind: "Service"
port: 12030
requestPath: "/status"This module does not produce outputs.
The fields below are public module inputs under configurations.
configurations:
name: "www-example-com"
namespace: "www-example-com"
targetRef:
kind: "Service"
port: 12030
requestPath: "/status"
secret_labels:
creator: "automation"
r2a_module: "k8s-http-health-check-policy"| Field | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | Base name for the health check policy and the target service. |
namespace |
string | Yes | Namespace of the target service. |
targetRef |
object | Yes | Reference to the target resource. |
targetRef.kind |
string | Yes | Kind of the target resource. Typically Service. |
port |
number | No | Health check port. Defaults to 12030. |
requestPath |
string | No | Health check HTTP path. Defaults to /status. |
secret_labels |
map[string] | No | Labels for associated secrets. |
- GCP GKE Cluster
- GCP GKE Node Pool
- GCP IAM
- GCP Monitoring
- GCP Networking
- GCP PostgreSQL Instance
- GCP Secret Manager
- GCP SQL Instance
- GCP Static IP
- GCP Storage