kubernetes-retired / csi-driver-image-populator

[EOL] CSI driver that uses a container image as a volume
Apache License 2.0
90 stars 23 forks source link

Does not work against Kubernetes 1.25.0 KIND cluster #21

Closed tamalsaha closed 1 year ago

tamalsaha commented 2 years ago

I tried the example in the README file. The ngix pods stays in ContainerCreating phase. I tried using KIND 1.25.0 cluster on M1 laptop.

> k get pods
NAME                    READY   STATUS              RESTARTS   AGE
csi-imageplugin-cffgj   2/2     Running             0          2m34s
nginx                   0/1     ContainerCreating   0          87s

> k describe pods nginx
Name:             nginx
Namespace:        default
Priority:         0
Service Account:  default
Node:             kind-control-plane/172.18.0.2
Start Time:       Thu, 15 Sep 2022 09:57:07 -0700
Labels:           <none>
Annotations:      <none>
Status:           Pending
IP:
IPs:              <none>
Containers:
  nginx:
    Container ID:
    Image:          nginx:1.13-alpine
    Image ID:
    Port:           80/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /usr/share/nginx/html from data (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-h78xh (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  data:
    Type:              CSI (a Container Storage Interface (CSI) volume source)
    Driver:            image.csi.k8s.io
    FSType:
    ReadOnly:          false
    VolumeAttributes:      image=kfox1111/misc:test
  kube-api-access-h78xh:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason       Age                 From               Message
  ----     ------       ----                ----               -------
  Normal   Scheduled    101s                default-scheduler  Successfully assigned default/nginx to kind-control-plane
  Warning  FailedMount  34s (x8 over 101s)  kubelet            MountVolume.SetUp failed for volume "data" : rpc error: code = Unknown desc = exit status 1
kfox1111 commented 2 years ago

Never have tested it in kind. As it does require nested containerization, I'd be a bit worried how deep the nesting is at that point. buildah in k8s in docker.