<p>I'm trying the <strong>debug</strong> CLI feature on 1.18 release of Kubernetes but I have an issue while I have executed debug command. </p>

<p>I have created a pod show as below.</p>

<pre><code>kubectl run ephemeral-demo --image=k8s.gcr.io/pause:3.1 --restart=Never

</code></pre>

<p>After than when running this command: <code>kubectl alpha debug -it ephemeral-demo --image=busybox --target=ephemeral-demo</code></p>

<p>Kubernetes is hanging like that : </p>

<pre><code>Defaulting debug container name to debugger-aaaa.
</code></pre>

<p>How Can I resolve that issue? </p>

Ayhan Balik
<p>It seems that you need to enable the feature gate on all control plane components as well as on the kubelets. If the feature is enabled partially (for instance, only kube-apiserver and kube-scheduler), the resources will be created in the cluster, but no containers will be created, thus there will be nothing to attach to.</p>
