Repository navigation
feat(helm): add Helm chart for Kubernetes deployment - #4399
Open
ayushgharat234 wants to merge 2 commits into
Open
ayushgharat234 wants to merge 2 commits into
ayushgharat234 wants to merge 2 commits into
Conversation
Adds charts/mcp-toolbox with a chart-managed or existing Secret for tools.yaml, prebuilt tool sets, restricted Pod Security Standard defaults, optional Ingress, HPA and PodDisruptionBudget, and helm-unittest tests. Anchors the mcp-toolbox binary pattern in .gitignore so it no longer ignores the chart directory.
1 task done
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new Helm chart for deploying the MCP Toolbox for Databases to Kubernetes, including templates for deployment, service, ingress, autoscaling, and security configurations, along with comprehensive unit tests. The review feedback suggests quoting ingress path values to prevent parsing errors, extending the security warning in the release notes to cover ingress-exposed ClusterIP services, and adding support for mounting custom volumes and volume mounts to facilitate database certificate and credential injection.
… add extra volumes
This branch has not been deployed
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 no
2D52
w. Please check back later.
Description
Adds a Helm chart at
charts/mcp-toolboxfor deploying Toolbox to Kubernetes, with helm-unittest tests. This is the first of the three PRs proposed in #486. A kind-based CI job and docs will follow in separate PRs.The tool configuration comes from a chart-managed Secret (
config.toolsYaml), an existing Secret (config.existingSecret) or prebuilt tool sets (config.prebuilt). The default settings pass the restricted Pod Security Standard. Ingress, HPA and PDB are optional. The chart README covers usage.Design decisions
--poll-interval=10by default (config.pollInterval)..datasymlink. The fsnotify watcher incmd/root.godoesn't detect that swap, so without polling an updated Secret is never reloaded. The Secret is also mounted as a directory, becausesubPathmounts never receive updates.runAsUser: 65532set explicitlynonroot. With onlyrunAsNonRoot: true, the kubelet can't verify that user and the pod fails withCreateContainerConfigError..gitignore:mcp-toolbox→/mcp-toolboxcharts/mcp-toolbox/.Testing
helm lint --strictandhelm unittest(27 tests) pass. I also installed the chart on Kubernetes v1.36.1 in a namespace that enforces the restricted Pod Security Standard. The MCP endpoint responded, an updated Secret was reloaded in 58s with no restart, andallowedHostsreturned 403 for an unlisted host while/healthzstayed reachable.Verification output
PR Checklist
!if this involve a breaking changeFixes #486