Skip to content

Commit c3947d5

Browse files
liyinan926steveperry-53
authored andcommitted
Updated the Cassandra tutorial to use apps/v1beta2 (#5548)
1 parent 755b521 commit c3947d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/tutorials/stateful-application/cassandra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Use `kubectl edit` to modify the size of of a Cassandra StatefulSet.
159159
# and an empty file will abort the edit. If an error occurs while saving this file will be
160160
# reopened with the relevant failures.
161161
#
162-
apiVersion: apps/v1beta1
162+
apiVersion: apps/v1beta2
163163
kind: StatefulSet
164164
metadata:
165165
creationTimestamp: 2016-08-13T18:40:58Z

docs/tutorials/stateful-application/cassandra/cassandra-statefulset.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
apiVersion: "apps/v1beta1"
1+
apiVersion: apps/v1beta2
22
kind: StatefulSet
33
metadata:
44
name: cassandra
5+
labels:
6+
app: cassandra
57
spec:
68
serviceName: cassandra
79
replicas: 3
10+
selector:
11+
matchLabels:
12+
app: cassandra
813
template:
914
metadata:
1015
labels:

0 commit comments

Comments
 (0)