mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 08:20:23 +00:00
34 lines
743 B
YAML
34 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
|