-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmariadb-deployment.yaml
More file actions
49 lines (49 loc) · 987 Bytes
/
Copy pathmariadb-deployment.yaml
File metadata and controls
49 lines (49 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mariadb
spec:
selector:
matchLabels:
app: mariadb
template:
metadata:
labels:
app: mariadb
spec:
containers:
- name: mariadb
image: linuxserver/mariadb:arm32v6-latest
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: MYSQL_ROOT_PASSWORD
value: "abc1"
- name: TZ
value: "Europe/London"
- name: MYSQL_DATABASE
value: "mariatest" #optional
- name: MYSQL_USER
value: "mariadb" #optional
- name: MYSQL_PASSWORD
value: "abc1" #optional
ports:
- name: tcp-01
containerPort: 3306
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: mariadb
spec:
ports:
- name: tcp-01
port: 3306
protocol: TCP
targetPort: 3306
selector:
app: mariadb
type: LoadBalancer