kubectl get pods
lists all pods, so filter them using the name.
kubectl get pods/hello-pod
to get all pods in all namespaces instead of only current one.
kubectl get pods --all-namespaces
Replication Controller-- this object acts as wrapper on top of pods instead of directly working with them.It implements desired state.
kubectl delete pods hello-pod
rc.yml is for replication controller config to create replicas.
The template section is for creating a pod for all replications.
which is same in pod.xml.
kubectl create -f rc.yml
kubectl get rc
kubectl describe rc
if you want to modify the existing configuration, update the yml file and use below command.
kubectl apply -f rc.yml
kubectl get rc -o wide
kubectl get pods
lists all pods, so filter them using the name.
kubectl get pods/hello-pod
to get all pods in all namespaces instead of only current one.
kubectl get pods --all-namespaces
Replication Controller-- this object acts as wrapper on top of pods instead of directly working with them.It implements desired state.
kubectl delete pods hello-pod
rc.yml is for replication controller config to create replicas.
The template section is for creating a pod for all replications.
which is same in pod.xml.
kubectl create -f rc.yml
kubectl get rc
kubectl describe rc
if you want to modify the existing configuration, update the yml file and use below command.
kubectl apply -f rc.yml
kubectl get rc -o wide
kubectl get pods
No comments:
Post a Comment