Friday 7 August 2020

Kubernetes: list all pods, replicasets, services and deployments

Execute the command ‘kubectl get all’ to list all pods, replicasets, services and deployments.
$kubectl get all
NAME                                              READY   STATUS    RESTARTS   AGE
pod/employee-service-deployment-dff6c9cdf-2wrg9   1/1     Running   0          9m13s
pod/employee-service-deployment-dff6c9cdf-8m7cr   1/1     Running   0          9m13s
pod/employee-service-deployment-dff6c9cdf-kv9ck   1/1     Running   0          9m13s
pod/employee-service-deployment-dff6c9cdf-pbfpr   1/1     Running   0          9m13s
pod/employee-service-deployment-dff6c9cdf-s4nh4   1/1     Running   0          9m13s

NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   28d

NAME                                          READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/employee-service-deployment   5/5     5            5           9m13s

NAME                                                    DESIRED   CURRENT   READY   AGE
replicaset.apps/employee-service-deployment-dff6c9cdf   5         5         5       9m13s




Previous                                                    Next                                                    Home

No comments:

Post a Comment