1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

chore: updates docs

This commit is contained in:
Amir Raminfar
2025-02-18 12:20:38 -08:00
parent 4022b510e2
commit bb0ffbfa04

View File

@@ -107,7 +107,9 @@ kubectl top pod
For now this is required to use Dozzle in Kubernetes. For now this is required to use Dozzle in Kubernetes.
## Default Namespace ## Namespaces and Filters
### Namespaces
By default, Dozzle will monitor all namespaces in the cluster. If you want to restrict Dozzle to a specific namespace, you can set the `DOZZLE_NAMESPACE` environment variable to the name of the namespace. By default, Dozzle will monitor all namespaces in the cluster. If you want to restrict Dozzle to a specific namespace, you can set the `DOZZLE_NAMESPACE` environment variable to the name of the namespace.
@@ -138,3 +140,35 @@ spec:
- name: DOZZLE_NAMESPACE - name: DOZZLE_NAMESPACE
value: "default" value: "default"
``` ```
### Labels and Filters
`DOZZLE_FILTER` behave similarlty to Docker filters. You can limit the scope of Dozzle using the `DOZZLE_FILTER` environment variable. For example, to scope only to `env=prod`:
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: dozzle
spec:
replicas: 1
selector:
matchLabels:
app: dozzle
template:
metadata:
labels:
app: dozzle
spec:
serviceAccountName: pod-viewer
containers:
- name: dozzle
image: amir20/dozzle:latest
ports:
- containerPort: 8080
env:
- name: DOZZLE_MODE
value: "k8s"
- name: DOZZLE_FILTER
value: "env=prod"
```