-
Notifications
You must be signed in to change notification settings - Fork 107
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
Microk8s - MountVolume.SetUp failed #547
Comments
@fornof Did you change the kubelet dir for the microk8s while installing zfs?
|
@fornof can you provide the information sought by @Abhinandan-Purkait here? #547 (comment) |
Meanwhile, we could fix documentation to cover these steps: https://github.com/openebs/zfs-localpv?tab=readme-ov-file#installation |
This can be closed as I am no longer working on getting zfs mounts for microk8s, I ended up just using docker compose for persistent storage/ host storage . |
Sure @fornof Feel free to reopen this if you come by this again. Thanks |
Can we keep this opened to track the doc changes? |
@avishnu We already have this documented in the repo readme. https://github.com/openebs/zfs-localpv?tab=readme-ov-file#installation We can reopen this if we feel it's needed to be added in the docs website. Probably an issue to track this on the website repo would be better place wdyt? |
Yes, it's not updated in the documentation clearly. |
Have reopened this. cc @balaharish7 |
This issue is documented in #499. |
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.]
#235 this is about what I'm running into, but I didn't see how to solve it in the ticket:
I tried again using a deployment mount and I get:
persistent volume:
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"kind": "PersistentVolumeClaim",
"metadata": {
"creationTimestamp": "2024-06-22T16:59:42Z",
"finalizers": [
"kubernetes.io/pvc-protection"
],
"labels": {
"app.kubernetes.io/component": "primary",
"app.kubernetes.io/instance": "postgres-bitnami",
"app.kubernetes.io/name": "postgresql"
},
"name": "data-postgres-bitnami-postgresql-0",
"namespace": "db",
"resourceVersion": "17057302",
"uid": "9a5bb71b-76d0-4a91-a84b-78eb5f9790ee"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "8Gi"
}
},
"volumeMode": "Filesystem"
},
"status": {
"phase": "Pending"
}
},
{
"apiVersion": "v1",
"kind": "PersistentVolumeClaim",
"metadata": {
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": "{"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{},"name":"postgres-fornof-zfs-pvc","namespace":"db"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"76Gi"}},"storageClassName":"openebs-zfspv-fornof"}}\n",
"pv.kubernetes.io/bind-completed": "yes",
"pv.kubernetes.io/bound-by-controller": "yes",
"volume.beta.kubernetes.io/storage-provisioner": "zfs.csi.openebs.io",
"volume.kubernetes.io/storage-provisioner": "zfs.csi.openebs.io"
},
"creationTimestamp": "2024-06-22T17:14:01Z",
"finalizers": [
"kubernetes.io/pvc-protection"
],
"name": "postgres-fornof-zfs-pvc",
"namespace": "db",
"resourceVersion": "17059608",
"uid": "3da01b7f-3eb3-427d-943d-42758527c8f2"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "76Gi"
}
},
"storageClassName": "openebs-zfspv-fornof",
"volumeMode": "Filesystem",
"volumeName": "pvc-3da01b7f-3eb3-427d-943d-42758527c8f2"
},
"status": {
"accessModes": [
"ReadWriteOnce"
],
"capacity": {
"storage": "76Gi"
},
"phase": "Bound"
}
}
],
"kind": "List",
"metadata": {
"resourceVersion": ""
}
}
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
data-postgres-bitnami-postgresql-0 Pending
44m
postgres-fornof-zfs-pvc Bound pvc-3da01b7f-3eb3-427d-943d-42758527c8f2 76Gi RWO openebs-zfspv-fornof 30m
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
openebs-hostpath openebs.io/local Delete WaitForFirstConsumer false 77m
openebs-zfspv-fornof zfs.csi.openebs.io Delete Immediate false 15h
NAME READY STATUS RESTARTS AGE
openebs-localpv-provisioner-7cd9f85f8f-6d7cp 1/1 Running 0 76m
openebs-zfs-localpv-controller-7fdcd7f65-74l55 5/5 Running 0 76m
openebs-zfs-localpv-node-6dn8t 2/2 Running 0 76m
NAME READY STATUS RESTARTS AGE
openebs-localpv-provisioner-7cd9f85f8f-6d7cp 1/1 Running 0 88m
openebs-zfs-localpv-controller-7fdcd7f65-74l55 5/5 Running 0 88m
openebs-zfs-localpv-node-6dn8t 2/2 Running 0 88m
kubectl get zv -A -o yaml
apiVersion: v1
items:
kind: ZFSVolume
metadata:
creationTimestamp: "2024-06-22T17:14:01Z"
finalizers:
generation: 2
labels:
kubernetes.io/nodename: media
name: pvc-3da01b7f-3eb3-427d-943d-42758527c8f2
namespace: openebs
resourceVersion: "17059601"
uid: 685593db-552a-4daa-838b-4b8137a30c1a
spec:
capacity: "81604378624"
compression: "off"
dedup: "off"
fsType: zfs
ownerNodeID: media
poolName: robin-makeup
recordsize: 128k
volumeType: DATASET
status:
state: Ready
kind: List
metadata:
resourceVersion: ""
Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1
The text was updated successfully, but these errors were encountered: