Open
Conversation
This adds support for running Dave in Kubernetes clusters by reading service annotations instead of Docker container labels. Changes: - Add src/providers/ with unified provider interface - Add src/kubernetes/ for Kubernetes API integration - Update src/pages/index.tsx to use the new provider abstraction - Update README with Kubernetes deployment instructions The provider is auto-detected based on environment: - In Kubernetes: reads KUBERNETES_SERVICE_HOST env var - In Docker: checks for /var/run/docker.sock - Can be overridden with DAVE_PROVIDER env var Kubernetes services can use the same annotation format as Docker labels: - dave.name: Display name - dave.url: Link URL - dave.icon: Iconify icon name Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for running Dave in Kubernetes clusters by reading service annotations instead of Docker container labels.
src/providers/with unified provider interfacesrc/kubernetes/for Kubernetes API integrationsrc/pages/index.tsxto use the new provider abstractionHow it works
The provider is auto-detected based on environment:
KUBERNETES_SERVICE_HOSTenv var/var/run/docker.sockDAVE_PROVIDERenv var (docker,kubernetes, orauto)Kubernetes Usage
Services can use the same annotation format as Docker labels:
Test plan
Notes
The Kubernetes provider uses native
httpsmodule to call the Kubernetes API, avoiding heavy dependencies like@kubernetes/client-nodethat have Node version requirements.🤖 Generated with Claude Code