It does unnecessary download inside Kubernetes
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
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 ...
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.