<@ULVA73B9P> - I am running prefect-server on a Ku...
# ask-marvin
t
@Marvin - I am running prefect-server on a Kubernetes cluster using a prefect-worker Kubernetes work pool. When would I use the 2-latest-kubenetes docker image instead of 2-latest docker image
m
You should use the
2-latest-kubernetes
Docker image instead of the
2-latest
Docker image when you need an image specifically configured for Kubernetes environments. Here's why: 1. Kubernetes-Specific Configuration: - The
2-latest-kubernetes
image includes specific configurations and dependencies tailored for running within Kubernetes. This might include Kubernetes-native tools, optimized networking settings, and configurations not present in the standard
2-latest
image. 2. Optimized for Kubernetes Workloads: - It is optimized to handle Kubernetes workloads more efficiently. For example, it might handle scaling, logging, and other Kubernetes-native features more effectively. 3. Reduces Customization Needs: - Using the Kubernetes-specific image reduces the need for further customization or adjustments to your deployments since it comes pre-configured for Kubernetes use cases. You can read more details and considerations regarding Docker images in Prefect's documentation: - Deploying with Kubernetes - Using Docker Images with Work Pools This should help you make an informed decision based on your specific deployment environment.
k
the image with
kubernetes
in the name is only different in that it has
prefect-kubernetes
installed, which is required to start the Kubernetes worker
t
🤔 - I am successfully using the worker without ever using that image
k
when you start a worker and connect it to a work pool of a given type, it also tries to install any required dependencies
so the
kubernetes
image would be helpful if your worker didn't have internet access or you want to skip that step at worker boot
t
does it make any difference for prefect-server?
k
nope
t
Ah, I mis-spoke - I am using
2-python3.11-kubernetes
for prefect-worker.
its prefect-server that I am just using latest
k
yep, that should be totally fine