0

I am using this guide for deploying Spiffe on K8s Cluster "https://spiffe.io/docs/latest/try/getting-started-k8s/"

One of the steps in this process is running the command "kubectl apply -f client-deployment.yaml" which deploys spiffe client agent.

But the pods keeps on getting in the error state

Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "sleep": executable file not found in $PATH: unknown

Image used : ghcr.io/spiffe/spire-agent:1.5.1

Veera Nagireddy
  • 1,656
  • 1
  • 3
  • 12

1 Answers1

1

It seems connected to this PR from 3 days ago (there is no longer a "sleep" executable in the image).

SPIRE is moving away from the alpine Docker release images in favor of scratch images that contain only the release binary to minimize the size of the images and include only the software that is necessary to run in the container.

You should report the issue and use

gcr.io/spiffe-io/spire-agent:1.2.3

(the last image they used) meanwhile.

OmriS
  • 81
  • 4
  • It seems the issue is also present in image 1.5.0. Simply changed the deployment file to 1.5.0 still same error – Shubham Gupta Dec 19 '22 at 05:53
  • You are right, the last image they used was: gcr.io/spiffe-io/spire-agent:1.2.3 (as seen in the PR) – OmriS Dec 19 '22 at 09:16