Skip to content

Commit c6c2df4

Browse files
committed
fix(k8s/mongo.yaml): Fix missing mongodb manifest
Manifest is missing, while it is very important for service. Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 53f962e commit c6c2df4

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

kube/aks/mongo.yaml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
# SPDX-License-Identifier: LGPL-2.1-or-later
3+
#
4+
# Copyright (C) 2023 Collabora Limited
5+
# Author: Guillaume Tucker <[email protected]>
6+
apiVersion: apps/v1
7+
kind: Deployment
8+
metadata:
9+
name: mongo
10+
namespace: kernelci-api
11+
spec:
12+
replicas: 1
13+
selector:
14+
matchLabels:
15+
app: mongo
16+
template:
17+
metadata:
18+
labels:
19+
app: mongo
20+
spec:
21+
containers:
22+
- name: mongo
23+
image: mongo:6
24+
resources:
25+
requests:
26+
memory: "10Gi"
27+
cpu: "2"
28+
volumeMounts:
29+
- name: mongo-persistent-storage
30+
mountPath: /data/db
31+
ports:
32+
- containerPort: 27017
33+
volumes:
34+
- name: mongo-persistent-storage
35+
persistentVolumeClaim:
36+
claimName: mongo-persistent-storage-claim2
37+
---
38+
apiVersion: v1
39+
kind: Service
40+
metadata:
41+
name: mongo
42+
namespace: kernelci-api
43+
spec:
44+
ports:
45+
- port: 27017
46+
selector:
47+
app: mongo
48+
---
49+
apiVersion: v1
50+
kind: PersistentVolumeClaim
51+
metadata:
52+
annotations:
53+
name: mongo-persistent-storage-claim2
54+
namespace: kernelci-api
55+
spec:
56+
accessModes:
57+
- ReadWriteOnce
58+
resources:
59+
requests:
60+
storage: 15Gi
61+
storageClassName: managed-csi-premium
62+
volumeMode: Filesystem
63+
volumeName: pvc-254329bd-3d3c-4601-a3f6-c8733db3aab5
64+
---
65+
apiVersion: v1
66+
kind: PersistentVolume
67+
metadata:
68+
annotations:
69+
pv.kubernetes.io/provisioned-by: disk.csi.azure.com
70+
finalizers:
71+
- external-provisioner.volume.kubernetes.io/finalizer
72+
- kubernetes.io/pv-protection
73+
- external-attacher/disk-csi-azure-com
74+
name: pvc-254329bd-3d3c-4601-a3f6-c8733db3aab5
75+
spec:
76+
accessModes:
77+
- ReadWriteOnce
78+
capacity:
79+
storage: 15Gi
80+
claimRef:
81+
apiVersion: v1
82+
kind: PersistentVolumeClaim
83+
name: mongo-persistent-storage-claim2
84+
namespace: kernelci-api
85+
csi:
86+
driver: disk.csi.azure.com
87+
volumeAttributes:
88+
csi.storage.k8s.io/pv/name: pvc-254329bd-3d3c-4601-a3f6-c8733db3aab5
89+
csi.storage.k8s.io/pvc/name: mongo-persistent-storage-claim2
90+
csi.storage.k8s.io/pvc/namespace: kernelci-api
91+
skuname: Premium_LRS
92+
nodeAffinity:
93+
required:
94+
nodeSelectorTerms:
95+
- matchExpressions:
96+
- key: topology.disk.csi.azure.com/zone
97+
operator: In
98+
values:
99+
- ""
100+
persistentVolumeReclaimPolicy: Delete
101+
storageClassName: managed-csi-premium
102+
volumeMode: Filesystem

0 commit comments

Comments
 (0)