Skip to content

Commit

Permalink
adding dns health checks
Browse files Browse the repository at this point in the history
Signed-off-by: R-Lawton <[email protected]>
  • Loading branch information
R-Lawton committed Dec 5, 2024
1 parent a238c6b commit 98f50e9
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ metadata:
name: ${KUADRANT_GATEWAY_NAME}-dnspolicy
namespace: ${KUADRANT_GATEWAY_NS}
spec:
healthCheck:
failureThreshold: 3
interval: 5m
path: /health
loadBalancing:
defaultGeo: true
geo: GEO-NA
Expand All @@ -299,6 +303,14 @@ Check that the `DNSPolicy` has been Accepted and Enforced (This mat take a few m
kubectl get dnspolicy ${KUADRANT_GATEWAY_NAME}-dnspolicy -n ${KUADRANT_GATEWAY_NS} -o=jsonpath='{.status.conditions[?(@.type=="Accepted")].message}{"\n"}{.status.conditions[?(@.type=="Enforced")].message}'
```

#### DNS Health checks
DNS Health checks has been enabled on the DNSPolicy. These health checks will flag a published endpoint as healthy or unhealthy based on the defined configuration. When unhealthy an endpoint will not be published if it has not already been published to the DNS provider, will only be unpublished if it is part of a multi-value A record and in all cases can be observable via the DNSPolicy status. For more information see [DNS Health checks documentation](../dns/dnshealthchecks.md)

Check the status of the health checks as follow:

```bash
kubectl get dnspolicy ${KUADRANT_GATEWAY_NAME}-dnspolicy -n ${KUADRANT_GATEWAY_NS} -o=jsonpath='{.status.conditions[?(@.type=="SubResourcesHealthy")].message}'
```
### Test the `low-limit` and `deny all` policies

```bash
Expand Down Expand Up @@ -374,7 +386,7 @@ apiVersion: v1
kind: Secret
metadata:
name: bob-key
namespace: kuadrant-system
namespace: ${KUADRANT_DEVELOPER_NS}
labels:
authorino.kuadrant.io/managed-by: authorino
app: toystore
Expand All @@ -388,7 +400,7 @@ apiVersion: v1
kind: Secret
metadata:
name: alice-key
namespace: kuadrant-system
namespace: ${KUADRANT_DEVELOPER_NS}
labels:
authorino.kuadrant.io/managed-by: authorino
app: toystore
Expand Down

0 comments on commit 98f50e9

Please sign in to comment.