Skip to content

[mcp-stress-test] kubernetes requires cluster credentials authentication #1387

@github-actions

Description

@github-actions

MCP Server Authentication Required: kubernetes

The nightly stress test detected that the kubernetes MCP server requires authentication to function properly. The server tools were not accessible during testing.

Test Details

  • Test Session: stress-test-20260225-022355
  • Test Date: 2026-02-25
  • Server Container: mcp/kubernetes

Required Authentication

Environment Variable / Mount: KUBECONFIG or service account credentials

Token Type: Kubernetes cluster credentials (kubeconfig or service account token)

How to Obtain:

  1. Set up a Kubernetes cluster (e.g., via GKE, EKS, AKS, or a local cluster like kind/minikube)
  2. Obtain the kubeconfig file from the cluster
  3. Either:
    • Encode the kubeconfig as a secret and mount it at the expected path, or
    • Provide KUBECONFIG environment variable pointing to the config file
  4. Ensure the service account has appropriate RBAC permissions (at minimum get, list on pods/deployments)
  5. Add kubeconfig content to repository secrets as KUBE_CONFIG

Error Message

Server tools not accessible - no tools exposed through MCP Gateway

Suggested Configuration

{
  "kubernetes": {
    "type": "stdio",
    "container": "mcp/kubernetes",
    "env": {
      "KUBECONFIG": "/root/.kube/config"
    },
    "mounts": [
      "/path/to/kubeconfig:/root/.kube/config:ro"
    ]
  }
}

Next Steps

  • Set up a Kubernetes cluster accessible from the CI environment
  • Create a service account with appropriate RBAC permissions
  • Store kubeconfig as a repository secret
  • Mount kubeconfig into the container at runtime
  • Verify server works in next nightly test

Generated by Nightly MCP Stress Test
Test Session: stress-test-20260225-022355

Generated by Nightly MCP Server Stress Test

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions