openebs-archive / jiva-operator

Kubernetes Operator for managing Jiva Volumes via custom resource.
https://openebs.io
Apache License 2.0
46 stars 44 forks source link

Jiva Volume is not getting mounted on the pod and no error is raised #197

Closed frasmarco closed 2 years ago

frasmarco commented 2 years ago

Jiva is freshely installed but when tring to create the first JV the pod ends mounting directly the host /var FS but not the volume:

apiVersion: v1
kind: Pod
metadata:
  name: task-pv-pod
spec:
  volumes:
    - name: task-pv-storage
      persistentVolumeClaim:
        claimName: task-pv-claim
  containers:
    - name: task-pv-container
      image: nginx
      ports:
        - containerPort: 80
          name: "http-server"
      volumeMounts:
        - mountPath: "/usr/share/nginx/html"
          name: task-pv-storage
frasmarco commented 2 years ago

This has been the result of using MicroK8s, specifing kubeletDir: "/var/snap/microk8s/common/var/lib/kubelet/" solved the issue.

mike-pisman commented 1 year ago

Hi, @frasmarco, I'm trying out openebs jiva and also having issues with mounting the pvc. The pvc is created successfully though. Can you clarify where to put kubeletDir ?

xyhhx commented 10 months ago

@mike-pisman I know this is late, but it's configured in the chart