May 2018
Intermediate to advanced
554 pages
13h 51m
English
After we create the ReplicaSet, the subcommands get and describe can help us to capture its information and the status of Pods. In the CLI of Kubernetes, we are able to use the abbreviation rs for resource type, instead of the full name ReplicaSet:
// use subcommand "get" to list all ReplicaSets$ kubectl get rsNAME DESIRED CURRENT READY AGEmy-first-replicaset 3 3 3 4s
This result shows roughly that the Pod replicas of my-first-replicaset are all running successfully; currently running Pods are of the desired number and all of them are ready for serving requests.
For detailed information, check by using the subcommand describe:
// specify that we want to check ReplicaSet called my-first-replicaset$ kubectl ...
Read now
Unlock full access