<p><strong>I would like to sh myself inside a kubernetes pod and execute a CURL command. Unfortunatly I can't find anywhere a working image with curl availble (and compatible with kubernetes)...</strong></p>

<ol>
<li>I tried some docker images with Alpine and CURL but each time it ended with crashLoopBackOff. I guess it means the container exited because the docker image exits after executing itself...</li>
<li>I also tried using the image of alpine and ubuntu alone but each time it also ended with crashloopBackOff.</li>
<li>I manage to exec in a few images but it never had CURL installed and neither APT-GET or APK were working.</li>
</ol>

<p>To exec into a container I'm doing a simple <code>kubectl exec -it POD_ID /bin/bash</code></p>

<p><em>Does someone knows of a minimal docker image that contains a CURL binary and wont crash in kubernetes ?</em></p>

<p>PS: This is for testing purpose so it does not need to be rock solid or anything</p>

<p>Thx</p>

<hr>

<p>UPDATE 1 
This is the yaml I use to deploy all potential image :</p>

<pre><code>apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: blue
  namespace: default
spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: blue
    spec:
      containers:
      - name: blue-website
        image: SOME_IMAGE:latest
        resources:
          requests:
            cpu: 0.1
            memory: 200
</code></pre>

<p>I don't think that its broken because it works on certain image.</p>

<p>You can skip the manifest and use <code>kubectl run</code> to spin up one of these pods on demand.
i.e.</p>
<pre><code>kubectl run curl -it --rm --image=curlimages/curl -- sh
</code></pre>
<p>This would create a deployment named <code>curl</code> from the <code>curlimages/curl</code> image and give you an interactive (<code>-it</code>) shell inside it. When you exit, the deployment will be deleted (<code>--rm</code>).</p>
