8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
33 lines
743 B
YAML
33 lines
743 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: mysql
|
|
labels:
|
|
name: mysql
|
|
spec:
|
|
containers:
|
|
- resources:
|
|
limits :
|
|
cpu: 0.5
|
|
image: mysql
|
|
name: mysql
|
|
args:
|
|
- "--ignore-db-dir"
|
|
- "lost+found"
|
|
env:
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
# change this
|
|
value: yourpassword
|
|
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
|
|
cinder:
|
|
volumeID: bd82f7e2-wece-4c01-a505-4acf60b07f4a
|
|
fsType: ext4
|