2015-06-10 22:11:53 +00:00
|
|
|
apiVersion: v1
|
2015-01-28 17:21:22 +00:00
|
|
|
kind: Pod
|
2015-05-06 22:14:16 +00:00
|
|
|
metadata:
|
|
|
|
name: wordpress
|
|
|
|
labels:
|
|
|
|
name: wordpress
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: wordpress
|
|
|
|
name: wordpress
|
|
|
|
env:
|
|
|
|
- name: WORDPRESS_DB_PASSWORD
|
|
|
|
# change this - must match mysql.yaml password
|
|
|
|
value: yourpassword
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: wordpress
|
|
|
|
volumeMounts:
|
|
|
|
# name must match the volume name below
|
|
|
|
- name: wordpress-persistent-storage
|
|
|
|
# mount path within the container
|
|
|
|
mountPath: /var/www/html
|
|
|
|
volumes:
|
|
|
|
- name: wordpress-persistent-storage
|
|
|
|
gcePersistentDisk:
|
|
|
|
# This GCE PD must already exist.
|
|
|
|
pdName: wordpress-disk
|
|
|
|
fsType: ext4
|