Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4471d3d

Browse files
0xmichalischenopis
authored andcommitted
Warn against managing ReplicaSets owned by Deployments
Signed-off-by: Michail Kargakis <[email protected]>
1 parent 71177ff commit 4471d3d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/concepts/workloads/controllers/deployment.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ A _Deployment_ provides declarative updates for [Pods](/docs/concepts/workloads/
1616
[ReplicaSets](/docs/concepts/workloads/controllers/replicaset/) (the next-generation ReplicationController).
1717
You only need to describe the desired state in a Deployment object, and the Deployment controller will
1818
change the actual state to the desired state at a controlled rate for you. You can define Deployments to
19-
create new resources, or replace existing ones by new ones.
19+
create new ReplicaSets, or remove existing Deployments and adopt all of their resources with new Deployments.
20+
21+
**Note** You should not manage ReplicaSets owned by a Deployment, otherwise you are racing with the Deployment
22+
controller! All of the use cases should be covered just by manipulating the Deployment object. Consider opening
23+
an issue in the main Kubernetes repository, if your use case is not covered below.
2024

2125
A typical use case is:
2226

0 commit comments

Comments
 (0)