Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It does unnecessary download inside Kubernetes #67

Open
barislegion opened this issue Sep 19, 2024 · 1 comment
Open

It does unnecessary download inside Kubernetes #67

barislegion opened this issue Sep 19, 2024 · 1 comment

Comments

@barislegion
Copy link

barislegion commented Sep 19, 2024

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
@JimFuller-RedHat
Copy link

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants