-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix docs and references on mayastore storage #9068
base: main
Are you sure you want to change the base?
Conversation
value: | ||
- destination: /var/local | ||
type: bind | ||
source: /var/lib/local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While mayastore recommends /var/lib/local
i think /var/lib/openebs
might be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should match I guess something in the installed helm chart?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am suggesting for the source. Lets leave destination as it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the mount path difference /var/local
vs. /var/lib/local
intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Openebs suggests /var/local
- https://openebs.io/docs/Solutioning/openebs-on-kubernetes-platforms/talos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
)