prefect_kubernetes.deployments
Module for interacting with Kubernetes deployments from Prefect flows.
Functions
create_namespaced_deployment
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.new_deployment: A KubernetesV1Deploymentspecification.namespace: The Kubernetes namespace to create this deployment in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A Kubernetes
V1Deploymentobject.
delete_namespaced_deployment
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.deployment_name: The name of the deployment to delete.delete_options: A KubernetesV1DeleteOptionsobject.namespace: The Kubernetes namespace to delete this deployment from.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A Kubernetes
V1Deploymentobject.
list_namespaced_deployment
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.namespace: The Kubernetes namespace to list deployments from.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A Kubernetes
V1DeploymentListobject.
patch_namespaced_deployment
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.deployment_name: The name of the deployment to patch.deployment_updates: A KubernetesV1Deploymentobject.namespace: The Kubernetes namespace to patch this deployment in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A Kubernetes
V1Deploymentobject.
read_namespaced_deployment
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.deployment_name: The name of the deployment to read.namespace: The Kubernetes namespace to read this deployment from.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A Kubernetes
V1Deploymentobject.
replace_namespaced_deployment
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.deployment_name: The name of the deployment to replace.new_deployment: A KubernetesV1Deploymentobject.namespace: The Kubernetes namespace to replace this deployment in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A Kubernetes
V1Deploymentobject.