kubectl get command

To see the overall picture of deployed applications, x provides the get command. The get command lists the resources that you specify. Resources can be pods, replication controllers, ingress, nodes, deployments, secrets, and so on. We have already run this in the previous chapters to verify whether our application is ready to be used or not. Perform the following steps:

  1. Run the following get command, which will get us the resources and their statuses:
kubectl get all

You will get something like this, as shown in the following block:

NAME                                                            READY     STATUS    RESTARTS   AGEpod/frontend-5785f8455c-2dsgt                                   0/1       Pending   0          9spod/frontend-5785f8455c-f8knz                                   0/1       Pending   0          9spod/frontend-5785f8455c-p9mh9                                   0/1       Pending   0          9spod/redis-master-6b464554c8-sghfh ...

Get Hands-On Kubernetes on Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.