Skip to main content
Glama

k8s-pilot

by bourbonkk

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Kube ContextsList all kube contexts

Tools

Functions exposed to the LLM to take actions

NameDescription
get_clusters

Get all clusters from the kubeconfig file. :return:

get_current_cluster

Get the current cluster from the kubeconfig file. :return:

set_current_cluster

Set the current cluster in the kubeconfig file. :param cluster_name: :return:

configmap_list

List all ConfigMaps in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of ConfigMap basic information

configmap_create

Create a ConfigMap in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name data: The data to store in the ConfigMap

Returns: Status of the creation operation

configmap_get

Get details of a specific ConfigMap.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name

Returns: Detailed information about the ConfigMap

configmap_update

Update an existing ConfigMap in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name data: The new data to update in the ConfigMap

Returns: Status of the update operation

configmap_delete

Delete a ConfigMap from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name

Returns: Status of the deletion operation

daemonset_list

List all DaemonSets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of DaemonSet basic information

daemonset_create

Create a DaemonSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name image: The container image to use labels: Labels to apply to the DaemonSet

Returns: Status of the creation operation

daemonset_get

Get details of a specific DaemonSet.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name

Returns: Detailed information about the DaemonSet

daemonset_update

Update an existing DaemonSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name image: The new container image to update

Returns: Status of the update operation

daemonset_delete

Delete a DaemonSet from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name

Returns: Status of the deletion operation

deployment_list

List all Deployments in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Deployment basic information

deployment_create

Create a Deployment in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Deployment name image: The container image to use replicas: Number of replicas labels: Labels to apply to the Deployment

Returns: Status of the creation operation

deployment_get

Get details of a specific Deployment.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Deployment name

Returns: Detailed information about the Deployment

deployment_update

Update an existing Deployment in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Deployment name image: The new container image to update replicas: The new number of replicas

Returns: Status of the update operation

deployment_delete

Delete a Deployment from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Deployment name

Returns: Status of the deletion operation

ingress_list

List all Ingresses in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Ingress basic information

ingress_create

Create an Ingress in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name host: The host for the Ingress service_name: The backend service name service_port: The backend service port

Returns: Status of the creation operation

ingress_get

Get details of a specific Ingress.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name

Returns: Detailed information about the Ingress

ingress_update

Update an existing Ingress in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name host: The new host for the Ingress service_name: The new backend service name service_port: The new backend service port

Returns: Status of the update operation

ingress_delete

Delete an Ingress from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name

Returns: Status of the deletion operation

list_namespaces

List all namespaces in the Kubernetes cluster.

Args: context_name: The Kubernetes context name

Returns: JSON string containing basic information about all namespaces

get_namespace_details

Get detailed information about a specific namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace to get details for

Returns: JSON string containing detailed information about the namespace

create_namespace

Create a new namespace.

Args: context_name: The Kubernetes context name namespace: The name for the new namespace labels: Optional dictionary of labels to apply to the namespace

Returns: JSON string containing information about the created namespace

delete_namespace

Delete a namespace and all resources within it.

Args: context_name: The Kubernetes context name namespace: The name of the namespace to delete

Returns: JSON string containing the result of the operation

add_namespace_label

Add or update a label on a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to add label_value: The label value to set

Returns: JSON string containing the updated namespace labels

remove_namespace_label

Remove a label from a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to remove

Returns: JSON string containing the updated namespace labels

list_namespace_resources

List resources (pods, services, deployments, etc.) in a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace

Returns: JSON string containing a summary of resources in the namespace

set_namespace_resource_quota

Set or update resource quotas for a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace cpu_limit: Optional CPU limit (e.g., "2", "500m") memory_limit: Optional memory limit (e.g., "1Gi", "500Mi") pod_count: Optional maximum number of pods

Returns: JSON string containing the resource quota status

get_namespace_resource_quota

Get current resource quotas for a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace

Returns: JSON string containing the current resource quotas and their usage

list_nodes

List all nodes in the Kubernetes cluster.

Args: context_name: The Kubernetes context name

Returns: JSON string containing basic information about all nodes

get_node_details

Get detailed information about a specific node.

Args: context_name: The Kubernetes context name node_name: The name of the node to get details for

Returns: JSON string containing detailed information about the node

add_node_label

Add or update a label to a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify label_key: The label key to add label_value: The label value to set

Returns: JSON string containing the updated node labels

remove_node_label

Remove a label from a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify label_key: The label key to remove

Returns: JSON string containing the updated node labels

add_node_taint

Add a taint to a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify taint_key: The taint key to add taint_value: The taint value to set taint_effect: The taint effect (NoSchedule, PreferNoSchedule, or NoExecute)

Returns: JSON string containing the updated node taints

remove_node_taint

Remove a taint from a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify taint_key: The taint key to remove

Returns: JSON string containing the updated node taints

cordon_node

Cordon a node (mark as unschedulable).

Args: context_name: The Kubernetes context name node_name: The name of the node to cordon

Returns: JSON string containing the result of the operation

uncordon_node

Uncordon a node (mark as schedulable).

Args: context_name: The Kubernetes context name node_name: The name of the node to uncordon

Returns: JSON string containing the result of the operation

get_node_pods

Get all pods running on a specific node.

Args: context_name: The Kubernetes context name node_name: The name of the node to get pods for

Returns: JSON string containing the pods running on the node

pod_list

List all pods in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of pod basic information

pod_detail

Get details of a specific pod.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name

Returns: Detailed information about the pod

pod_create

Create a new pod in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The name for the new pod image: The container image to use labels: Optional dictionary of pod labels command: Optional command to run in the container args: Optional arguments for the command env_vars: Optional environment variables for the container

Returns: Information about the created pod

pod_update

Update an existing pod's metadata (only labels can be updated for an existing pod).

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name labels: New labels to apply to the pod

Returns: Information about the updated pod

pod_delete

Delete a pod from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name to delete

Returns: Status of the deletion operation

pod_logs

Get logs from a pod or a specific container within the pod.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name container: Optional container name (if pod has multiple containers) tail_lines: Number of lines to retrieve from the end of the logs previous: Whether to get logs from a previous instance of the container

Returns: Pod logs

pv_list

List all PersistentVolumes in the cluster.

Args: context_name: The Kubernetes context name

Returns: List of PersistentVolume basic information

pv_create

Create a PersistentVolume in the cluster.

Args: context_name: The Kubernetes context name name: The PersistentVolume name capacity: The storage capacity (e.g., "10Gi") access_modes: List of access modes (e.g., ["ReadWriteOnce"]) storage_class: The storage class name host_path: The host path for the volume

Returns: Status of the creation operation

pv_get

Get details of a specific PersistentVolume.

Args: context_name: The Kubernetes context name name: The PersistentVolume name

Returns: Detailed information about the PersistentVolume

pv_update

Update an existing PersistentVolume's metadata (e.g., labels).

Args: context_name: The Kubernetes context name name: The PersistentVolume name labels: New labels to apply to the PersistentVolume

Returns: Status of the update operation

pv_delete

Delete a PersistentVolume from the cluster.

Args: context_name: The Kubernetes context name name: The PersistentVolume name

Returns: Status of the deletion operation

pvc_list

List all PersistentVolumeClaims in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of PersistentVolumeClaim basic information

pvc_create

Create a PersistentVolumeClaim in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name storage: The storage size (e.g., "10Gi") access_modes: List of access modes (e.g., ["ReadWriteOnce"]) storage_class: The storage class name (optional)

Returns: Status of the creation operation

pvc_get

Get details of a specific PersistentVolumeClaim.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name

Returns: Detailed information about the PersistentVolumeClaim

pvc_update

Update an existing PersistentVolumeClaim's metadata (e.g., labels).

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name labels: New labels to apply to the PersistentVolumeClaim

Returns: Status of the update operation

pvc_delete

Delete a PersistentVolumeClaim from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name

Returns: Status of the deletion operation

replicaset_list

List all ReplicaSets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of ReplicaSet basic information

replicaset_create

Create a ReplicaSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name image: The container image to use replicas: Number of replicas labels: Labels to apply to the ReplicaSet

Returns: Status of the creation operation

replicaset_get

Get details of a specific ReplicaSet.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name

Returns: Detailed information about the ReplicaSet

replicaset_update

Update an existing ReplicaSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name image: The new container image to update replicas: The new number of replicas

Returns: Status of the update operation

replicaset_delete

Delete a ReplicaSet from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name

Returns: Status of the deletion operation

role_list

List all Roles in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Role basic information

role_create

Create a Role in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name rules: List of policy rules

Returns: Status of the creation operation

role_get

Get details of a specific Role.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name

Returns: Detailed information about the Role

role_delete

Delete a Role from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name

Returns: Status of the deletion operation

clusterrole_list

List all ClusterRoles in the cluster.

Args: context_name: The Kubernetes context name

Returns: List of ClusterRole basic information

clusterrole_create

Create a ClusterRole in the cluster.

Args: context_name: The Kubernetes context name name: The ClusterRole name rules: List of policy rules

Returns: Status of the creation operation

clusterrole_get

Get details of a specific ClusterRole.

Args: context_name: The Kubernetes context name name: The ClusterRole name

Returns: Detailed information about the ClusterRole

clusterrole_delete

Delete a ClusterRole from the cluster.

Args: context_name: The Kubernetes context name name: The ClusterRole name

Returns: Status of the deletion operation

secret_list

List all Secrets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Secret basic information

secret_create

Create a Secret in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Secret name data: A dictionary of key-value pairs (values will be base64 encoded) secret_type: The type of the Secret (default is "Opaque")

Returns: Status of the creation operation

secret_get

Get details of a specific Secret.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Secret name

Returns: Detailed information about the Secret

secret_update

Update an existing Secret in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Secret name data: A dictionary of key-value pairs (values will be base64 encoded)

Returns: Status of the update operation

secret_delete

Delete a Secret from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Secret name

Returns: Status of the deletion operation

service_list

List all Services in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Service basic information

service_create

Create a Service in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name selector: A dictionary of labels to select the target pods ports: A list of ports (e.g., [{"port": 80, "target_port": 8080}]) service_type: The type of the Service (default is "ClusterIP")

Returns: Status of the creation operation

service_get

Get details of a specific Service.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name

Returns: Detailed information about the Service

service_update

Update an existing Service's metadata (e.g., labels).

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name labels: New labels to apply to the Service

Returns: Status of the update operation

service_delete

Delete a Service from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name

Returns: Status of the deletion operation

serviceaccount_list

List all ServiceAccounts in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of ServiceAccount basic information

serviceaccount_create

Create a ServiceAccount in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ServiceAccount name labels: Optional labels to apply to the ServiceAccount

Returns: Status of the creation operation

serviceaccount_get

Get details of a specific ServiceAccount.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ServiceAccount name

Returns: Detailed information about the ServiceAccount

serviceaccount_delete

Delete a ServiceAccount from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ServiceAccount name

Returns: Status of the deletion operation

statefulset_list

List all StatefulSets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of StatefulSet basic information

statefulset_create

Create a StatefulSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The StatefulSet name image: The container image to use replicas: Number of replicas labels: Labels to apply to the StatefulSet

Returns: Status of the creation operation

statefulset_get

Get details of a specific StatefulSet.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The StatefulSet name

Returns: Detailed information about the StatefulSet

statefulset_update

Update an existing StatefulSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The StatefulSet name image: The new container image to update replicas: The new number of replicas

Returns: Status of the update operation

statefulset_delete

Delete a StatefulSet from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The StatefulSet name

Returns: Status of the deletion operation

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/bourbonkk/k8s-pilot'

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