Back to Blog
Airflow kubernetes secret5/15/2024 ![]() Is_delete_operator_pod ( bool) - What to do when the pod reaches its final Service_account_name ( str | None) - Name of the service account If more than one secret is required, provide a Image_pull_secrets ( list | None) - Any image pull secrets to be given to the pod. Node_selector ( dict | None) - A dict containing a group of scheduling rules. Node_selectors ( dict | None) - (Deprecated) A dict containing a group of scheduling rules. If not specified, default value is ~/.kube/config Image_pull_policy ( str | None) - Specify a policy to cache or always pull an image.Īnnotations ( dict | None) - non-identifying metadata you can attach to the Pod.Ĭan be a large range of data, and can include charactersĬontainer_resources ( k8s.V1ResourceRequirements | None) - resources for the launched pod.Īffinity ( k8s.V1Affinity | None) - affinity scheduling rules for the launched pod.Ĭonfig_file ( str | None) - The path to the Kubernetes config file. Get_logs ( bool) - get the stdout of the container as logs of the tasks. Startup_timeout_seconds ( int) - timeout in seconds to startup the pod. Labels ( dict | None) - labels to apply to the Pod. If False, always create a new pod for each try. Reattach_on_restart ( bool) - if the worker dies while the pod is running, reattach and monitorĭuring the next try. In_cluster ( bool | None) - run kubernetes client with in_cluster configuration.Ĭluster_context ( str | None) - context that points to kubernetes cluster. They can be exposed as environment vars or files in a volume. Secrets ( list | None) - Kubernetes secrets to inject in the container. (templated)Įnv_from ( list | None) - (Optional) List of sources to populate environment variables in the container. Includes ConfigMaps and PersistentVolumes.Įnv_vars ( list | None) - Environment variables initialized in the container. Volumes ( list | None) - volumes for the launched pod. Volume_mounts ( list | None) - volumeMounts for the launched pod. Ports ( list | None) - ports for the launched pod. 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 | None) - arguments of the entrypoint. Random_name_suffix ( bool | None) - if True, will generate a random suffix.Ĭmds ( list | None) - entrypoint of the container. Suffix if random_name_suffix is True) to generate a pod id (DNS-1123 subdomain, Name ( str | None) - name of the pod in which the task will run, will be used (plus a random Defaults to ,īut fully qualified URLS will point to custom repositories. ![]() Image ( str | None) - Docker image you wish to launch. Namespace ( str | None) - the namespace to run within kubernetes. Kubernetes_conn_id ( str | None) - The kubernetes connection id KubernetesPodOperator ( *, kubernetes_conn_id = None, namespace = None, image = None, name = None, random_name_suffix = True, cmds = None, arguments = None, ports = None, volume_mounts = None, volumes = None, env_vars = None, env_from = None, secrets = None, in_cluster = None, cluster_context = None, labels = None, reattach_on_restart = True, startup_timeout_seconds = 120, get_logs = True, image_pull_policy = None, annotations = None, container_resources = None, affinity = None, config_file = None, node_selectors = None, node_selector = None, image_pull_secrets = None, service_account_name = None, is_delete_operator_pod = True, hostnetwork = False, tolerations = None, security_context = None, container_security_context = None, dnspolicy = None, schedulername = None, full_pod_spec = None, init_containers = None, log_events_on_failure = False, do_xcom_push = False, pod_template_file = None, priority_class_name = None, pod_runtime_info_envs = None, termination_grace_period = None, configmaps = None, resources = None, ** kwargs ) ¶Īnd Airflow is not running in the same cluster, consider using When we expect to be able to find a pod but cannot.
0 Comments
Read More
Leave a Reply. |