@Tej-Singh-Rana thanks for the reply. but ‘new-replica-set’ is only a replicaset.
there is no any yml file, to update ‘new-replica-set’. it generated from the system.
this practice test have two more question.
question 15. scale the ReplicaSet up to 5 PODs.
same as previous qustion no 14, I only did, edit new-replica-set using
kubectl edit replicaset new-replica-set
but it’s correct.
answer also correct.
can we update replicaset without using yml file with ‘replace’ cmd? If can, how can I do that?
By command you can do this like kubectl get replicaset new-replica-set -oyaml >> replica.yaml
After that remove unnecessary fields. Get a idea from yaml file. kubectl replace -f replica.yaml --force
Change the “busybox” image in kubectl edit replicaset new-replica-set is correct but after that, we need to delete replicaset in the kube pods. Use command kubectl delete pods new-replica-set-xxxxx.