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 · 0 comments
Open

It does unnecessary download inside Kubernetes #67

barislegion opened this issue Sep 19, 2024 · 0 comments

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

1 participant