2015-06-10 18:11:53 -04:00
|
|
|
apiVersion: v1
|
2015-01-28 12:21:22 -05:00
|
|
|
kind: Pod
|
2015-05-06 18:14:16 -04: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
|