You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* demo code
* Update Makefile for local development; enhance deployment probe handling
* Create 4901.txt
* Update Consul image to use correct version
* Add support for Kubernetes health probes in managed Gateway classes
- Introduced configuration for liveness, readiness, and startup probes in GatewayClassConfig.
- Updated related templates and values to handle probe configurations.
- Enhanced command to load probes from a config map.
* Add tests for probe propagation and sanitization in GatewayClassConfig
* Improve error handling and sanitization in loadProbesConfig function
* Refactor Gateway Probes Configuration
Introduced a new mechanism to extract probe configurations directly from Gateway annotations.
* Remove unused transformGatewayClassConfig function from GatewayController
* Fix failing unit tests
* Fix comment formatting in ProbesConfig definition
* Refactor serializeGatewayClassConfig to ensure annotation reflects the latest GatewayClassConfig
api-gateway: Add support for configuring Kubernetes probes (liveness, readiness, startup) per-Gateway via annotations. Use `consul.hashicorp.com/liveness-probe`, `consul.hashicorp.com/readiness-probe`, and `consul.hashicorp.com/startup-probe` annotations with JSON probe configuration to customize health checks for individual API Gateways. [[GH-4901](https://github.com/hashicorp/consul-k8s/pull/4901)]
You can configure Kubernetes health probes (liveness, readiness, and startup) for individual API Gateways using annotations. This allows you to customize probe behavior per-Gateway rather than using a class-wide configuration.
Each annotation accepts a JSON object following the Kubernetes [Probe](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#probe-v1-core) specification. Supported probe handlers: `httpGet`, `tcpSocket`, `exec`, `grpc`.
166
+
167
+
**Note**: Liveness and startup probes must have `successThreshold: 1` per Kubernetes requirements. The controller will automatically normalize this value if a different value is provided.
168
+
106
169
## Tutorials
107
170
108
171
You can find examples and complete tutorials on how to deploy Consul on
common.AnnotationGatewayClassConfig: `{"serviceType":"serviceType","nodeSelector":{"selector":"of node"},"tolerations":[{"key":"key","operator":"op","value":"120","effect":"to the moon","tolerationSeconds":0}],"copyAnnotations":{"service":["service"]}}`,
115
+
common.AnnotationGatewayClassConfig: `{"serviceType":"serviceType","nodeSelector":{"selector":"of node"},"tolerations":[{"key":"key","operator":"op","value":"120","effect":"to the moon","tolerationSeconds":0}],"deployment":{},"copyAnnotations":{"service":["service"]},"metrics":{}}`,
0 commit comments