diff --git a/holmes/plugins/toolsets/kubernetes.yaml b/holmes/plugins/toolsets/kubernetes.yaml index a551cda..6b6ef68 100644 --- a/holmes/plugins/toolsets/kubernetes.yaml +++ b/holmes/plugins/toolsets/kubernetes.yaml @@ -5,17 +5,26 @@ toolsets: tools: - name: "kubectl_describe" - description: "Run kubectl describe on a Kubernetes resource" + description: > + Run kubectl describe -n , + call this when users ask for description, + for example when a user asks + - 'describe pod xyz-123' + - 'show service xyz-123 in namespace my-ns' command: "kubectl describe {{ kind }} {{ name }}{% if namespace %} -n {{ namespace }}{% endif %}" - - name: "kubectl_get" - description: "Run `kubectl get --show-labels`" - command: "kubectl get --show-labels -o wide {{ kind }} {{ name}}{% if namespace %} -n {{ namespace }}{% endif %}" + - name: "kubectl_get_by_name" + description: "Run `kubectl get --show-labels`" + command: "kubectl get --show-labels -o wide {{ kind }} {{ name }}{% if namespace %} -n {{ namespace }}{% endif %}" - - name: "kubectl_get_all" - description: "Run `kubectl get -A --show-labels` to get all resources of a given type in the cluster" - command: "kubectl get -A --show-labels -o wide {{ kind }}" + - name: "kubectl_get_by_kind_in_namespace" + description: "Run `kubectl get -n --show-labels` to get all resources of a given type in namespace" + command: "kubectl get --show-labels -o wide {{ kind }} -n {{namespace}}" + - name: "kubectl_get_by_kind_in_cluster" + description: "Run `kubectl get -A --show-labels` to get all resources of a given type in the cluster" + command: "kubectl get -A --show-labels -o wide {{ kind }}" + - name: "kubectl_find_resource" description: "Run `kubectl get {{ kind }} -A --show-labels | grep {{ keyword }}` to find a resource where you know a substring of the name, IP, namespace, or labels" command: "kubectl get -A --show-labels -o wide {{ kind }} | grep {{ keyword }}"