Create a gist now

Instantly share code, notes, and snippets.

@amygdala /mysql.yaml
Last active Aug 29, 2015

What would you like to do?
apiVersion: v1beta1
id: mysql
desiredState:
manifest:
version: v1beta1
id: mysql
containers:
- name: mysql
image: mysql
env:
- name: MYSQL_ROOT_PASSWORD
value: mypassword
cpu: 100
ports:
- containerPort: 3306
volumeMounts:
# name must match the volume name below
- name: mysql-persistent-storage
# mount path within the container
mountPath: /var/lib/mysql
volumes:
- name: mysql-persistent-storage
source:
persistentDisk:
# This GCE PD must already exist and be formatted ext4
pdName: mysql-disk
fsType: ext4
labels:
name: mysql
kind: Pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment