redhat-openshift-mcp-server

by joaquinito2051

Helm chartv0.3.0App latest

Helm Chart for MCP server for Red Hat OpenShift

About this chart

openshift-mcp-server

Helm Chart for MCP server for Red Hat OpenShift

Homepage: https://github.com/openshift/openshift-mcp-server

Maintainers

NameEmailUrl
Andrew Block[email protected]
Marc Nuri[email protected]

Installing the Chart

The Chart can be installed quickly and easily to a Kubernetes cluster. Since an Ingress is added as part of the default install of the Chart, the ingress.host Value must be specified unless you disable Ingress and use another exposure mechanism (for example Gateway API; see below).

Install the Chart using the following command from the root of this directory:

helm upgrade -i -n openshift-mcp-server --create-namespace openshift-mcp-server oci://ghcr.io/openshift/charts/openshift-mcp-server --set ingress.host=<hostname>

Gateway API (HTTPRoute)

If your platform uses Gateway API instead of classic Ingress, set ingress.enabled to false and enable httpRoute with parentRefs, rules (optional matches, filters, and timeouts are passed through), and optionally hostnames. The chart adds backendRefs pointing at the release Service and service.port. parentRefs and hostnames are rendered with tpl on their YAML so you can reference Release metadata in values. httpRoute.parentRefs is required when httpRoute.enabled=true; leaving it empty fails at helm template / helm install time.

ingress:
  enabled: false
httpRoute:
  enabled: true
  parentRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: my-gateway
      namespace: gateway-system
      sectionName: http
  hostnames:
    - mcp.example.com
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /

Optimized OpenShift Deployment

Functionality has been added to the Chart to simplify the deployment to OpenShift Cluster.

RBAC Configuration

The chart supports creating custom RBAC resources. Set rbac.create: false to disable all RBAC resource creation.

To bind to an existing cluster role (e.g., view, edit, admin), use roleRef.external: true:

rbac:
  extraClusterRoleBindings:
    - name: use-view-role
      roleRef:
        name: view
        external: true

Additional Containers (Sidecars)

The chart supports adding additional containers to the deployment pod. These can be used for various purposes such as MCP proxying.

To add extra containers, define them in the extraContainers value using standard Kubernetes container specifications:

extraContainers:
  - name: sidecar
    image: quay.io/prometheus/busybox:latest
    resources:
      requests:
        cpu: 10m
        memory: 32Mi
      limits:
        cpu: 50m
        memory: 64Mi
  - name: metrics-exporter
    image: quay.io/prometheus/prometheus:latest
    ports:
      - containerPort: 9090

Each container accepts any valid Kubernetes container field including image, command, args, env, volumeMounts, resources, ports, and more.

Values

KeyTypeDefaultDescription
affinityobject{}
config.portstring"{{ .Values.service.port }}"
configFilePathstring"/etc/openshift-mcp-server/config.toml"
defaultPodSecurityContextobject{"seccompProfile":{"type":"RuntimeDefault"}}Default Security Context for the Pod when one is not provided
defaultSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true}Default Security Context for the Container when one is not provided
extraArgslist[]Note: For TLS configuration, use the tls section above instead of extraArgs.
extraContainerslist[]Note: sidecars do not inherit defaultSecurityContext or the /tmp emptyDir mount; configure them per-container if needed.
extraVolumeMountslist[]Additional volumeMounts on the output Deployment definition.
extraVolumeslist[]Additional volumes on the output Deployment definition.
fullnameOverridestring""
httpRouteobject{"annotations":{},"enabled":false,"hostnames":[],"labels":{},"parentRefs":[],"rules":[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]}Disabled by default. When enabled, set parentRefs, rules (with matches / optional filters / timeouts), and optionally hostnames; the chart appends backendRefs to the release Service.
imageobject{"pullPolicy":"IfNotPresent","registry":"quay.io","repository":"containers/kubernetes_mcp_server","version":"latest"}This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image.pullPolicystring"IfNotPresent"This sets the pull policy for images.
image.versionstring"latest"This sets the tag or sha digest for the image.
imagePullSecretslist[]This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
ingressobject{"annotations":{},"className":"","enabled":true,"host":"","hosts":null,"path":"/","pathType":"ImplementationSpecific","termination":"edge","tls":null}This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
initContainerslist[]Init containers to run before the main container starts. Each container is defined as a complete container spec. Supports tpl for templating.
livenessProbeobject{"httpGet":{"path":"/healthz","port":"http"}}Liveness and readiness probes for the container.
metricsobject{"prometheusRule":{"additionalRules":[],"annotations":{},"defaultRules":{"enabled":true},"enabled":false,"labels":{}},"serviceMonitor":{"annotations":{},"enabled":false,"interval":"","labels":{},"metricRelabelings":[],"relabelings":[],"scheme":"","scrapeTimeout":"","tlsConfig":{}}}Metrics and monitoring configuration
metrics.prometheusRuleobject{"additionalRules":[],"annotations":{},"defaultRules":{"enabled":true},"enabled":false,"labels":{}}PrometheusRule configuration for recording rules Recording rules aggregate high-cardinality metrics for efficient querying and Telemeter compatibility
metrics.prometheusRule.additionalRuleslist[]Additional custom recording rules (appended to default rules if enabled) Example: additionalRules: - name: custom-mcp-rules rules: - record: my_custom_metric expr: sum(some_metric)
metrics.prometheusRule.annotationsobject{}Annotations for the PrometheusRule
metrics.prometheusRule.defaultRulesobject{"enabled":true}Default recording rules configuration
metrics.prometheusRule.defaultRules.enabledbooltrueEnable default recording rules that aggregate MCP metrics These rules create aggregates at two levels: Cluster-level (for Telemeter): - cluster:k8s_mcp_tool_calls:sum - Total tool calls across all tools - cluster:k8s_mcp_tool_errors:sum - Total tool errors across all tools - cluster:k8s_mcp_http_requests:sum - Total HTTP requests Namespace-level (for multi-tenant RBAC, grouped by namespace label): - namespace:k8s_mcp_tool_calls:sum - Tool calls by namespace - namespace:k8s_mcp_tool_errors:sum - Tool errors by namespace - namespace:k8s_mcp_http_requests:sum - HTTP requests by namespace
metrics.prometheusRule.enabledboolfalseEnable PrometheusRule for recording rules
metrics.prometheusRule.labelsobject{}Additional labels for the PrometheusRule
metrics.serviceMonitorobject{"annotations":{},"enabled":false,"interval":"","labels":{},"metricRelabelings":[],"relabelings":[],"scheme":"","scrapeTimeout":"","tlsConfig":{}}ServiceMonitor configuration for Prometheus Operator monitoring
metrics.serviceMonitor.annotationsobject{}Annotations for the ServiceMonitor
metrics.serviceMonitor.enabledboolfalseEnable ServiceMonitor for Prometheus scraping
metrics.serviceMonitor.intervalstring""Scrape interval (e.g., "30s", "1m")
metrics.serviceMonitor.labelsobject{}Additional labels for the ServiceMonitor (useful for prometheus-operator serviceMonitorSelector)
metrics.serviceMonitor.metricRelabelingslist[]Metric relabeling rules
metrics.serviceMonitor.relabelingslist[]Relabeling rules for metrics
metrics.serviceMonitor.schemestring""Scheme to use for scraping (http or https)
metrics.serviceMonitor.scrapeTimeoutstring""Scrape timeout (e.g., "10s")
metrics.serviceMonitor.tlsConfigobject{}TLS configuration for scraping
nameOverridestring""
nodeSelectorobject{}
openshiftboolfalseEnable OpenShift specific features
podAnnotationsobject{}For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podLabelsobject{}For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podSecurityContextobject{}Define the Security Context for the Pod
rbacobject{"create":true,"extraClusterRoleBindings":[],"extraClusterRoles":[],"extraRoleBindings":[],"extraRoles":[]}When using long names, they will be automatically truncated.
rbac.createbooltruecontents of extraClusterRoles, extraClusterRoleBindings, extraRoles, and extraRoleBindings.
rbac.extraClusterRoleBindingslist[]without prefixing the release fullname.
rbac.extraClusterRoleslist[]"-" with the specified rules.
rbac.extraRoleBindingslist[]Use roleRef.external: true to reference existing roles without prefixing the release fullname.
rbac.extraRoleslist[]"-" in the specified namespace.
readinessProbe.httpGet.pathstring"/healthz"
readinessProbe.httpGet.portstring"http"
replicaCountint1This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}Resource requests and limits for the container.
securityContextobject{}Define the Security Context for the Container
serviceobject{"annotations":{},"port":8080,"targetPort":"http","type":"ClusterIP"}This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service.annotationsobject{}Annotations to add to the service
service.portint8080This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
service.targetPortstring"http"Target port for the service. Useful when deploying with a proxy sidecar or exposing a different port. Set this to the sidecar's port to route traffic through the proxy before reaching the main container.
service.typestring"ClusterIP"This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
serviceAccountobject{"annotations":{},"automountToken":true,"create":true,"name":""}This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountTokenbooltrueWhether to auto-mount the ServiceAccount token into the pod. Required for in-cluster Kubernetes API access (default). Set to false for OAuth passthrough deployments where the server uses the user's token instead of the ServiceAccount token.
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
tlsobject{"certFile":"tls.crt","enabled":false,"keyFile":"tls.key","mountPath":"/etc/tls","secretName":""}This is the recommended way to enable TLS instead of using extraArgs.
tls.certFilestring"tls.crt"Name of the certificate file within the secret (default: tls.crt)
tls.enabledboolfalseEnable TLS for the MCP server
tls.keyFilestring"tls.key"Name of the key file within the secret (default: tls.key)
tls.mountPathstring"/etc/tls"Path where the TLS secret will be mounted inside the container
tls.secretNamestring""The secret should be of type kubernetes.io/tls with tls.crt and tls.key.
tolerationslist[]

Updating the README

The contents of the README.md file is generated using helm-docs. Whenever changes are introduced to the Chart and its Values, the documentation should be regenerated.

Execute the following command to regenerate the documentation from within the Helm Chart directory.

helm-docs -t README.md.gotmpl

Deploy redhat-openshift-mcp-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redhat-openshift-mcp-server 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 chartredhat-openshift-mcp-server is pinned at v0.3.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