-
-
Notifications
You must be signed in to change notification settings - Fork 15
fix(kubernetes-mcp-server): align template standards #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+210
−24
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,95 @@ | ||
| {{/* SPDX-License-Identifier: Apache-2.0 */}} | ||
| Kubernetes MCP Server has been deployed. | ||
|
|
||
| Access: | ||
| 1. Access | ||
|
|
||
| - Service: http://{{ include "kubernetes-mcp-server.fullname" . }}.{{ .Release.Namespace }}.svc:{{ .Values.service.port }} | ||
| - Port-forward: kubectl port-forward svc/{{ include "kubernetes-mcp-server.fullname" . }} 8080:{{ .Values.service.port }} -n {{ .Release.Namespace }} | ||
| - Local MCP URL: http://127.0.0.1:8080 | ||
| - Service DNS: http://{{ include "kubernetes-mcp-server.fullname" . }}.{{ .Release.Namespace }}.svc:{{ .Values.service.port }} | ||
| - Port-forward: | ||
| kubectl port-forward svc/{{ include "kubernetes-mcp-server.fullname" . }} 8080:{{ .Values.service.port }} -n {{ .Release.Namespace }} | ||
| - Local MCP URL: | ||
| http://127.0.0.1:8080 | ||
|
|
||
| Safety mode: | ||
| 2. Runtime Mode | ||
|
|
||
| - readOnly: {{ .Values.mcp.readOnly }} | ||
| - disableDestructive: {{ .Values.mcp.disableDestructive }} | ||
| - allowUnsafeWriteAccess: {{ .Values.mcp.allowUnsafeWriteAccess }} | ||
| - stateless: {{ .Values.mcp.stateless }} | ||
| - clusterProvider: {{ .Values.mcp.clusterProvider }} | ||
| - disableMultiCluster: {{ .Values.mcp.disableMultiCluster }} | ||
| - listOutput: {{ .Values.mcp.listOutput }} | ||
| - logLevel: {{ .Values.mcp.logLevel }} | ||
| - toolsets: {{ join "," .Values.mcp.toolsets }} | ||
|
|
||
| RBAC: | ||
| 3. RBAC | ||
|
|
||
| {{- if and .Values.serviceAccount.create .Values.rbac.create }} | ||
| - ServiceAccount: {{ include "kubernetes-mcp-server.serviceAccountName" . }} | ||
| - ClusterRoleBinding target: {{ .Values.rbac.clusterRoleName }} | ||
| - Verify read access: | ||
| kubectl auth can-i list pods --as=system:serviceaccount:{{ .Release.Namespace }}:{{ include "kubernetes-mcp-server.serviceAccountName" . }} | ||
| - Verify destructive access remains denied with default values: | ||
| kubectl auth can-i delete pods --as=system:serviceaccount:{{ .Release.Namespace }}:{{ include "kubernetes-mcp-server.serviceAccountName" . }} | ||
| {{- else }} | ||
| - Chart-managed RBAC is disabled. Confirm the ServiceAccount can access the intended resources. | ||
| - Chart-managed RBAC is disabled. | ||
| - Confirm the selected ServiceAccount can access only the intended resources. | ||
| {{- end }} | ||
|
|
||
| Troubleshooting: | ||
| 4. Configuration File | ||
|
|
||
| - kubectl get pod -l app.kubernetes.io/instance={{ .Release.Name }} -n {{ .Release.Namespace }} | ||
| - kubectl logs deploy/{{ include "kubernetes-mcp-server.fullname" . }} -n {{ .Release.Namespace }} | ||
| - kubectl auth can-i list pods --as=system:serviceaccount:{{ .Release.Namespace }}:{{ include "kubernetes-mcp-server.serviceAccountName" . }} | ||
| {{- if .Values.mcp.configToml }} | ||
| - TOML config is mounted from ConfigMap {{ include "kubernetes-mcp-server.fullname" . }}. | ||
| - Inspect it with: | ||
| kubectl get configmap {{ include "kubernetes-mcp-server.fullname" . }} -n {{ .Release.Namespace }} -o yaml | ||
| {{- else }} | ||
| - No TOML config is mounted; runtime options are generated from mcp.* values. | ||
| {{- end }} | ||
|
|
||
| 5. Exposure | ||
|
|
||
| {{- if .Values.ingress.enabled }} | ||
| - Ingress is enabled. | ||
| - Keep this endpoint behind trusted authentication and network controls. | ||
| {{- else }} | ||
| - Ingress is disabled. | ||
| {{- end }} | ||
| {{- if .Values.gateway.enabled }} | ||
| - Gateway API HTTPRoute is enabled. | ||
| {{- else }} | ||
| - Gateway API HTTPRoute is disabled. | ||
| {{- end }} | ||
| {{- if .Values.networkPolicy.enabled }} | ||
| - NetworkPolicy is enabled for inbound MCP traffic. | ||
| {{- else }} | ||
| - NetworkPolicy is disabled. | ||
| {{- end }} | ||
|
|
||
| 6. Persistence And Scaling | ||
|
|
||
| {{- if .Values.persistence.enabled }} | ||
| - Persistence is enabled at {{ .Values.persistence.mountPath }}. | ||
| - PVC source: {{ default (include "kubernetes-mcp-server.fullname" .) .Values.persistence.existingClaim }} | ||
| - For replicaCount > 1, use ReadWriteMany storage or an externally managed RWX claim. | ||
| {{- else }} | ||
| - Persistence is disabled; the default deployment is stateless. | ||
| {{- end }} | ||
| - replicaCount: {{ .Values.replicaCount }} | ||
|
|
||
| 7. Troubleshooting | ||
|
|
||
| - Pods: | ||
| kubectl get pod -l app.kubernetes.io/instance={{ .Release.Name }} -n {{ .Release.Namespace }} | ||
| - Logs: | ||
| kubectl logs deploy/{{ include "kubernetes-mcp-server.fullname" . }} -n {{ .Release.Namespace }} | ||
| - Service endpoints: | ||
| kubectl get endpoints {{ include "kubernetes-mcp-server.fullname" . }} -n {{ .Release.Namespace }} | ||
| - Rendered arguments: | ||
| kubectl get deploy {{ include "kubernetes-mcp-server.fullname" . }} -n {{ .Release.Namespace }} -o jsonpath='{.spec.template.spec.containers[0].args}' | ||
|
|
||
| Resources: | ||
| 8. Resources | ||
|
|
||
| - Chart documentation: https://helmforge.dev/docs/charts/kubernetes-mcp-server | ||
| - Upstream: https://github.com/containers/kubernetes-mcp-server | ||
| - Upstream project: https://github.com/containers/kubernetes-mcp-server | ||
| - Security guidance: keep write-enabled releases isolated to trusted namespaces and clients. | ||
|
|
||
| Happy Helmforging :) |
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,2 @@ | ||
| {{/* SPDX-License-Identifier: Apache-2.0 */}} | ||
| {{- if and (not .Values.mcp.readOnly) (not .Values.mcp.disableDestructive) (not .Values.mcp.allowUnsafeWriteAccess) -}} | ||
| {{- fail "write access with destructive tools requires mcp.allowUnsafeWriteAccess=true" -}} | ||
| {{- end -}} | ||
| {{- if and (gt (int .Values.replicaCount) 1) .Values.persistence.enabled (not (has "ReadWriteMany" .Values.persistence.accessModes)) -}} | ||
| {{- fail "replicaCount > 1 with persistence.enabled requires persistence.accessModes to include ReadWriteMany or persistence.enabled=false" -}} | ||
| {{- end -}} | ||
| {{- include "kubernetes-mcp-server.validate" . -}} |
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.