-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Unable to create jobs #589
Comments
It seems to be an issue with the objects, if I send a dictionary it is fine. It might have to do with |
I too am stuck with the same problem as reported by @pvanderlinden . By any chance is there a solution available. My use case demands to create Environment variables on the run time when I am creating the K8-Job / Pod. We are creating K8-jobs from an application flow. using YAML doesn't seem to be flexible to do this. |
@shanit-saha What I found working the best so far is using a yaml file as template, then with python code fill in the blanks (as it is just basic python structures then (dicts, lists, strings, etc) |
@pvanderlinden : Thank You ! for the response and advise. 'BatchV1Api' object has no attribute 'select_header_accept'
|
@shanit-saha It sounds like you still read it into an object?
|
Same here, Still there is resolution? |
@dsever : I had no issues to create pod and other stuff with the python kubernetes API except for the job object. I have no knowledge if a fix or soultion available with the K8-Api for Job object. The sample python code synopsys below I think should help.
|
At the end I resolved problem by creating spec key manually. |
Fix, should I submit a PR?
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
File "/home/koder/workspace/ceph-kaas-controller/ceph_controller/main.py", line 344, in set_node_labels during CoreV1Api().list_nodes() |
/remove-lifecycle stale for #589 (comment), the error message is from apiserver as the request is invalid, job only supports I see we are lacking documentation/examples around job creation. I put together a small example in #872 (comment). Contribution to improve our documentation/examples is welcome |
Closing as the original question was intended behavior |
I'm trying the client, but I run into several issues, the main issue at the moment is that I'm unable to create jobs with the client, the code:
The output:
basicly it ignores the actually restartPolicy, or I am doing something wrong.
The underlying issue is documentation and inconsistency:
The text was updated successfully, but these errors were encountered: