Skip to content

Problem debugging with EphemeralContainers #885

Answered by iwilltry42
ffatghub asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ffatghub , thanks for starting this discussion and sorry for my late reply!
@sgandon , thanks for chiming in here 🙏

So far, you've enabled the feature gate at the API-Server and you may have to enable it on the kube-scheduler and the kubelets as well:

k3d cluster create k3d-122 -i rancher/k3s:v1.22.3-k3s1 -a 4 --k3s-arg '--kube-apiserver-arg=feature-gates=EphemeralContainers=true@server:*' --k3s-arg='--kube-scheduler-arg=feature-gates=EphemeralContainers=true@server:* --k3s-arg='--kubelet-arg=feature-gates=EphemeralContainers=true@agent:*''

At least this worked for with the following commands:

$ kubectl run ephemeral-demo --image=k8s.gcr.io/pause:3.1 --restart=Never --overrides='{ "sp…

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ffatghub
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #834 on December 10, 2021 12:34.