-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StatefulSet 1.9 updates. #6550
StatefulSet 1.9 updates. #6550
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,11 @@ title: StatefulSets | |
--- | ||
|
||
{% capture overview %} | ||
**StatefulSet is the workload API object used to manage stateful applications. | ||
StatefulSets are beta in 1.8.** | ||
|
||
StatefulSet is the workload API object used to manage stateful applications. | ||
|
||
**Note:** StatefulSets are stable (GA) in 1.9. | ||
{: .note} | ||
|
||
{% glossary_definition term_id="statefulset" length="all" %} | ||
{% endcapture %} | ||
|
@@ -66,7 +69,7 @@ spec: | |
selector: | ||
app: nginx | ||
--- | ||
apiVersion: apps/v1beta2 | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: web | ||
|
@@ -152,6 +155,12 @@ PersistentVolume Claims. Note that, the PersistentVolumes associated with the | |
Pods' PersistentVolume Claims are not deleted when the Pods, or StatefulSet are deleted. | ||
This must be done manually. | ||
|
||
### Pod Name Label | ||
|
||
When the StatefulSet controller creates a Pod, it adds a label, `statefulset.kubernetes.io/pod-name`, | ||
that is set to the name of the Pod. This label allows you to attach an individual Service to | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. by "individual", do you mean "distinct" or "different"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kow3ns Bumping for action on docs review There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be "different" I think. |
||
each Pod in the StatefulSet. | ||
|
||
## Deployment and Scaling Guarantees | ||
|
||
* For a StatefulSet with N replicas, when Pods are being deployed, they are created sequentially, in order from {0..N-1}. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: apps/v1beta2 | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: cassandra | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 1.9 and above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, seems fine even as is. Thinking from a perspective of a 1.9+ user, it should still be clear.