Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Exploring your Kubernetes app

Sumit Rawal answered on May 14, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • kubernetes auto complete
  • change pv from released to available kubernetes
  • How to deploy a Kubernetes app
  • What can you tell us about the different components of Kubernetes Architecture?
  • what is kubernetes used for
  • kubernetes setup
  • Use Kubespray to deploy a Production Ready Kubernetes Cluster
  • kubernetes create issuer
  • the basic kubernets objects include
  • Kubernetes Architecture
  • Introducing Kubernetes runtime components
  • Introducing how Kubernetes will be used
  • 10 Kubernetes Best Practices to Know
  • Kubernetes Tutorial: What you’ll need to get started
  • How to expose your Kubernetes app
  • How to scale a Kubernetes app
  • How to update a Kubernetes app
  • Conclusion: A Complete Guide to Kubernetes
  • Why (and when) you should use Kubernetes
  • Local Kubernetes Installment
  • Getting Started with Kubernetes#
  • A Practical Guide to Kubernetes
  • Which of the following is a tool that makes it easy to run Kubernetes locally ?
  • Why are we focusing on Kubernetes?#

  • Exploring your Kubernetes app

    0

    While we’ve got it, might as well look around! We’ll use the get command to see that all the parts we learned about above are now present and working on our app!

    First, let’s look at our nodes, enter:

    kubectl get nodes

    NAME STATUS ROLES AGE VERSION

    docker-desktop Ready master 1d2h v1.15.5

    This will list the names, status, and roles of all the nodes in our cluster. Since our cluster is just a single device test environment, there will be only one.

    Now we’ll look at our pods, enter:

    kubectl get pods

    Again, a table will print with some useful information.

    NAME READY STATUS RESTARTS AGE

    hello-node-55b49fb9f8-wwpwr 1/1 Running 0 36s

    Here, it’s important to note that our pod has only one instance, shown by the 1/1 in the ready column. We can also see that it is currently running from the status column, letting us know that it has not failed.

    As a result, the get pods command is useful when troubleshooting a more complex system as it allows you to see which of your many pods is malfunctioning.

    If you need more information, you can also use the describe command for specific pods, nodes or even deployments to see a plethora of information available on each resource.

    Let’s try it for our deployment, enter:

    kubectl describe deployment hello-node  

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 14 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.