If False (default): do nothing, If True: delete the pod Is_delete_operator_pod ( bool) – What to do when the pod reaches its final airflow/xcom/return.json in the container will also be pushed to an (templated)ĭo_xcom_push ( bool) – If do_xcom_push is True, the content of the file Node_selectors ( dict) – A dict containing a group of scheduling rules.Ĭonfig_file ( str) – The path to the Kubernetes config file. See also kubernetes.io/docs/concepts/configuration/manage-compute-resources-containerĪffinity ( dict) – A dict containing a group of affinity scheduling rules. Possible keys are request_memory, request_cpu, limit_memory, limit_cpu,Īnd limit_gpu, which will be used to generate. Resources ( dict) – A dict containing resources requests and limits. Get_logs ( bool) – get the stdout of the container as logs of the tasks.Īnnotations ( dict) – non-identifying metadata you can attach to the Pod.Ĭan be a large range of data, and can include characters In_cluster ( bool) – run kubernetes client with in_cluster configuration.Ĭluster_context ( str) – context that points to kubernetes cluster. They can be exposed as environment vars or files in a volume Secrets ( list ) – Kubernetes secrets to inject in the container. Generate a pod id (DNS-1123 subdomain, containing only ).Įnv_vars ( dict) – Environment variables initialized in the container. Name ( str) – name of the pod in which the task will run, will be used to Startup_timeout_seconds ( int) – timeout in seconds to startup the pod. Labels ( dict) – labels to apply to the Pod. Includes ConfigMaps and PersistentVolumes. Volumes ( list ) – volumes for launched pod. Volume_mounts ( list ) – volumeMounts for launched pod. If more than one secret is required, provide a Image_pull_secrets ( str) – Any image pull secrets to be given to the pod. Image_pull_policy ( str) – Specify a policy to cache or always pull an image. The docker image’s CMD is used if this is not provided. The docker images’s entrypoint is used if this is not provided.Īrguments ( list ) – arguments of the entrypoint. Namespace ( str) – the namespace to run within kubernetes.Ĭmds ( list ) – entrypoint of the container. Defaults to ,īut fully qualified URLS will point to custom repositories. ![]() ![]() Image ( str) – Docker image you wish to launch. KubernetesPodOperator ( namespace, image, name, cmds = None, arguments = None, ports = None, volume_mounts = None, volumes = None, env_vars = None, secrets = None, in_cluster = None, cluster_context = None, labels = None, startup_timeout_seconds = 120, get_logs = True, image_pull_policy = 'IfNotPresent', annotations = None, resources = None, affinity = None, config_file = None, node_selectors = None, image_pull_secrets = None, service_account_name = 'default', is_delete_operator_pod = False, hostnetwork = False, tolerations = None, configmaps = None, security_context = None, pod_runtime_info_envs = None, dnspolicy = None, do_xcom_push = False, * args, ** kwargs ) ¶Įxecute a task in a Kubernetes Pod Parameters
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |