2019-11-16 10:38:21 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: mariadb
|
|
|
|
namespace: authelia
|
|
|
|
labels:
|
|
|
|
app: mariadb
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: mariadb
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: mariadb
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: mariadb
|
2023-02-17 23:10:00 +00:00
|
|
|
image: mariadb:10.11.2
|
2019-11-16 10:38:21 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3306
|
2022-12-12 23:15:32 +00:00
|
|
|
readinessProbe:
|
|
|
|
tcpSocket:
|
|
|
|
port: 3306
|
|
|
|
periodSeconds: 1
|
2019-11-16 10:38:21 +00:00
|
|
|
env:
|
|
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
|
|
value: rootpassword
|
|
|
|
- name: MYSQL_USER
|
|
|
|
value: admin
|
|
|
|
- name: MYSQL_PASSWORD
|
|
|
|
value: password
|
|
|
|
- name: MYSQL_DATABASE
|
|
|
|
value: authelia
|
2021-04-10 20:51:00 +00:00
|
|
|
...
|
2019-11-16 10:38:21 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: mariadb-service
|
|
|
|
namespace: authelia
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: mariadb
|
|
|
|
ports:
|
2021-04-10 20:51:00 +00:00
|
|
|
- protocol: TCP
|
|
|
|
port: 3306
|
|
|
|
...
|