connect_cluster
Generate and bind a KUBECONFIG to a specified ClusterRole for accessing and managing a Kubernetes cluster, with cluster-admin as the default role.
Instructions
Generates the KUBECONFIG for the managed cluster and binds it to the specified ClusterRole (default: cluster-admin).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cluster | Yes | The target cluster where the ServiceAccount will be created for the KUBECONFIG. | |
clusterRole | No | The ClusterRole defining permissions to access the cluster | cluster-admin |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cluster": {
"description": "The target cluster where the ServiceAccount will be created for the KUBECONFIG.",
"type": "string"
},
"clusterRole": {
"default": "cluster-admin",
"description": "The ClusterRole defining permissions to access the cluster",
"type": "string"
}
},
"required": [
"cluster"
],
"type": "object"
}