Skip to content

Commit 8635595

Browse files
committed
Kubernetes: Add db management manifests
Signed-off-by: NotHarshhaa <reddyharshhaa12@gmail.com>
1 parent 0db1746 commit 8635595

File tree

3 files changed

+141
-0
lines changed

3 files changed

+141
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: adminer
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: adminer
10+
template:
11+
metadata:
12+
labels:
13+
app: adminer
14+
spec:
15+
containers:
16+
- name: adminer
17+
image: adminer
18+
ports:
19+
- containerPort: 8080
20+
21+
---
22+
apiVersion: v1
23+
kind: Service
24+
metadata:
25+
name: adminer
26+
spec:
27+
ports:
28+
- port: 8080
29+
nodePort: 30433
30+
selector:
31+
app: adminer
32+
type: NodePort
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: cloudbeaver
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 10Gi
11+
---
12+
apiVersion: apps/v1
13+
kind: Deployment
14+
metadata:
15+
name: cloudbeaver
16+
spec:
17+
replicas: 1
18+
selector:
19+
matchLabels:
20+
app: cloudbeaver
21+
template:
22+
metadata:
23+
labels:
24+
app: cloudbeaver
25+
spec:
26+
volumes:
27+
- name: workspace
28+
persistentVolumeClaim:
29+
claimName: cloudbeaver
30+
containers:
31+
- name: cloudbeaver
32+
image: dbeaver/cloudbeaver:23.2.5
33+
ports:
34+
- containerPort: 8978
35+
volumeMounts:
36+
- mountPath: /opt/cloudbeaver/workspace
37+
name: workspace
38+
39+
---
40+
apiVersion: v1
41+
kind: Service
42+
metadata:
43+
name: cloudbeaver
44+
spec:
45+
ports:
46+
- port: 8978
47+
nodePort: 30433
48+
selector:
49+
app: cloudbeaver
50+
type: NodePort
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
apiVersion: v1
3+
kind: PersistentVolumeClaim
4+
metadata:
5+
name: pgadmin
6+
spec:
7+
accessModes:
8+
- ReadWriteOnce
9+
resources:
10+
requests:
11+
storage: 10Gi
12+
---
13+
apiVersion: apps/v1
14+
kind: Deployment
15+
metadata:
16+
name: pgadmin
17+
spec:
18+
replicas: 1
19+
selector:
20+
matchLabels:
21+
app: pgadmin
22+
template:
23+
metadata:
24+
labels:
25+
app: pgadmin
26+
spec:
27+
containers:
28+
- env:
29+
- name: PGADMIN_DEFAULT_EMAIL
30+
value: admin@example.com
31+
- name: PGADMIN_DEFAULT_PASSWORD
32+
value: keyboardcat
33+
- name: PGADMIN_PORT
34+
value: "80"
35+
image: dpage/pgadmin4
36+
name: pgadmin
37+
ports:
38+
- containerPort: 80
39+
volumeMounts:
40+
- mountPath: /var/lib/pgadmin
41+
name: pgadmin
42+
volumes:
43+
- name: pgadmin
44+
persistentVolumeClaim:
45+
claimName: pgadmin
46+
---
47+
apiVersion: v1
48+
kind: Service
49+
metadata:
50+
labels:
51+
app: pgadmin
52+
name: pgadmin
53+
spec:
54+
ports:
55+
- nodePort: 30165
56+
port: 80
57+
selector:
58+
app: pgadmin
59+
type: NodePort

0 commit comments

Comments
Β (0)