Yehiel Mizrahi
05/26/2024, 10:28 AMAndrew Haines (Cerbos)
localhost
within the pod. Both options keep Cerbos isolated from the external network; the UDS is a bit more efficient but getting the filesystem permissions correct can be fiddly sometimes.
2. We provide an official Docker image, I would recommend using that unless you have a good reason not to (https://docs.cerbos.dev/cerbos/latest/installation/container).
3. Generally with Kubernetes you would mount the Cerbos config into the container as a volume from a configmap or secret. You can therefore configure your different apps' pods with different configmaps/secrets to have different Cerbos setups. Alternatively, you can use the --set
command line flag in the sidecar containers' args
to change individual settings (https://docs.cerbos.dev/cerbos/latest/configuration/).
4. For local testing, you could use Minikube (https://github.com/kubernetes/minikube) which supports Windows (you can use it on its own with the vm
driver, or run a cluster on Docker Desktop with the docker
driver).