Merge pull request #1874 from enisoc/deprecate-petset

Add deprecation warning on PetSet guide.
reviewable/pr1876/r1
devin-donnelly 2016-12-06 16:19:27 -08:00 committed by GitHub
commit 843bd891d5
3 changed files with 21 additions and 4 deletions

View File

@ -1,10 +1,23 @@
---
assignees:
- bprashanth
- enisoc
- erictune
- foxish
- janetkuo
- kow3ns
- smarterclayton
---
__Warning:__ Starting in Kubernetes version 1.5, PetSet has been renamed to
[StatefulSet](/docs/concepts/abstractions/controllers/statefulsets/).
To use (or continue to use) PetSet in Kubernetes 1.5 or higher, you must
[migrate your existing PetSets to StatefulSets](/docs/tasks/manage-stateful-set/upgrade-pet-set-to-stateful-set/).
__This document has been deprecated__, but can still apply if you're using
Kubernetes version 1.4 or earlier.
* TOC
{:toc}
@ -424,4 +437,8 @@ Deploying one RC of size 1/Service per pod is a popular alternative, as is simpl
## Next steps
The deployment and maintenance of stateful applications is a vast topic. The next step is to explore cluster bootstrapping and initialization, [here](/docs/user-guide/petset/bootstrapping/).
* Learn about [StatefulSet](/docs/concepts/abstractions/controllers/statefulsets/),
the replacement for PetSet introduced in Kubernetes version 1.5.
* [Migrate your existing PetSets to StatefulSets](/docs/tasks/manage-stateful-set/upgrade-pet-set-to-stateful-set/)
when upgrading to Kubernetes version 1.5 or higher.

View File

@ -14,8 +14,8 @@ spec:
selector:
app: nginx
---
apiVersion: apps/v1beta1
kind: StatefulSet
apiVersion: apps/v1alpha1
kind: PetSet
metadata:
name: web
spec:

View File

@ -264,7 +264,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"nginx-probe-deployment": {&extensions.Deployment{}},
"nginx-secure-app": {&api.Service{}, &extensions.Deployment{}},
"nginx-svc": {&api.Service{}},
"petset": {&api.Service{}, &apps.StatefulSet{}},
"petset": {&api.Service{}, nil},
"pod": {&api.Pod{}},
"pod-w-message": {&api.Pod{}},
"redis-deployment": {&extensions.Deployment{}},