prefect_kubernetes.services
Tasks for working with Kubernetes services.
Functions
create_namespaced_service
kubernetes_credentials: AKubernetesCredentialsblock used to generate aCoreV1Apiclient.new_service: AV1Serviceobject representing the service to create.namespace: The namespace to create the service in.**kube_kwargs: Additional keyword arguments to pass to theCoreV1Apimethod call.
- A
V1Servicerepresenting the created service.
delete_namespaced_service
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.service_name: The name of the service to delete.delete_options: AV1DeleteOptionsobject representing the options to delete the service with.namespace: The namespace to delete the service from.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A
V1Servicerepresenting the deleted service.
list_namespaced_service
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.namespace: The namespace to list services from.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A
V1ServiceListrepresenting the list of services in the given namespace.
patch_namespaced_service
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.service_name: The name of the service to patch.service_updates: AV1Serviceobject representing patches toservice_name.namespace: The namespace to patch the service in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A
V1Servicerepresenting the patched service.
read_namespaced_service
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.service_name: The name of the service to read.namespace: The namespace to read the service from.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A
V1Serviceobject representing the service.
replace_namespaced_service
kubernetes_credentials:KubernetesCredentialsblock for creating authenticated Kubernetes API clients.service_name: The name of the service to replace.new_service: AV1Serviceobject representing the new service.namespace: The namespace to replace the service in.**kube_kwargs: Optional extra keyword arguments to pass to the Kubernetes API.
- A
V1Servicerepresenting the new service.