Editing Kubectl get events

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
TOMERGE: [[Kubernetes node events]]
+
* <code>[[kubectl get]] events</code>
 
 
* <code>[[kubectl get events --help]]</code>
 
 
* <code>[[kubectl get events -A]]</code>
 
* <code>[[kubectl get events -A]]</code>
* <code>[[kubectl get events -A]] | grep [[Warning]]</code>
 
* <code>[[kubectl get events -A -o wide]] | grep [[Warning]]</code>
 
* <code>[[kubectl get]] events</code>
 
* <code>[[kubectl get events -o wide]]</code>
 
 
* <code>kubectl get events -o yaml</code>
 
* <code>kubectl get events -o yaml</code>
  
Line 16: Line 10:
 
* <code>[[kubectl -n gitlab-runner get events --field-selector type!=Normal]]</code>
 
* <code>[[kubectl -n gitlab-runner get events --field-selector type!=Normal]]</code>
  
 
+
kubectl get events -A | grep [[Warning]]
  kubectl get events -A | grep [[Warning]] | egrep "[[FailedMount]]|[[FailedAttachVolume]]|[[Unhealthy]]|[[ClusterUnhealthy]]|[[FailedScheduling]]"
+
  kubectl get events -A | grep [[Warning]] | egrep "[[FailedMount]]|[[FailedAttachVolume]]"
 
 
 
  [[kubectl get events -A]] | grep [[Normal]]
 
  [[kubectl get events -A]] | grep [[Normal]]
  
 
== Events examples ==
 
== Events examples ==
* [[Normal]], [[Warning]], [[Critical]]
 
 
 
=== Warning ===
 
=== Warning ===
 
[[BackoffLimitExceeded]]
 
[[CalculateExpectedPodCountFailed]]
 
[[ClusterUnhealthy]]
 
[[FailedMount]]
 
[[FailedScheduling]]
 
[[InvalidDiskCapacity]]
 
[[Unhealthy]]
 
.../...
 
 
 
  
 
  your_namespace        28s        Warning  [[FailedScheduling]]                  pod/kibana-kibana-654ccb45bd-pbp4r            0/2 nodes are available: 2 [[Insufficient cpu]].
 
  your_namespace        28s        Warning  [[FailedScheduling]]                  pod/kibana-kibana-654ccb45bd-pbp4r            0/2 nodes are available: 2 [[Insufficient cpu]].
Line 63: Line 43:
  
 
    
 
    
  [[kube-system]]    43m        [[Warning]]  [[ClusterUnhealthy]]          [[configmap/]]  
+
  [[kube-system]]    43m        [[Warning]]  [[ClusterUnhealthy]]          [[configmap/]][[cluster-autoscaler-status]]                     [[Cluster has no ready nodes]].
[[cluster-autoscaler-status]]  
 
 
 
     
 
LAST SEEN  TYPE      REASON              OBJECT                                MESSAGE
 
28s        Warning  FailedScheduling    pod/deployment-1230/3 nodes
 
are available: 3 [[persistentvolumeclaim]] "your" bound to non-existent
 
persistentvolume "".
 
19m        Warning  FailedScheduling    pod/deployment-123      0/3 nodes
 
are available: 3 persistentvolumeclaim "your" not found.
 
10m        Warning  FailedScheduling    pod/deployment-91234      0/3 nodes
 
are available: 3 persistentvolumeclaim "your" bound to non-existent
 
persistentvolume "".
 
17m        Warning  [[ClaimLost]]          persistentvolumeclaim/yourclaim  [[Bound claim has lost reference to PersistentVolume]]. Data on the volume is lost!          [[Cluster has no ready nodes]].
 
  
 
=== Normal ===
 
=== Normal ===
Started
 
Created
 
Pulled
 
[[Pulling]]
 
[[Scheduled]]
 
[[Killing]]
 
[[Evict]]
 
[[SandboxChanged]]
 
[[SuccessfulCreate]] - [[ReplicaSet]]
 
[[SuccessfulDelete]]
 
[[NodeNotSchedulable]]
 
[[RemovingNode]]
 
[[TaintManagerEviction]]
 
[[WaitForFirstConsumer]]
 
[[ExternalProvisioning]]
 
