curl-container icon indicating copy to clipboard operation
curl-container copied to clipboard

It does unnecessary download inside Kubernetes

Open barislegion opened this issue 1 year ago • 1 comments

When I run container on my local I get only the response from my end point. But inside Kubernetes I see unnecessary download output as if I added -o to my commands but I didn't. So I can't get clear JSON output from my REST endpoint.

Kubernetes: 1.23.x image: curlimages/curl:8.10.1

I use it with Kubernetes cronjobs.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: hello
spec:
  schedule: "* * * * *"
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 1
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: curl-job
            image: curlimages/curl:8.10.1
            imagePullPolicy: IfNotPresent
            args:
            - -X
            - POST
            - https://my-api-end-point
          restartPolicy: OnFailure

barislegion avatar Sep 19 '24 22:09 barislegion

with little information am almost certain to conclude this is unrelated to curl or the container but if you provide output and a bit more description of what curl is posting we can maybe guess ...

JimFuller-RedHat avatar Oct 05 '24 12:10 JimFuller-RedHat

Not able to reproduce - without any additional info going to close this - please re-open if you can provide more information on how to reproduce. This is almost certainly not a curl/curl-container issue.

xquery avatar Feb 06 '25 06:02 xquery