Skip to content
New issue

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

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

Already on GitHub? # to your account

Updated API version in k8s-job.yaml #95

Open
kureka77 opened this issue Jan 7, 2023 · 0 comments
Open

Updated API version in k8s-job.yaml #95

kureka77 opened this issue Jan 7, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kureka77
Copy link

kureka77 commented Jan 7, 2023

Hi, I'm new to kubernetes and I was trying to schedule the synchronisation using kubectl. However, I think I've found a bug in config file k8s-job.yaml.

  1. After running in a terminal: "% kubectl apply -f k8s-job.yaml"

  2. It threw the error: "error: resource mapping not found for name: "withings-garmin-sync" namespace: "" from "k8s-job.yaml": no matches for kind "CronJob" in version "batch/v1beta1" ensure CRDs are installed first"

  3. I fixed it by changing Cronjob kind in the yaml script:
    from: "apiVersion: batch/v1beta1" -> to: "apiVersion: batch/v1"

  4. It passed through resulting in: cronjob.batch/withings-garmin-sync created

@longstone longstone added bug Something isn't working help wanted Extra attention is needed labels Sep 29, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants