Skip to content

Commit 6c2cab8

Browse files
authored
docs: storage recommendation (#1149)
1 parent aed07e1 commit 6c2cab8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/microk8s/mk8s/k8s-microk8s.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@ microk8s enable metrics-server
5656
microk8s status --wait-ready
5757
```
5858

59+
**_NOTE:_**
60+
PersistentVolumeClaims created by the `hostpath storage provisioner` are bound to the local node,
61+
so it is impossible to move them to a different node. A hostpath volume can grow beyond the capacity set in
62+
the volume claim manifest. For production environment it is recommended to use different storage for mongo and redis pvc,
63+
for example openebs.
64+
65+
```bash
66+
microk8s enable openebs
67+
```
68+
Configuration file:
69+
```bash
70+
mongodb:
71+
persistence:
72+
storageClass: "openebs-hostpath"
73+
redis:
74+
global:
75+
storageClass: "openebs-hostpath"
76+
```
77+
5978
Install the DNS server for microk8s and configure the forwarding DNS servers. Replace the IP addressed below (opendns) with
6079
the allowed values for your network:
6180

0 commit comments

Comments
 (0)