Skip to content

Instantly share code, notes, and snippets.

@amygdala
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amygdala/ccf107f940054ae5d740 to your computer and use it in GitHub Desktop.
Save amygdala/ccf107f940054ae5d740 to your computer and use it in GitHub Desktop.
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