kubernetes-mcp

by sebastien-prudhomme

Helm chartv2.0.0App 0.0.47MITVerified publisher

Model Context Protocol server for Kubernetes

About this chart

Kubernetes MCP Server

Kubernetes MCP Server is a Model Context Protocol server for Kubernetes.

DISCLAIMER: This is an unofficial chart not supported by Kubernetes MCP Server authors.

TL;DR;

$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/kubernetes-mcp

or for an OCI-based registry:

$ helm install my-release oci://ghcr.io/cowboysysop/charts/kubernetes-mcp

Introduction

This chart bootstraps a Kubernetes MCP Server deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes >= 1.24
  • Helm >= 3.9

Installing

Install the chart using:

$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/kubernetes-mcp

or for an OCI-based registry:

$ helm install my-release oci://ghcr.io/cowboysysop/charts/kubernetes-mcp

These commands deploy Kubernetes MCP Server on the Kubernetes cluster in the default configuration and with the release name my-release. The deployment configuration can be customized by specifying the customization parameters with the helm install command using the --values or --set arguments. Find more information in the configuration section of this document.

Upgrading

Upgrade the chart deployment using:

$ helm upgrade my-release cowboysysop/kubernetes-mcp

or for an OCI-based registry:

$ helm upgrade my-release oci://ghcr.io/cowboysysop/charts/kubernetes-mcp

The command upgrades the existing my-release deployment with the most latest release of the chart.

Upgrading to version 2.0.0

The chart now uses forked versions of the Bitnami charts to reference the Bitnami Legacy repository:

  • https://github.com/bitnami/containers/issues/83267

A label app.kubernetes.io/component will be added to the Deployment. Run this command before upgrading to prevent an immutable field error:

$ kubectl delete deployment/my-kubernetes-mcp-deployment

Pod and container security contexts are now configured with default values.

Uninstalling

Uninstall the my-release deployment using:

$ helm uninstall my-release

The command deletes the release named my-release and frees all the kubernetes resources associated with the release.

TIP: Specify the --purge argument to the above command to remove the release from the store and make its name free for later use.

Configuration

Global parameters

NameDescriptionDefault
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Common parameters

NameDescriptionDefault
kubeVersionOverride Kubernetes version""
nameOverridePartially override kubernetes-mcp.fullname template with a string (will prepend the release name)""
fullnameOverrideFully override kubernetes-mcp.fullname template with a string""
namespaceOverrideFully override common.names.namespace template with a string""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Parameters

NameDescriptionDefault
replicaCountNumber of replicas1
revisionHistoryLimitNumber of old history to retain to allow rollback10
image.registryImage registryquay.io
image.repositoryImage repositorymanusa/kubernetes_mcp_server
image.tagImage tagv0.0.47
image.digestImage digest""
image.pullPolicyImage pull policyIfNotPresent
pdb.createSpecifies whether a pod disruption budget should be createdfalse
pdb.minAvailableMinimum number/percentage of pods that should remain scheduled1
pdb.maxUnavailableMaximum number/percentage of pods that may be made unavailablenil
rbac.rulesCustom RBAC rules to set[]
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsService account annotations{}
serviceAccount.nameThe name of the service account to use (Generated using the kubernetes-mcp.fullname template if not set)nil
enableServiceLinksWhether information about services should be injected into pod's environment variablefalse
hostAliasesPod host aliases[]
deploymentAnnotationsAdditional deployment annotations{}
podAnnotationsAdditional pod annotations{}
podLabelsAdditional pod labels{}
podSecurityContextPod security context
podSecurityContext.seccompProfile.typeSet pod's Security Context seccomp profileRuntimeDefault
priorityClassNamePriority class namenil
runtimeClassNameRuntime class name""
topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
securityContextContainer security context
securityContext.allowPrivilegeEscalationSet container's Security Context allowPrivilegeEscalationfalse
securityContext.capabilities.dropList of capabilities to be dropped["ALL"]
securityContext.readOnlyRootFilesystemSet container's Security Context readOnlyRootFilesystemtrue
securityContext.runAsNonRootWhether the container must run as a non-root usertrue
securityContext.runAsUserThe UID to run the entrypoint of the container process65534
securityContext.runAsGroupThe GID to run the entrypoint of the container process65534
containerPorts.httpContainer port for HTTP8080
service.annotationsService annotations{}
service.typeService typeClusterIP
service.clusterIPStatic cluster IP address or None for headless service when service type is ClusterIPnil
service.ipFamilyPolicyService IP family policy""
service.ipFamiliesService IP families[]
service.sessionAffinityControl where client requests go, to the same pod or round-robinNone
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
service.loadBalancerIPStatic load balancer IP address when service type is LoadBalancernil
service.loadBalancerSourceRangesSource IP address ranges when service type is LoadBalancernil
service.externalTrafficPolicyExternal traffic routing policy when service type is LoadBalancer or NodePortCluster
service.ports.httpService port for HTTP8080
service.nodePorts.httpService node port for HTTP when service type is LoadBalancer or NodePortnil
ingress.enabledEnable ingress controller resourcefalse
ingress.ingressClassNameIngressClass that will be be used to implement the Ingress""
ingress.pathTypeIngress path typeImplementationSpecific
ingress.annotationsIngress annotations{}
ingress.hosts[0].hostHostname to your Kubernetes MCP Server installationkubernetes-mcp.local
ingress.hosts[0].pathsPaths within the url structure

Deploy kubernetes-mcp with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubernetes-mcp on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkubernetes-mcp is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply