mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-24 14:08:23 +00:00
33 lines
697 B
YAML
33 lines
697 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: mysql
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: mysql
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: mysql
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: mysql
|
||
|
image: mysql:5.6.36
|
||
|
env:
|
||
|
- name: MYSQL_ROOT_PASSWORD
|
||
|
valueFrom:
|
||
|
configMapKeyRef:
|
||
|
name: mysql-config
|
||
|
key: MYSQL_ROOT_PASSWORD
|
||
|
ports:
|
||
|
- containerPort: 3306
|
||
|
volumeMounts:
|
||
|
- mountPath: /var/lib/mysql
|
||
|
name: data
|
||
|
volumes:
|
||
|
- name: data
|
||
|
persistentVolumeClaim:
|
||
|
claimName: mysql
|