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/88a8740e3946ba55125b to your computer and use it in GitHub Desktop.
Save amygdala/88a8740e3946ba55125b to your computer and use it in GitHub Desktop.
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