Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created May 25, 2025 22:05
Show Gist options
  • Save YurgenUA/958e26c262cfc83fa515ab69b782bd08 to your computer and use it in GitHub Desktop.
Save YurgenUA/958e26c262cfc83fa515ab69b782bd08 to your computer and use it in GitHub Desktop.
...
2025-05-25T21:59:10Z INFO admission Start handling... {"object": {"name":"test-pod3","namespace":"playground"}, "namespace": "playground", "name": "test-pod3", "resource": {"group":"","version":"v1","resource":"pods"}, "user": "kubernetes-admin", "requestID": "b498c468-cff6-487e-9596-0477adc31686"}
2025-05-25T21:59:10Z INFO admission Request {"object": {"name":"test-pod3","namespace":"playground"}, "namespace": "playground", "name": "test-pod3", "resource": {"group":"","version":"v1","resource":"pods"}, "user": "kubernetes-admin", "requestID": "b498c468-cff6-487e-9596-0477adc31686", "req": {"uid":"b498c468-cff6-487e-9596-0477adc31686","kind":{"group":"","version":"v1","kind":"Pod"},"resource":{"group":"","version":"v1","resource":"pods"},"requestKind":{"group":"","version":"v1","kind":"Pod"},"requestResource":{"group":"","version":"v1","resource":"pods"},"name":"test-pod3","namespace":"playground","operation":"CREATE","userInfo":{"username":"kubernetes-admin","groups":["kubeadm:cluster-admins","system:authenticated"],"extra":{"authentication.kubernetes.io/credential-id":["X509SHA256=a0ead1d53dc4756627f6e0e4ec8b1eba5ae55c66da9859a52c1b28f0ec80a945"]}},"object":{"kind":"Pod","apiVersion":"v1","metadata":{"name":"test-pod3","namespace":"playground","uid":"49f41e00-fbbd-41ca-b7d3-b8f632055a9c","creationTimestamp":"2025-05-25T21:59:10Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"v1\",\"kind\":\"Pod\",\"metadata\":{\"annotations\":{\"quota.operator.k8s.yfenyuk.io/api-key\":\"teamy456_not_existing\"},\"name\":\"test-pod3\",\"namespace\":\"playground\"},\"spec\":{\"containers\":[{\"command\":[\"sleep\",\"3600\"],\"image\":\"busybox\",\"name\":\"busybox\"}]}}\n","quota.operator.k8s.yfenyuk.io/api-key":"teamy456_not_existing"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"v1","time":"2025-05-25T21:59:10Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{},"f:quota.operator.k8s.yfenyuk.io/api-key":{}}},"f:spec":{"f:containers":{"k:{\"name\":\"busybox\"}":{".":{},"f:command":{},"f:image":{},"f:imagePullPolicy":{},"f:name":{},"f:resources":{},"f:terminationMessagePath":{},"f:terminationMessagePolicy":{}}},"f:dnsPolicy":{},"f:enableServiceLinks":{},"f:restartPolicy":{},"f:schedulerName":{},"f:securityContext":{},"f:terminationGracePeriodSeconds":{}}}}]},"spec":{"volumes":[{"name":"kube-api-access-sbrn2","projected":{"sources":[{"serviceAccountToken":{"expirationSeconds":3607,"path":"token"}},{"configMap":{"name":"kube-root-ca.crt","items":[{"key":"ca.crt","path":"ca.crt"}]}},{"downwardAPI":{"items":[{"path":"namespace","fieldRef":{"apiVersion":"v1","fieldPath":"metadata.namespace"}}]}}],"defaultMode":420}}],"containers":[{"name":"busybox","image":"busybox","command":["sleep","3600"],"resources":{},"volumeMounts":[{"name":"kube-api-access-sbrn2","readOnly":true,"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"}],"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","imagePullPolicy":"Always"}],"restartPolicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","serviceAccountName":"default","serviceAccount":"default","securityContext":{},"schedulerName":"default-scheduler","tolerations":[{"key":"node.kubernetes.io/not-ready","operator":"Exists","effect":"NoExecute","tolerationSeconds":300},{"key":"node.kubernetes.io/unreachable","operator":"Exists","effect":"NoExecute","tolerationSeconds":300}],"priority":0,"enableServiceLinks":true,"preemptionPolicy":"PreemptLowerPriority"},"status":{"phase":"Pending","qosClass":"BestEffort"}},"oldObject":null,"dryRun":false,"options":{"kind":"CreateOptions","apiVersion":"meta.k8s.io/v1","fieldManager":"kubectl-client-side-apply","fieldValidation":"Strict"}}}
2025-05-25T21:59:10Z INFO admission API Key Annotation {"object": {"name":"test-pod3","namespace":"playground"}, "namespace": "playground", "name": "test-pod3", "resource": {"group":"","version":"v1","resource":"pods"}, "user": "kubernetes-admin", "requestID": "b498c468-cff6-487e-9596-0477adc31686", "apiKey": "teamy456_not_existing"}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment