jupyterhub / action-k3s-helm

A GitHub action to install K3S, Calico, and Helm.
BSD 3-Clause "New" or "Revised" License
25 stars 6 forks source link

Calico not compatible with latest k3s 1.29 version #112

Closed consideRatio closed 5 months ago

consideRatio commented 5 months ago

From test failure: https://github.com/jupyterhub/action-k3s-helm/actions/runs/8862514017/job/24335556591

Important part

    Normal   Pulled     9m44s                   kubelet            Successfully pulled image "docker.io/calico/cni:v3.27.0" in 2.722s (2.722s including waiting)
    Warning  Failed     7m35s (x12 over 9m44s)  kubelet            Error: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /opt/cni/bin

Full kubectl describe of calico-node pod

  ### $ kubectl describe pod/calico-node-65blj
  Name:                 calico-node-65blj
  Namespace:            kube-system
  Priority:             2000001000
  Priority Class Name:  system-node-critical
  Service Account:      calico-node
  Node:                 fv-az1153-853/10.1.0.67
  Start Time:           Sat, 27 Apr 2024 20:53:03 +0000
  Labels:               controller-revision-hash=8f9b7d498
                        k8s-app=calico-node
                        pod-template-generation=1
  Annotations:          <none>
  Status:               Pending
  IP:                   10.1.0.67
  IPs:
    IP:           10.1.0.67
  Controlled By:  DaemonSet/calico-node
  Init Containers:
    upgrade-ipam:
      Container ID:  
      Image:         docker.io/calico/cni:v3.27.0
      Image ID:      
      Port:          <none>
      Host Port:     <none>
      Command:
        /opt/cni/bin/calico-ipam
        -upgrade
      State:          Waiting
        Reason:       CreateContainerError
      Ready:          False
      Restart Count:  0
      Environment Variables from:
        kubernetes-services-endpoint  ConfigMap  Optional: true
      Environment:
        KUBERNETES_NODE_NAME:        (v1:spec.nodeName)
      Type:                    Projected (a volume that contains injected data from multiple sources)
      TokenExpirationSeconds:  3607
      ConfigMapName:           kube-root-ca.crt
      ConfigMapOptional:       <nil>
      DownwardAPI:             true
  QoS Class:                   Burstable
  Node-Selectors:              kubernetes.io/os=linux
  Tolerations:                 :NoSchedule op=Exists
                               :NoExecute op=Exists
                               CriticalAddonsOnly op=Exists
                               node.kubernetes.io/disk-pressure:NoSchedule op=Exists
                               node.kubernetes.io/memory-pressure:NoSchedule op=Exists
                               node.kubernetes.io/network-unavailable:NoSchedule op=Exists
                               node.kubernetes.io/not-ready:NoExecute op=Exists
                               node.kubernetes.io/pid-pressure:NoSchedule op=Exists
                               node.kubernetes.io/unreachable:NoExecute op=Exists
                               node.kubernetes.io/unschedulable:NoSchedule op=Exists
  Events:
    Type     Reason     Age                     From               Message
    ----     ------     ----                    ----               -------
    Normal   Scheduled  9m48s                   default-scheduler  Successfully assigned kube-system/calico-node-65blj to fv-az1153-853
    Normal   Pulling    9m47s                   kubelet            Pulling image "docker.io/calico/cni:v3.27.0"
    Normal   Pulled     9m44s                   kubelet            Successfully pulled image "docker.io/calico/cni:v3.27.0" in 2.722s (2.722s including waiting)
    Warning  Failed     7m35s (x12 over 9m44s)  kubelet            Error: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /opt/cni/bin