
I know the internal JSO tags are slated for death. Until then, make them correct. Also fix some examples of v1b3 conversions that did not rename the JSON field.
38 lines
954 B
YAML
38 lines
954 B
YAML
apiVersion: v1beta3
|
|
kind: ReplicationController
|
|
metadata:
|
|
labels:
|
|
name: wordpress
|
|
name: wordpress
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
name: wordpress
|
|
template:
|
|
metadata:
|
|
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
|
|
|