Dozzle K8s is here! See here for instructions and provide feedback. #3614
Replies: 12 comments 46 replies
-
|
I have some cluster k8s, can't wait for that and go test it! |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I have been excited about adding k8s support. In the survey, a few people expressed, but not a lot. I thought it would be a good addition and apparently, judging from the ❤️ it seems like people might like. Here is what you need to test Dozzle with k8s. Dozzle InstallingThis is the file I did to spin up Dozzle # rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: pod-viewer
---
# clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pod-viewer-role
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["metrics.k8s.io"]
resources: ["pods"]
verbs: ["get", "list"]
---
# clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pod-viewer-binding
subjects:
- kind: ServiceAccount
name: pod-viewer
namespace: default
roleRef:
kind: ClusterRole
name: pod-viewer-role
apiGroup: rbac.authorization.k8s.io
---
# deployment.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:master
ports:
- containerPort: 8080
env:
- name: DOZZLE_MODE
value: "k8s"
- name: DOZZLE_LEVEL
value: "debug"
---
# service.yaml
apiVersion: v1
kind: Service
metadata:
name: dozzle-service
spec:
type: ClusterIP
selector:
app: dozzle
ports:
- port: 8080
targetPort: 8080
protocol: TCPInstall using Dozzle for K8s has turned out to be very performant because the API for k8s are more efficient. Requirements
What doesn't work?
Please test this and provide feedback on this discussion. I am looking for a few folks who can install and learn from their experience. I also want to make sure Dozzle remains light so if you see high memory or CPU usage then let me know. Thanks 🎉🚀 |
Beta Was this translation helpful? Give feedback.
-
|
I have released the latest version and docs are at https://dozzle.dev/guide/k8s#kubernetes-setup |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I've just had a quick try on my k8s cluster. It's a success, the logs are up correctly! Thanks for the support ;) |
Beta Was this translation helpful? Give feedback.
-
|
Hey @amir20 Thanks for developing k8s version. I tried installing and I'm getting some errors. Running v8.11.1 - it only finds pods in default namespace and the dozzle pod Running pr-3631 - It finds all the containers (appox. 529) from all namespaces but it crashes. I've included the logs from running pr-3631. Looks like it maybe a memory leak. The last log messages are: `{"level":"debug","event":"create","id":"db-cb9c6f99d-qr96h:db","time":"2025-02-14T20:57:26Z","message":"container event from store"} goroutine 14 [running]: |
Beta Was this translation helpful? Give feedback.
-
|
I must say I am glad I looked this project up again for another project I was working on. I haven't used it much since switching to k8s. |
Beta Was this translation helpful? Give feedback.
-
|
Very cool and easy to install. Only future goal I would like to see is namespace grouping support instead of only per host, just like with docker swarm/docker compose stacks. Love this, thank you! |
Beta Was this translation helpful? Give feedback.
-
|
DOZZLE_NAMESPACE not sure how to filter multiple namespaces
|
Beta Was this translation helpful? Give feedback.
-
|
I have the developer role in my K8s cluster, which means I only have permissions to create Role and RoleBinding resources. I do not have cluster-admin or broader privileges. |
Beta Was this translation helpful? Give feedback.
-
|
Currently, I’ve tried deploying Dozzle on k8s for the dev and staging environments, and everything works as I expect. However, when I tried creating Custom Groups on k8s, I noticed that the Custom Groups option doesn’t appear in the k8s environment. Meanwhile, in a Docker standalone test environment, I can easily create Custom Groups just by following the documentation: Is Custom Groups currently only supported for Docker? Do you have any way to create Custom Groups in a k8s environment? I’m really looking forward to this. |
Beta Was this translation helpful? Give feedback.
-
|
is it possible to install dozzle for k8s in a machine and view pods from other remote ips? like dozzle for docker with agents. |
Beta Was this translation helpful? Give feedback.
-
|
To me where the main issue is for use of this with k8 is that i want to see log grouping by deployment and/or stateful set. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
While looking at the survey results, I noticed a few people rely on K8s support heavily. I am currently working on k8s support and it is almost complete. I still need to add documentation. But I am hoping I could get a couple volunteers who would be interested in testing Dozzle in their k8s cluster.
Implementation for Dozzle in k8s is a lot more performant since stats for containers is returned across all containers. Additionally, k8s services are stable so agents are not required.
I will be adding docs soon. For those who are interested, I will provide directions. In the future, I hope to release a helm package.
Beta Was this translation helpful? Give feedback.
All reactions