• Home
  • Devops
  • 1m Read
More

    How to check the Kubernetes events in the namespace?

    This is a 1m blog series from Kuberneteslab. If you are working with the Kubernetes cluster then you will face issues for sure. Like for example, kubelet killed the pod, etc. You will try to debug and reach a conclusion.

    Kubernetes come up with kubectl tool. Getting the events from the Kubernetes is one of the initial approaches developers or ops engineers could follow. You can get all possible events from the Kubernetes.


    I will not go into much detail of the kubectl and if you dont have one please install it from here.

    To check the kubernetes event is specific namespace please use following command:

    $ kubectl get events -n kuberneteslab

    If there are a lot of events then you can just grep output for failed events like following:

    $ kubectl get events -n kuberneteslab | grep "Failed.*"

    Please do support our initiative for the open source writing. You can support us via buying coffee or drink.

    Recent Articles

    SED Command : Search And Replace in file

    This is 1m read blog. In this blog we will check how to replace source string with replacement string for file with...

    How to check top 10 CPU consuming processes on Linux ?

    In shared linux server environment it is important to track the usage of high CPU consuming processes. If...

    Explained: Keep Specific Metrics in Prometheus using Prometheus Job

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the keep action for keeping certain metrics in...

    How to check the Disk Statistics on Linux using Terminal ?

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the disk statistics and how to view...

    How to get resources from Kubernetes Cluster using Kubectl ?

    Get Resources from K8S Cluster using Kubectl cmd: In this article we will look into some commands...

    Related Stories

    Subscribe
    Notify of
    guest
    0 Comments
    Inline Feedbacks
    View all comments

    Stay on op - Ge the daily news in your inbox

    0
    Would love your thoughts, please comment.x
    ()
    x