Modified version for .yaml (#112)

This commit is contained in:
chenhonggc 2017-10-18 22:07:21 -05:00 committed by Ahmet Alp Balkan
parent 8f598113c8
commit ed03ad33bd
2 changed files with 10 additions and 2 deletions

View File

@ -25,13 +25,17 @@ spec:
requests:
storage: 20Gi
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
selector:
matchLabels:
app: wordpress
tier: mysql
strategy:
type: Recreate
template:

View File

@ -25,13 +25,17 @@ spec:
requests:
storage: 20Gi
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: wordpress
labels:
app: wordpress
spec:
selector:
matchLabels:
app: wordpress
tier: frontend
strategy:
type: Recreate
template: