You are browsing unreleased documentation. See the latest documentation here.
Gateway
Gateway
‘s status field contains invaluable information about managed Gateway API Gateway
object.
How to retrieve it
To retrieve the status
field of a Gateway
you can use the following kubectl
command:
kubectl get gateway kong -o jsonpath-as-json='{.status}'
Which should yield the output similar to the one below:
[
{
"addresses": [
{
"type": "IPAddress",
"value": "172.18.128.1"
}
],
"conditions": [
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "All listeners are accepted.",
"observedGeneration": 1,
"reason": "Accepted",
"status": "True",
"type": "Accepted"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Programmed",
"status": "True",
"type": "Programmed"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Ready",
"status": "True",
"type": "Ready"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Ready",
"status": "True",
"type": "DataPlaneReady"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Ready",
"status": "True",
"type": "ControlPlaneReady"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Ready",
"status": "True",
"type": "GatewayService"
}
],
"listeners": [
{
"attachedRoutes": 0,
"conditions": [
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "NoConflicts",
"status": "False",
"type": "Conflicted"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Accepted",
"status": "True",
"type": "Accepted"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "",
"observedGeneration": 1,
"reason": "Programmed",
"status": "True",
"type": "Programmed"
},
{
"lastTransitionTime": "2024-03-22T18:17:00Z",
"message": "Listeners' references are accepted.",
"observedGeneration": 1,
"reason": "ResolvedRefs",
"status": "True",
"type": "ResolvedRefs"
}
],
"name": "http",
"supportedKinds": [
{
"group": "gateway.networking.k8s.io",
"kind": "HTTPRoute"
}
]
}
]
}
]