Skip to content

Commit fee911d

Browse files
Re-update WordPress and MySQL PV doc to use apps/v1beta2 APIs
1 parent 6bceca5 commit fee911d

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

cn/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/mysql-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ spec:
2525
requests:
2626
storage: 20Gi
2727
---
28-
apiVersion: extensions/v1beta1
28+
apiVersion: apps/v1beta2
2929
kind: Deployment
3030
metadata:
3131
name: wordpress-mysql
3232
labels:
3333
app: wordpress
3434
spec:
35+
selector:
36+
matchLabels:
37+
app: wordpress
38+
tier: mysql
3539
strategy:
3640
type: Recreate
3741
template:

cn/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/wordpress-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ spec:
2525
requests:
2626
storage: 20Gi
2727
---
28-
apiVersion: extensions/v1beta1
28+
apiVersion: apps/v1beta2
2929
kind: Deployment
3030
metadata:
3131
name: wordpress
3232
labels:
3333
app: wordpress
3434
spec:
35+
selector:
36+
matchLabels:
37+
app: wordpress
38+
tier: frontend
3539
strategy:
3640
type: Recreate
3741
template:

docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/mysql-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ spec:
2525
requests:
2626
storage: 20Gi
2727
---
28-
apiVersion: extensions/v1beta1
28+
apiVersion: apps/v1beta2
2929
kind: Deployment
3030
metadata:
3131
name: wordpress-mysql
3232
labels:
3333
app: wordpress
3434
spec:
35+
selector:
36+
matchLabels:
37+
app: wordpress
38+
tier: mysql
3539
strategy:
3640
type: Recreate
3741
template:

docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/wordpress-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ spec:
2525
requests:
2626
storage: 20Gi
2727
---
28-
apiVersion: extensions/v1beta1
28+
apiVersion: apps/v1beta2
2929
kind: Deployment
3030
metadata:
3131
name: wordpress
3232
labels:
3333
app: wordpress
3434
spec:
35+
selector:
36+
matchLabels:
37+
app: wordpress
38+
tier: frontend
3539
strategy:
3640
type: Recreate
3741
template:

0 commit comments

Comments
 (0)