mirror of https://github.com/k3s-io/k3s
29 lines
720 B
YAML
29 lines
720 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
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
|