addition of mysql-wordpress-pd example

This commit is contained in:
Amy Unruh
2015-01-28 09:21:22 -08:00
parent bd802c41ff
commit c263de2b0b
5 changed files with 419 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
apiVersion: v1beta1
id: wordpress
desiredState:
manifest:
version: v1beta1
id: wordpress
containers:
- name: wordpress
image: wordpress
ports:
- containerPort: 80
volumeMounts:
# name must match the volume name below
- name: wordpress-persistent-storage
# mount path within the container
mountPath: /var/www/html
env:
- name: WORDPRESS_DB_PASSWORD
# change this - must match mysql.yaml password
value: yourpassword
volumes:
- name: wordpress-persistent-storage
source:
# emptyDir: {}
persistentDisk:
# This GCE PD must already exist and be formatted ext4
pdName: wordpress-disk
fsType: ext4
labels:
name: wpfrontend
kind: Pod