Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
apiVersion: v1beta1
id: wordpress
desiredState:
manifest:
version: v1beta1
id: frontendController
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
value: mypassword
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: frontend
kind: Pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment