Created
March 20, 2017 14:17
-
-
Save kaparora/88b6a91182aeaa53c45de07df8aba799 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: v1 | |
kind: Pod | |
metadata: | |
name: mysql | |
labels: | |
name: mysql | |
spec: | |
containers: | |
- resources: | |
limits : | |
cpu: 0.5 | |
image: mysql:5.6 | |
name: mysql | |
env: | |
- name: MYSQL_ROOT_PASSWORD | |
# change this | |
value: netapp01 | |
ports: | |
- containerPort: 3306 | |
name: mysql | |
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 | |
persistentVolumeClaim: | |
# This GCE PD must already exist. | |
claimName: mysql-disk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment