Skip to content

Commit

Permalink
docs: storage recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajasnosz committed Jan 10, 2025
1 parent 51a99d3 commit ea81161
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/microk8s/mk8s/k8s-microk8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@ microk8s enable metrics-server
microk8s status --wait-ready
```

**_NOTE:_**
PersistentVolumeClaims created by the `hostpath storage provisioner` are bound to the local node,
so it is impossible to move them to a different node. A hostpath volume can grow beyond the capacity set in
the volume claim manifest. For production environment it is recommended to use different storage for mongo and redis pvc,
for example openebs.

```bash
microk8s enable openebs
```
Configuration file:
```bash
mongodb:
persistence:
storageClass: "openebs-hostpath"
redis:
global:
storageClass: "openebs-hostpath"
```

Install the DNS server for microk8s and configure the forwarding DNS servers. Replace the IP addressed below (opendns) with
the allowed values for your network:

Expand Down

0 comments on commit ea81161

Please sign in to comment.