-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathazurefile-mongodb.yaml
47 lines (47 loc) · 1009 Bytes
/
azurefile-mongodb.yaml
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
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: azurefile-mongo
provisioner: kubernetes.io/azure-file
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1001 #set as 1001 per https://github.com/bitnami/bitnami-docker-mariadb/issues/134#issuecomment-335107323
- gid=1001
parameters:
skuName: Standard_LRS
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-azurefile
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
storageClassName: azurefile-mongo
---
kind: Pod
apiVersion: v1
metadata:
name: mongodb-azurefile
spec:
containers:
- image: docker.io/bitnami/mongodb:4.0.2-debian-9
name: mongodb-azurefile
volumeMounts:
- name: mongoteststorage
mountPath: /bitnami
subPath: mongodata3
env:
- name: MONGODB_DATABASE1
value: "esclouddb"
ports:
- containerPort: 27017
volumes:
- name: mongoteststorage
persistentVolumeClaim:
claimName: pvc-azurefile