Fix docs and references on mayastore storage#9068
Fix docs and references on mayastore storage#9068blmhemu wants to merge 1 commit intosiderolabs:mainfrom
Conversation
| value: | ||
| - destination: /var/local | ||
| type: bind | ||
| source: /var/lib/local |
There was a problem hiding this comment.
While mayastore recommends /var/lib/local i think /var/lib/openebs might be better.
There was a problem hiding this comment.
it should match I guess something in the installed helm chart?
There was a problem hiding this comment.
I am suggesting for the source. Lets leave destination as it is.
There was a problem hiding this comment.
there's something broken here.
I guess there's somewhere hostPath volume mount for /var/lib/local. So on the host path is /var/lib/local. If the path on the kubelet mount is different (like in this PR), this won't work well, as for the kubelet /var/lib/local would not exist.
| - op: add | ||
| path: /machine/kubelet/extraMounts | ||
| value: | ||
| - destination: /var/local |
There was a problem hiding this comment.
is the mount path difference /var/local vs. /var/lib/local intentional?
There was a problem hiding this comment.
Openebs suggests /var/local - https://openebs.io/docs/Solutioning/openebs-on-kubernetes-platforms/talos
There was a problem hiding this comment.
I mean that mounting under different paths is an unusual thing, as usually you want kubelet to see same path structure as the host, otherwise some features won't work
There was a problem hiding this comment.
I see this one of the templates
---
{{ if and .Values.etcd.persistence.enabled (eq .Values.etcd.persistence.storageClass "manual") }}
{{- range $index, $end := until (.Values.etcd.replicaCount | int) }}
apiVersion: v1
kind: PersistentVolume
metadata:
name: etcd-volume-{{ $index }}
labels:
statefulset.kubernetes.io/pod-name: {{ print $.Release.Name }}-etcd-{{ $index }}
spec:
storageClassName: manual
# You must also delete the hostpath on the node
persistentVolumeReclaimPolicy: {{ $.Values.etcd.persistence.reclaimPolicy }}
capacity:
storage: {{ $.Values.etcd.persistence.size | quote }}
accessModes:
- ReadWriteOnce
hostPath:
path: "/var/local/{{ $.Release.Name }}/etcd/pod-{{ $index }}"
---
{{- end }}
{{- end }}
There was a problem hiding this comment.
All instances (of /var/local) use /var/local/{{ $.Release.Name }} prefix - so i guess we can safely make it /var/local/openebs ?
|
Also, FWIW, here is the configuration for my single node cluster which works - note the io_engine. |
|
This PR is stale because it has been open 45 days with no activity. |
Pull Request
What? (description)
Incorrect / outdated docs on mayastore.
Why? (reasoning)
For future users to benefit from the updated docs.
Acceptance
Please use the following checklist:
make conformance)make fmt)make lint)make docs)make unit-tests)