Skip to content

Failed to pull image with runtimeclass:enclave-cc #515

@yumin-l

Description

@yumin-l

I'm trying to launch a pod using enclave-cc runtimeclass, but it always stuck at the image pulling step. Here's the logs and the manifest i used to create the pod. I've already add the proxy to the containerd service and if i create a pod with the default runtimeclass, the image can be pulled successfully.
Could any one give me some clue how to fix this?

Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  2m23s                default-scheduler  Successfully assigned default/ubuntu-test-enclavecc to ubuntu
  Warning  Failed     62s                  kubelet            Failed to pull image "ubuntu:24.04": rpc error: code = DeadlineExceeded desc = context deadline exceeded
  Warning  Failed     62s                  kubelet            Error: ErrImagePull
  Normal   BackOff    62s                  kubelet            Back-off pulling image "ubuntu:24.04"
  Warning  Failed     62s                  kubelet            Error: ImagePullBackOff
  Normal   Pulling    48s (x2 over 2m23s)  kubelet            Pulling image "ubuntu:24.04"
apiVersion: v1
kind: Pod
metadata:
  labels:
    run: ubuntu
  name: ubuntu-test-enclavecc
spec:
  containers:
    #- image: bitnami/nginx:1.22.0
    - image: ubuntu:24.04
      imagePullPolicy: IfNotPresent
      args: ["sleep inf"]
      command: ["/bin/bash", "-c", "--"]
      name: ubuntu-test
  runtimeClassName: enclave-cc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions