-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
as-designedWorks as designedWorks as designed
Description
Describe the bug
API server is returning high errors of requests for LIST customresourcedefinitions ."
We are facing a high error rate on Kubernetes API server from users using K9s
To Reproduce
We observe that users forgot k9s open for a long time (1h or more), than we start to receive alerts.
An extra information is in one specific case the user tell me that is running a port-forward, but looks like happens when users forget k9s opened.
Historical Documents
When applicable please include any supporting artifacts: k9s debug logs, configurations, resource manifests, ...
Expected behavior
Screenshots
Versions (please complete the following information):
- OS: OSX
- K9s: latest
- K8s: v1.29.4
Additional context
We observe this erros on kube audit log:
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "11d70f6a-2517-49f4-ac70-e5eb875b07b7",
"stage": "ResponseComplete",
"requestURI": "/apis/apiextensions.k8s.io/v1/customresourcedefinitions?resourceVersion=1699139415",
"verb": "list",
"user":
{
"username": "Ommited",
"groups":
[
"offline_access",
"developers",
"oncallers",
"administrators",
"system:authenticated",
],
},
"sourceIPs": ["ommited"],
"userAgent": "k9s/v0.0.0 (darwin/arm64) kubernetes/$Format",
"objectRef":
{
"resource": "customresourcedefinitions",
"apiGroup": "apiextensions.k8s.io",
"apiVersion": "v1",
},
"responseStatus":
{
"metadata": {},
"status": "Failure",
"message": "Timeout: Too large resource version: 1699139415, current: 1699118381",
"reason": "Timeout",
"details":
{
"causes":
[
{
"reason": "ResourceVersionTooLarge",
"message": "Too large resource version",
},
],
"retryAfterSeconds": 1,
},
"code": 504,
},
"requestReceivedTimestamp": "2025-10-02T17:32:47.899418Z",
"stageTimestamp": "2025-10-02T17:32:50.900967Z",
"annotations":
{
"apiserver.latency.k8s.io/response-write": "1.265µs",
"apiserver.latency.k8s.io/serialize-response-object": "44.651µs",
"apiserver.latency.k8s.io/total": "3.001548885s",
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": 'RBAC: allowed by ClusterRoleBinding "sre-role-binding" of ClusterRole "sre" to Group "administrators"',
},
}
Otoru, jesielconceicao, dccarbone, jpalvesfernandes, eliasscosta and 23 more
Metadata
Metadata
Assignees
Labels
as-designedWorks as designedWorks as designed
