update wordpress and mysql PV doc to use apps/v1beta2 APIs (#5424)

This commit is contained in:
Jun Xiang Tee
2017-09-13 19:43:00 -07:00
committed by Steve Perry
parent ccb82b10f2
commit c912140727
5 changed files with 21 additions and 5 deletions
@@ -25,13 +25,17 @@ spec:
requests: requests:
storage: 20Gi storage: 20Gi
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1beta2
kind: Deployment kind: Deployment
metadata: metadata:
name: wordpress-mysql name: wordpress-mysql
labels: labels:
app: wordpress app: wordpress
spec: spec:
selector:
matchLabels:
app: wordpress
tier: mysql
strategy: strategy:
type: Recreate type: Recreate
template: template:
@@ -25,13 +25,17 @@ spec:
requests: requests:
storage: 20Gi storage: 20Gi
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1beta2
kind: Deployment kind: Deployment
metadata: metadata:
name: wordpress name: wordpress
labels: labels:
app: wordpress app: wordpress
spec: spec:
selector:
matchLabels:
app: wordpress
tier: frontend
strategy: strategy:
type: Recreate type: Recreate
template: template:
@@ -151,7 +151,7 @@ The following manifest describes a single-instance WordPress Deployment and Serv
You should see the WordPress set up page similar to the following screenshot. You should see the WordPress set up page similar to the following screenshot.
![wordpress-init](https://github.com/kubernetes/examples/blob/master/mysql-wordpress-pd/WordPress.png) ![wordpress-init](https://raw.githubusercontent.com/kubernetes/examples/master/mysql-wordpress-pd/WordPress.png)
**Warning:** Do not leave your WordPress installation on this page. If another user finds it, they can set up a website on your instance and use it to serve malicious content. <br/><br/>Either install WordPress by creating a username and password or delete your instance. **Warning:** Do not leave your WordPress installation on this page. If another user finds it, they can set up a website on your instance and use it to serve malicious content. <br/><br/>Either install WordPress by creating a username and password or delete your instance.
{: .warning} {: .warning}
@@ -25,13 +25,17 @@ spec:
requests: requests:
storage: 20Gi storage: 20Gi
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1beta2
kind: Deployment kind: Deployment
metadata: metadata:
name: wordpress-mysql name: wordpress-mysql
labels: labels:
app: wordpress app: wordpress
spec: spec:
selector:
matchLabels:
app: wordpress
tier: mysql
strategy: strategy:
type: Recreate type: Recreate
template: template:
@@ -25,13 +25,17 @@ spec:
requests: requests:
storage: 20Gi storage: 20Gi
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1beta2
kind: Deployment kind: Deployment
metadata: metadata:
name: wordpress name: wordpress
labels: labels:
app: wordpress app: wordpress
spec: spec:
selector:
matchLabels:
app: wordpress
tier: frontend
strategy: strategy:
type: Recreate type: Recreate
template: template: