diff --git a/holmes/plugins/toolsets/kubernetes.yaml b/holmes/plugins/toolsets/kubernetes.yaml index d9cf59e..c846a82 100644 --- a/holmes/plugins/toolsets/kubernetes.yaml +++ b/holmes/plugins/toolsets/kubernetes.yaml @@ -3,31 +3,31 @@ toolsets: prerequisites: - command: "kubectl version --client" - tools: - - name: "kubectl_describe" - 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_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_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 }}" + tools: + - name: "kubectl_describe" + 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_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_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 }}" - name: "kubectl_get_yaml" description: "Run `kubectl get -o yaml` on a single Kubernetes resource"