39 lines
913 B
YAML
39 lines
913 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: mysql-playground
|
||
|
labels:
|
||
|
app: matomo-playground
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: matomo-playground
|
||
|
tier: mysql-playground
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: matomo-playground
|
||
|
tier: mysql-playground
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: mysql:8.0.31
|
||
|
name: mysql
|
||
|
env:
|
||
|
- name: MYSQL_ROOT_PASSWORD
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: mysql-pass
|
||
|
key: password
|
||
|
ports:
|
||
|
- containerPort: 3306
|
||
|
name: mysql
|
||
|
volumeMounts:
|
||
|
- name: mysql-persistent-storage
|
||
|
mountPath: /var/lib/mysql
|
||
|
volumes:
|
||
|
- name: mysql-persistent-storage
|
||
|
persistentVolumeClaim:
|
||
|
claimName: oleksii-mysql-pv-claim
|