clusterport

v0.1.0
io.github.CloudCorpRecords/clusterport Checked 19 hours ago Published 1 month ago

Core kubectl operations: get, describe, logs, apply, scale, patch, rollout and explain.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kubectl_get

Get Kubernetes resources with kubectl get, as JSON by default.

ParameterTypeDescription
resource_type *stringKubernetes resource type to get, such as pods, deployments, or services.
namestringName of the specific resource to get; when omitted, all resources of the type are listed.
namespacestringNamespace of the resource to get; when omitted, the current-context default namespace is used.
output_formatstringOutput format for kubectl get, such as json or yaml; defaults to json.

kubectl_describe

Describe one Kubernetes resource with kubectl describe.

ParameterTypeDescription
name *stringName of the resource to describe.
resource_type *stringKubernetes resource type to describe, such as pod, deployment, or service.
namespacestringNamespace of the resource to describe; when omitted, the current-context default namespace is used.

kubectl_logs

Fetch logs from a Kubernetes pod with kubectl logs.

ParameterTypeDescription
name *stringName of the pod to fetch logs from.
containerstringContainer name within the pod to fetch logs from, for pods with multiple containers.
namespacestringNamespace of the pod; when omitted, the current-context default namespace is used.

kubectl_apply

Apply a manifest with kubectl apply, sent over stdin.

ParameterTypeDescription
manifest *stringKubernetes manifest content to apply, sent to kubectl apply over stdin.
dry_runbooleanWhen true, run as a client-side dry run without persisting any changes.
namespacestringNamespace to apply the manifest into; when omitted, the manifest or default namespace is used.

kubectl_create

Create a resource from a generated manifest spec, sent over stdin.

ParameterTypeDescription
name *stringName for the resource to create.
resource_type *stringKubernetes resource type to create, such as deployment or pod.
imagestringContainer image to use in the generated manifest; defaults to the resource name when omitted.
namespacestringNamespace to create the resource in; when omitted, no namespace is set in the generated manifest.

kubectl_delete

Delete one Kubernetes resource with kubectl delete.

ParameterTypeDescription
name *stringName of the resource to delete.
resource_type *stringKubernetes resource type to delete, such as pod, deployment, or service.
namespacestringNamespace of the resource to delete; when omitted, the current-context default namespace is used.

kubectl_scale

Scale a workload with kubectl scale.

ParameterTypeDescription
name *stringName of the workload to scale.
replicas *numberNumber of replicas to scale the workload to.
resource_type *stringKubernetes resource type to scale, such as deployment or replicaset.
namespacestringNamespace of the workload to scale; when omitted, the current-context default namespace is used.

kubectl_patch

Patch one Kubernetes resource with kubectl patch.

ParameterTypeDescription
name *stringName of the resource to patch.
patch *stringPatch content to apply to the resource, passed to kubectl patch with -p.
resource_type *stringKubernetes resource type to patch, such as deployment or service.
namespacestringNamespace of the resource to patch; when omitted, the current-context default namespace is used.

kubectl_rollout

Run a kubectl rollout action (status, history, restart, undo, pause, resume).

ParameterTypeDescription
action *stringRollout action to run: status, history, restart, undo, pause, or resume.
name *stringName of the resource to run the rollout action on.
resource_type *stringKubernetes resource type for the rollout, such as deployment.
namespacestringNamespace of the resource; when omitted, the current-context default namespace is used.

kubectl_context

Read or switch the kubectl context (current, list, use).

ParameterTypeDescription
operation *stringContext operation to perform: current, list, or use.
namestringName of the context to switch to; required when the operation is use.

explain_resource

Explain a Kubernetes resource schema with kubectl explain.

ParameterTypeDescription
resource *stringKubernetes resource or field path to explain, such as pod or pod.spec.containers.
api_versionstringAPI version to explain the resource against, passed as --api-version; when omitted, the default version is used.

list_api_resources

List the API resources the cluster serves, optionally filtered by kind.

ParameterTypeDescription
kindstringKind to filter the API resource list by, matched case-insensitively; when omitted, all resources are listed.