Skip to content

Instantly share code, notes, and snippets.

@tanan
Last active January 21, 2018 08:33
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 tanan/f254c0c6acb0381b2f0c0433415295d3 to your computer and use it in GitHub Desktop.
Save tanan/f254c0c6acb0381b2f0c0433415295d3 to your computer and use it in GitHub Desktop.
spec:
containers:
- image: mysql:5.6
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysql
key: password
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
volumes:
- name: mysql-persistent-storage
gcePersistentDisk:
pdName: mysql-disk
fsType: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment