EndpointSlice
| Operation | Description | Sample | Rule |
|---|---|---|---|
| get-endpointslices | Y | N | |
| list-endpointslices | Y | N | |
| watch-endpointslices | Y | N | |
| create-endpointslices | Y | N | |
| update-endpointslices | Y | N | |
| patch-endpointslices | Y | N | |
| delete-endpointslices | Y | N | |
| deletecollection-endpointslices | Y | N | |
| any-endpointslices | Synthetic aggregation for rules that filter the endpointslices resource with no specific verb. Not a distinct audit record; hosts rule listings that key on objectRef.resource alone. | N | N |
get endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices/dw-harn-endpointslices",
"verb": "get",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"name": "dw-harn-endpointslices",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2026-07-02T04:48:03.941836Z",
"stageTimestamp": "2026-07-02T04:48:03.943463Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
list endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices?limit=500&timeout=3s",
"verb": "list",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2026-07-02T04:48:04.060856Z",
"stageTimestamp": "2026-07-02T04:48:04.062400Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
watch endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Metadata",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices?resourceVersion=1647&timeout=3s&watch=true",
"verb": "watch",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestReceivedTimestamp": "2026-07-02T04:48:04.064248Z",
"stageTimestamp": "2026-07-02T04:48:07.066377Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
create endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices?fieldManager=kubectl-create&fieldValidation=Strict",
"verb": "create",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"name": "dw-harn-endpointslices",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 201
},
"requestObject": {
"kind": "EndpointSlice",
"apiVersion": "discovery.k8s.io/v1",
"metadata": {
"name": "dw-harn-endpointslices",
"namespace": "dw-harn"
},
"addressType": "IPv4",
"endpoints": [
{
"addresses": [
"10.0.0.1"
],
"conditions": {}
}
],
"ports": [
{
"name": "",
"protocol": "TCP",
"port": 80
}
]
},
"responseObject": {
"kind": "EndpointSlice",
"apiVersion": "discovery.k8s.io/v1",
"metadata": {
"name": "dw-harn-endpointslices",
"namespace": "dw-harn",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "1647",
"generation": 1,
"creationTimestamp": "2026-07-02T04:48:03Z"
},
"addressType": "IPv4",
"endpoints": [
{
"addresses": [
"10.0.0.1"
],
"conditions": {}
}
],
"ports": [
{
"name": "",
"protocol": "TCP",
"port": 80
}
]
},
"requestReceivedTimestamp": "2026-07-02T04:48:03.876502Z",
"stageTimestamp": "2026-07-02T04:48:03.879721Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
update endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices/dw-harn-endpointslices?fieldManager=kubectl-replace&fieldValidation=Strict",
"verb": "update",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=4cf95d11cbd90036bab41cdc6b88cc8f91550e9135ed4bb61495b02f647812ff"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"name": "dw-harn-endpointslices",
"uid": "00000000-0000-0000-0000-000000000000",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1",
"resourceVersion": "812"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestObject": {
"kind": "EndpointSlice",
"apiVersion": "discovery.k8s.io/v1",
"metadata": {
"name": "dw-harn-endpointslices",
"namespace": "dw-harn",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "812",
"generation": 2,
"creationTimestamp": "2026-07-02T21:31:32Z",
"labels": {
"dw-harn-patched": "1"
}
},
"addressType": "IPv4",
"endpoints": [
{
"addresses": [
"10.0.0.1"
],
"conditions": {}
}
],
"ports": [
{
"name": "",
"protocol": "TCP",
"port": 80
}
]
},
"responseObject": {
"kind": "EndpointSlice",
"apiVersion": "discovery.k8s.io/v1",
"metadata": {
"name": "dw-harn-endpointslices",
"namespace": "dw-harn",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "812",
"generation": 2,
"creationTimestamp": "2026-07-02T21:31:32Z",
"labels": {
"dw-harn-patched": "1"
}
},
"addressType": "IPv4",
"endpoints": [
{
"addresses": [
"10.0.0.1"
],
"conditions": {}
}
],
"ports": [
{
"name": "",
"protocol": "TCP",
"port": 80
}
]
},
"requestReceivedTimestamp": "2026-07-02T21:31:36.185857Z",
"stageTimestamp": "2026-07-02T21:31:36.188231Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
patch endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices/dw-harn-endpointslices?fieldManager=kubectl-patch",
"verb": "patch",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"name": "dw-harn-endpointslices",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"requestObject": {
"metadata": {
"labels": {
"dw-harn-patched": "1"
}
}
},
"responseObject": {
"kind": "EndpointSlice",
"apiVersion": "discovery.k8s.io/v1",
"metadata": {
"name": "dw-harn-endpointslices",
"namespace": "dw-harn",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "1655",
"generation": 2,
"creationTimestamp": "2026-07-02T04:48:03Z",
"labels": {
"dw-harn-patched": "1"
}
},
"addressType": "IPv4",
"endpoints": [
{
"addresses": [
"10.0.0.1"
],
"conditions": {}
}
],
"ports": [
{
"name": "",
"protocol": "TCP",
"port": 80
}
]
},
"requestReceivedTimestamp": "2026-07-02T04:48:07.142487Z",
"stageTimestamp": "2026-07-02T04:48:07.145431Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
delete endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices/dw-harn-endpointslices",
"verb": "delete",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=9bb0383c49b319fbf6b5ed61ab944378956d4292c784d32244ce2fa4dd846a3c"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"name": "dw-harn-endpointslices",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"status": "Success",
"details": {
"name": "dw-harn-endpointslices",
"group": "discovery.k8s.io",
"kind": "endpointslices",
"uid": "00000000-0000-0000-0000-000000000000"
},
"code": 200
},
"requestObject": {
"kind": "DeleteOptions",
"apiVersion": "meta.k8s.io/__internal",
"propagationPolicy": "Background"
},
"responseObject": {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Success",
"details": {
"name": "dw-harn-endpointslices",
"group": "discovery.k8s.io",
"kind": "endpointslices",
"uid": "00000000-0000-0000-0000-000000000000"
}
},
"requestReceivedTimestamp": "2026-07-02T04:48:07.210840Z",
"stageTimestamp": "2026-07-02T04:48:07.213715Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
deletecollection endpointslices
#Example Audit Event #
{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "RequestResponse",
"auditID": "00000000-0000-0000-0000-000000000000",
"stage": "ResponseComplete",
"requestURI": "/apis/discovery.k8s.io/v1/namespaces/dw-harn/endpointslices?labelSelector=dw-harn-patched",
"verb": "deletecollection",
"user": {
"username": "kubernetes-admin",
"groups": [
"kubeadm:cluster-admins",
"system:authenticated"
],
"extra": {
"authentication.kubernetes.io/credential-id": [
"X509SHA256=3ffde68ef687218e01296d94b0aa59c81cc98de2bd73ab70e21510c8cd4b9cec"
]
}
},
"sourceIPs": [
"203.0.113.10"
],
"userAgent": "kubectl/v1.36.2 (linux/amd64) kubernetes/24e2b02",
"objectRef": {
"resource": "endpointslices",
"namespace": "dw-harn",
"apiGroup": "discovery.k8s.io",
"apiVersion": "v1"
},
"responseStatus": {
"metadata": {},
"code": 200
},
"responseObject": {
"kind": "EndpointSliceList",
"apiVersion": "discovery.k8s.io/v1",
"metadata": {
"resourceVersion": "956"
},
"items": [
{
"metadata": {
"name": "dw-harn-endpointslices",
"namespace": "dw-harn",
"uid": "00000000-0000-0000-0000-000000000000",
"resourceVersion": "956",
"generation": 2,
"creationTimestamp": "2026-07-02T23:13:35Z",
"labels": {
"dw-harn-patched": "1"
}
},
"addressType": "IPv4",
"endpoints": [
{
"addresses": [
"10.0.0.1"
],
"conditions": {}
}
],
"ports": [
{
"name": "",
"protocol": "TCP",
"port": 80
}
]
}
]
},
"requestReceivedTimestamp": "2026-07-02T23:13:38.769927Z",
"stageTimestamp": "2026-07-02T23:13:38.774654Z",
"annotations": {
"authorization.k8s.io/decision": "allow",
"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"kubeadm:cluster-admins\" of ClusterRole \"cluster-admin\" to Group \"kubeadm:cluster-admins\""
}
}
References #
any verb on endpointslices (synthetic aggregation)
#Description
Synthetic aggregation for rules that filter the endpointslices resource with no specific verb. Not a distinct audit record; hosts rule listings that key on objectRef.resource alone.