Last active
August 29, 2015 14:13
-
-
Save amygdala/88a8740e3946ba55125b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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