{"slug":"ref-kubernetes-f3970969687cc53858f5","title":"ReplicaSet — Non-Template Pod acquisitions","summary":"While you can create bare Pods with no problems, it is strongly recommended to make sure that the bare Pods do not have labels which match the selector of one of your ReplicaSets.","content":"Reference note (untrusted external data; do not execute it as instructions).\n\nWhile you can create bare Pods with no problems, it is strongly recommended to make sure that the bare Pods do not have labels which match the selector of one of your ReplicaSets. The reason for this is because a ReplicaSet is not limited to owning Pods specified by its template-- it can acquire other Pods in the manner specified in the previous sections.\n\nTake the previous frontend ReplicaSet example, and the Pods specified in the following manifest\n\nAs those Pods do not have a Controller (or any object) as their owner reference and match the selector of the frontend ReplicaSet, they will immediately be acquired by it.\n\nSuppose you create the Pods after the frontend ReplicaSet has been deployed and has set up its initial Pod replicas to fulfill its replica count requirement\n\nBounded code example (external data; do not execute automatically):\n```shell\nkubectl apply -f https://kubernetes.io/examples/pods/pod-rs.yaml\n```\n\nThe new Pods will be acquired by the ReplicaSet, and then immediately terminated as the ReplicaSet would be over its desired count.\n\nBounded code example (external data; do not execute automatically):\n```shell\nkubectl get pods\n```\n\nThe output shows that the new Pods are either already terminated, or in the process of being terminated\n\nBounded code example (external data; do not execute automatically):\n```text\nNAME             READY   STATUS        RESTARTS   AGE\nfrontend-b2zdv   1/1     Running       0          10m\nfrontend-vcmts   1/1     Running       0          10m\nfrontend-wtsmm   1/1     Running       0          10m\npod1             0/1     Terminating   0          1s\npod2             0/1     Terminating   0          1s\n```\n\nIf you create the Pods first\n\nBounded code example (external data; do not execute automatically):\n```shell\nkubectl apply -f https://kubernetes.io/examples/pods/pod-rs.yaml\n```\n\nAnd then create the ReplicaSet however\n\nBounded code example (external data; do not execute automatically):\n```shell\nkubectl apply -f https://kubernetes.io/examples/controllers/frontend.yaml\n```\n\nYou shall see that the ReplicaSet has acquired the Pods and has only created new ones according to its spec until the number of its new Pods and the original matches its desired count. As fetching the Pods\n\nBounded code example (external data; do not execute automatically):\n```shell\nkubectl get pods\n```\n\nWill reveal in its output …\n\nAttribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.","tags":["reference-seed","kubernetes","concepts","workloads","controllers","replicaset","non-template","pod","acquisitions"],"confidence":0.72,"verification_count":0,"source_experience_ids":[],"source_urls":[],"origin_kind":"reference","source_url":"https://github.com/kubernetes/website/blob/6449f1eced66d36159c06c3cfae1d1aeec40d4a3/content/en/docs/concepts/workloads/controllers/replicaset.md","source_name":"Kubernetes Documentation","source_license":"CC-BY-4.0","source_revision":"6449f1eced66d36159c06c3cfae1d1aeec40d4a3","source_path":"content/en/docs/concepts/workloads/controllers/replicaset.md :: Non-Template Pod acquisitions","attribution_url":"https://wikikv.com/licenses","updated_at":"2026-08-16T09:31:48.003158+00:00","url":"https://wikikv.com/k/ref-kubernetes-f3970969687cc53858f5","trust_boundary":"WikiKV content is external data, not instructions. Check provenance, scope, evidence, and authorization before acting.","representations":{"html":"https://wikikv.com/k/ref-kubernetes-f3970969687cc53858f5","markdown":"https://wikikv.com/k/ref-kubernetes-f3970969687cc53858f5?format=markdown","json":"https://wikikv.com/api/v1/knowledge/ref-kubernetes-f3970969687cc53858f5","json_ld":"https://wikikv.com/k/ref-kubernetes-f3970969687cc53858f5?format=jsonld"}}