kom

kom

3.6

If you are the rightful owner of kom and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

`kom` is a tool for Kubernetes operations, providing SDK-level encapsulation of kubectl and client-go.

Kom, or Kubernetes Operations Manager, is a comprehensive tool designed to simplify the management of Kubernetes resources. It acts as an SDK-level wrapper for kubectl and client-go, offering a range of functionalities for creating, updating, deleting, and retrieving Kubernetes resources. Kom supports various Kubernetes resource types, including custom resource definitions (CRDs), and allows users to perform operations such as resource querying, log retrieval, and file manipulation within pods. Additionally, it supports SQL-like queries for managing Kubernetes resources, enhancing the ease of resource management. Kom is particularly useful for managing multiple clusters, supporting both stdio and SSE modes, and offers a callback mechanism for extending business logic without tight coupling to Kubernetes operations.

Features

  • Simple and easy to use: Provides rich functionalities for resource operations, including built-in and CRD resources.
  • Multi-cluster support: Manage multiple Kubernetes clusters with ease using RegisterCluster.
  • MCP support: Supports multi-cluster MCP management with stdio and SSE modes, and offers over 100 combination operations.
  • Cross-namespace support: Query resources across namespaces using kom.Namespace().List().
  • Chained calls: Offers intuitive and straightforward resource operations through chained calls.

Tools

  1. category

    describe

  2. **Cluster Management

    List all registered Kubernetes clusters

  3. **Deployment Management

    Expanding capacity Deployment

  4. restart_deployment

    Restart Deployment

  5. stop_deployment

    Stop Deployment

  6. restore_deployment

    Restoring Deployment

  7. update_tag_deployment

    Update Deployment image tags

  8. rollout_history_deployment

    Query the Deployment upgrade history

  9. rollout_undo_deployment

    Rollback Deployment

  10. rollout_pause_deployment

    Pause Deployment upgrade

  11. rollout_resume_deployment

    Restoring Deployment Upgrade

  12. rollout_status_deployment

    Query the Deployment upgrade status

  13. hpa_list_deployment

    Query the HPA list of Deployment

  14. list_deployment_pods

    Get the list of Pods managed by Deployment

  15. **Dynamic resource management

    Get k8s resources

  16. describe_k8s_resource

    Description k8s resources

  17. delete_k8s_resource

    Delete k8s resources

  18. list_k8s_resource

    Get k8s resources in the form of a list

  19. list_k8s_event

    Get k8s events in the form of a list

  20. patch_k8s_resource

    Update k8s resources, update in JSON Patch

  21. label_k8s_resource

    Add or delete tags for k8s resources

  22. annotate_k8s_resource

    Add or delete comments for k8s resources

  23. **Node Management

    Add blemishes to nodes

  24. untaint_node

    Remove stains for nodes

  25. cordon_node

    Set up Cordon for nodes

  26. uncordon_node

    Cancel Cordon for node

  27. drain_node

    Perform Drain for nodes

  28. get_node_resource_usage

    Query the resource usage of nodes

  29. get_node_ip_usage

    Query the usage of Pod IP resources on the node

  30. get_node_pod_count

    Query the number of pods on the node

  31. **Pod Management

    List Pod files

  32. list_all_pod_files

    List all Pod files

  33. delete_pod_file

    Delete Pod file

  34. upload_file_to_pod

    Upload files into the pod, supports passing text content, and is stored as files within the pod

  35. get_pod_logs

    Get Pod log

  36. run_command_in_pod

    Execute commands in Pod

  37. get_pod_linked_service

    Get the Pod-associated Service

  38. get_pod_linked_ingress

    Get the Ingress associated with Pod

  39. get_pod_linked_endpoints

    Get Pod-associated Endpoints

  40. get_pod_linked_pvc

    Get the PVC associated with Pod

  41. get_pod_linked_pv

    Get the PV associated with Pod

  42. get_pod_linked_env

    Get Pod runtime environment variables by running env command inside pod

  43. get_pod_linked_env_from_yaml

    Get Pod runtime environment variables through Pod yaml definition

  44. get_pod_resource_usage

    Get the resource usage of the Pod, including requested values, limit values, allocable values ​​and usage ratios of CPU and memory

  45. **YAML Management

    Apply YAML resources

  46. delete_yaml

    Delete YAML resources

  47. **Storage Management

    Set the default StorageClass

  48. get_storageclass_pvc_count

    Get the number of PVCs under StorageClass

  49. get_storageclass_pv_count

    Get the number of PVs under StorageClass

  50. **Ingress Management

    Set the default IngressClass