[[TaintManagerEviction: Cancelling deletion of pod]]
 
 
 
 
 
  default    4s          Normal    [[Provisioning]]          persistentvolumeclaim/myprometheus-alertmanager  External provisioner is provisioning volume for claim "default/myprometheus-alertmanager"
 
  default    4s          Normal    [[Provisioning]]          persistentvolumeclaim/myprometheus-alertmanager  External provisioner is provisioning volume for claim "default/myprometheus-alertmanager"
 
   
 
   
 
  Related: <code>[[kubectl get pvc]]</code>
 
  Related: <code>[[kubectl get pvc]]</code>
 
 
ingress-nginx  53m        Normal    [[UpdatedLoadBalancer]]      service/nginx-ingress-controller                        Updated load balancer with new hosts
 
ingress-nginx  54m        Warning  [[UnAvailableLoadBalancer]]  service/nginx-ingress-controller                        There are no available nodes for LoadBalancer
 
  
 
== Events ==
 
== Events ==
Line 110: Line 54:
 
* <code>[[Completed]]</code>
 
* <code>[[Completed]]</code>
 
* <code>[[Created]]</code>
 
* <code>[[Created]]</code>
* <code>[[DeadlineExceeded]]</code>
 
* <code>[[Failed]]</code>
 
* <code>[[FailedAttachVolume]]</code>
 
* <code>[[FailedCreatePodSandBox]]</code>
 
 
* <code>[[FailedMount]]</code>
 
* <code>[[FailedMount]]</code>
* <code>[[FailedKillPod]]</code>
 
 
* <code>[[FailedScheduling]]</code>
 
* <code>[[FailedScheduling]]</code>
* <code>[[FailedToUpdateEndpoint]]</code>
 
* <code>[[FailedToUpdateEndpointSlices]]</code>
 
 
* <code>[[Generated]]</code>
 
* <code>[[Generated]]</code>
 
* <code>[[PresentError]]</code>
 
* <code>[[PresentError]]</code>
Line 129: Line 66:
 
* <code>[[SuccessfulCreate]]</code>
 
* <code>[[SuccessfulCreate]]</code>
 
* <code>[[SuccessfulDelete]]</code>
 
* <code>[[SuccessfulDelete]]</code>
* <code>[[NetworkNotReady]]</code>
+
* <code>[[FailedKillPod]]</code>
* <code>[[NodeNotReady]]</code>
 
* <code>[[NodeAllocatableEnforced]]</code>
 
 
* <code>[[NoPods]]</code>
 
* <code>[[NoPods]]</code>
 
* <code>[[NodeHasNoDiskPressure]]</code>
 
* <code>[[NodeHasNoDiskPressure]]</code>
* <code>[[UnAvailableLoadBalancer]]</code>
+
* [[FailedAttachVolume]]
* <code>[[Unhealthy]]</code>
 
* <code>[[VolumeFailedDelete]]</code>
 
  
 
== Related ==
 
== Related ==
* <code>[[kubectl events]]</code>
 
 
* <code>[[kubectl top]]</code>
 
* <code>[[kubectl top]]</code>
 
* <code>[[kubectl logs]]</code>
 
* <code>[[kubectl logs]]</code>
* <code>[[gcloud logging read resource.labels.cluster_name]]</code>
+
* <code>[[FailedScheduling]]</code>
 +
* <code>[[kubectl get events --help]]</code>
 
* [[job-controller]]
 
* [[job-controller]]
 +
* [[kubelet]]
 
* [[GCP Node logs]]
 
* [[GCP Node logs]]
 +
* [[Events]]
 
* <code>[[gcloud logging read]]  projects/yourproject/logs/[[kubelet]]</code>
 
* <code>[[gcloud logging read]]  projects/yourproject/logs/[[kubelet]]</code>
 
* <code>[[kubectl describe nodes (conditions:)]]</code>
 
* <code>[[kubectl describe nodes (conditions:)]]</code>
* <code>[[kubectl describe nodes]] | grep [[KubeletReady]]</code>
 
* <code>[[--event-ttl]]</code> defines the amount of time to retain events, default 1h.
 
  
 
== See also ==
 
== See also ==
 
* {{kubectl events}}
 
* {{kubectl events}}
 +
* {{kubectl info}}
 
* {{K8s troubleshooting}}
 
* {{K8s troubleshooting}}
* {{K8s monitoring}}
 
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: