clean up
This commit is contained in:
parent
aca915c22b
commit
23f5a98b3c
1 changed files with 0 additions and 40 deletions
|
|
@ -1,43 +1,3 @@
|
||||||
# from kubernetes import client, config
|
|
||||||
|
|
||||||
# # Load the kubeconfig file
|
|
||||||
# config.load_kube_config()
|
|
||||||
|
|
||||||
# # Create an instance of the Kubernetes API client
|
|
||||||
# api_instance = client.BatchV1Api()
|
|
||||||
|
|
||||||
# # Define the job specification
|
|
||||||
# job_spec = {
|
|
||||||
# "template": {
|
|
||||||
# "metadata": {"labels": {"app": "python-pipeline"}},
|
|
||||||
# "spec": {
|
|
||||||
# "containers": [
|
|
||||||
# {
|
|
||||||
# "name": "python-pipeline",
|
|
||||||
# "image": "dummypipe",
|
|
||||||
# "resources": {
|
|
||||||
# "requests": {"memory": "512Mi"},
|
|
||||||
# "limits": {"memory": "1Gi"},
|
|
||||||
# },
|
|
||||||
# "cpu": {"requests": "0.5", "limits": "1"},
|
|
||||||
# "command": ["python", "pipeline.py"],
|
|
||||||
# }
|
|
||||||
# ]
|
|
||||||
# },
|
|
||||||
# },
|
|
||||||
# }
|
|
||||||
|
|
||||||
# # Create the job object
|
|
||||||
# job = client.V1Job(
|
|
||||||
# api_version="apps/v1",
|
|
||||||
# kind="Job",
|
|
||||||
# metadata=client.V1ObjectMeta(name="python-pipeline"),
|
|
||||||
# spec=client.V1JobSpec(**job_spec),
|
|
||||||
# )
|
|
||||||
|
|
||||||
# # Create the job in the jobrunner namespace
|
|
||||||
# api_instance.create_namespaced_job(namespace="jobrunner", body=job)
|
|
||||||
|
|
||||||
from kubernetes import client, config
|
from kubernetes import client, config
|
||||||
import string
|
import string
|
||||||
import random
|
import random
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue