addition of mysql-wordpress-pd example
This commit is contained in:
31
examples/mysql-wordpress-pd/wordpress.yaml
Normal file
31
examples/mysql-wordpress-pd/wordpress.yaml
Normal 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
|
Reference in New Issue
Block a user