Skip to main content

ack kubeconfig

Manage ACK kubeconfig credentials

Run ecctl ack kubeconfig <action> -h for usage, or ecctl schema ack.kubeconfig.<action> --full for the complete, agent-readable spec of every parameter and behavior.

create

ecctl ack kubeconfig create [flags]

Issue kubeconfig

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeClusterUserKubeconfigWhen --user-id is not specified.Read the resource view.
DescribeSubaccountK8sClusterUserConfigWhen --user-id is specified.Read the resource view.
ParameterTypeRequiredDescription
--clusterstringACK cluster ID
--regionstringAlibaba Cloud region
--expire-timeintegerKubeConfig validity duration; create sends minutes, update sends hours as required by ACK
--private-ipbooleanreturn the private endpoint kubeconfig
--user-idstringRAM user or role ID for subaccount kubeconfig issuance or user-scope state queries

update

ecctl ack kubeconfig update [flags]

Update kubeconfig expiration

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
UpdateK8sClusterUserConfigExpireEvery time the command runs.Perform the resource operation.
ParameterTypeRequiredDescription
--clusterstringACK cluster ID
--expire-timeintegerKubeConfig validity duration; create sends minutes, update sends hours as required by ACK
--regionstringAlibaba Cloud region
--user-idstringRAM user or role ID for subaccount kubeconfig issuance or user-scope state queries

get

ecctl ack kubeconfig get [flags]

Get kubeconfig

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeClusterUserKubeconfigEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--clusterstringACK cluster ID
--regionstringAlibaba Cloud region
--fieldsstringcomma-separated resource fields to include
--private-ipbooleanreturn the private endpoint kubeconfig

list

ecctl ack kubeconfig list [flags]

List kubeconfig states

  • Kind: read · Risk: low
APIWhen calledPurpose
ListClusterKubeconfigStatesWhen --scope does not equal user.Read the resource view.
ListUserKubeConfigStatesWhen --scope equals user.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--clusterstringACK cluster ID
--fieldsstringcomma-separated resource fields to include
--limitintegermaximum kubeconfig states to return (default: 50)
--pageintegerresults page to return (default: 1)
--scopestringstate query scope (default: cluster)
--user-idstringRAM user or role ID for subaccount kubeconfig issuance or user-scope state queries

revoke

ecctl ack kubeconfig revoke [flags]

Revoke kubeconfig

  • Kind: mutation · Risk: medium
APIWhen calledPurpose
RevokeK8sClusterKubeConfigEvery time the command runs.Perform the resource operation.
ParameterTypeRequiredDescription
--clusterstringACK cluster ID
--regionstringAlibaba Cloud region