<!-- Generated by website/scripts/sync-docs.mjs from docs/docker.md. Edit that file, not this one. -->

# Docker and Kubernetes

> Every page of this site: https://dyokto.github.io/opa-authzen-plugin/llms.txt

```bash
make docker-build
make docker-run
```

The published image is `ghcr.io/dyokto/opa-authzen-plugin`. Releases up to v0.12.1 were published as `ghcr.io/kanywst/opa-authzen-plugin`; those tags stay available but receive no new pushes. Pass `--addr 0.0.0.0:8181` when you publish the port: OPA binds `localhost` by default, so a container started without it accepts no connections from outside itself.

```bash
docker run --rm -p 8181:8181 -v "$PWD/example:/example:ro" \
  ghcr.io/dyokto/opa-authzen-plugin:latest \
  run --server --addr 0.0.0.0:8181 --config-file /example/config.yaml /example/policy.rego
```

For Kubernetes, [`example/kubernetes/`](https://dyokto.github.io/opa-authzen-plugin/examples/kubernetes/) has a Deployment and Service you can apply with `kubectl apply -k`.

Images and release binaries are signed with Sigstore keyless signing and ship with an SBOM. See [RELEASE.md](https://dyokto.github.io/opa-authzen-plugin/release/#verifying-a-release) for the verification commands.
