Skip to content

Instantly share code, notes, and snippets.

@yudaykiran
Created February 16, 2017 09:35
Show Gist options
  • Save yudaykiran/b841c3a0089a36203db5c205da117b8b to your computer and use it in GitHub Desktop.
Save yudaykiran/b841c3a0089a36203db5c205da117b8b to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Pod
metadata:
name: mysql
labels:
name: mysql
spec:
containers:
- resources:
limits:
cpu: 0.5
name: mysql
image: mysql
env:
- name: MYSQL_ROOT_PASSWORD
value: k8sDem0
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- mountPath: /var/lib/mysql
name: mysql-persistant-storage
volumes:
- name: mysql-persistant-storage
iscsi:
targetPortal: 172.28.128.101:3260
iqn: iqn.2016-09.com.openebs.jiva:demo-vsm1-vol1
lun: 0
fsType: ext4
readOnly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment