Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KUBECONFIGNoPath to kubeconfig file (defaults to ~/.kube/config)
K8S_CONTEXTNoSpecific kubectl context to use
K8S_SSH_KEYNoPath to SSH private key for authentication
K8S_SSH_HOSTNoSSH host for remote kubectl execution (e.g., 192.168.16.100)
K8S_SSH_USERNoSSH username for authentication
KUBECTL_PATHNoPath to kubectl binarykubectl
K8S_SSH_PASSWORDNoSSH password (uses plink on Windows, sshpass on Linux)
K8S_DEFAULT_NAMESPACENoDefault namespacedefault

Tools

Functions exposed to the LLM to take actions

NameDescription
k8s_get_cluster_info

Get Kubernetes cluster information including server version and endpoints

k8s_list_nodes

List all nodes in the cluster with their status, roles, and resource information

k8s_get_node

Get detailed information about a specific node

k8s_describe_node

Get full description of a node including conditions, capacity, and allocatable resources

k8s_list_namespaces

List all namespaces in the cluster

k8s_create_namespace

Create a new namespace

k8s_delete_namespace

Delete a namespace (WARNING: This will delete all resources in the namespace)

k8s_list_pods

List pods in a namespace or all namespaces

k8s_get_pod

Get detailed information about a specific pod

k8s_describe_pod

Get full description of a pod including events

k8s_get_pod_logs

Get logs from a pod container

k8s_delete_pod

Delete a pod

k8s_exec_pod

Execute a command in a pod container

k8s_list_deployments

List deployments in a namespace or all namespaces

k8s_get_deployment

Get detailed information about a deployment

k8s_describe_deployment

Get full description of a deployment including events and conditions

k8s_scale_deployment

Scale a deployment to a specific number of replicas

k8s_restart_deployment

Perform a rolling restart of a deployment

k8s_update_deployment_image

Update the container image of a deployment

k8s_list_services

List services in a namespace or all namespaces

k8s_get_service

Get detailed information about a service

k8s_describe_service

Get full description of a service including endpoints

k8s_list_configmaps

List ConfigMaps in a namespace

k8s_get_configmap

Get ConfigMap details and data

k8s_create_configmap

Create a ConfigMap from literal values

k8s_delete_configmap

Delete a ConfigMap

k8s_list_secrets

List secrets in a namespace (values are not shown)

k8s_get_secret

Get secret metadata (values are base64 encoded)

k8s_create_secret

Create a generic secret from literal values

k8s_delete_secret

Delete a secret

k8s_list_statefulsets

List StatefulSets in a namespace

k8s_get_statefulset

Get StatefulSet details

k8s_scale_statefulset

Scale a StatefulSet to a specific number of replicas

k8s_list_daemonsets

List DaemonSets in a namespace

k8s_get_daemonset

Get DaemonSet details

k8s_list_ingresses

List Ingresses in a namespace

k8s_get_ingress

Get Ingress details

k8s_apply_manifest

Apply a YAML or JSON manifest to the cluster

k8s_delete_resource

Delete a resource by type and name

k8s_get_events

Get cluster events, optionally filtered by namespace

k8s_get_resource_yaml

Get any resource as YAML

k8s_get_all

Get all common resources in a namespace

k8s_rollout_status

Get the status of a deployment rollout

k8s_rollout_history

Get the rollout history of a deployment

k8s_rollout_undo

Undo the last rollout of a deployment

k8s_top_nodes

Show resource usage (CPU/memory) for nodes

k8s_top_pods

Show resource usage (CPU/memory) for pods

k8s_get_contexts

List all available kubectl contexts

k8s_current_context

Get the current kubectl context

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mjrestivo16/mcp-kubernetes'

If you have feedback or need assistance with the MCP directory API, please join our Discord server