k8s-connection-create
This command is used to create a new connection to the Kubernetes API server.
Syntax k8s-connection-create
cluster-name cluster-name-string |
Specify a name for the Kubernetes cluster. |
rest-user user name |
Specify the username for vREST access. |
Specify one or more of the following options: |
|
kube-config kube-config-string |
Specify the absolute path to the kubeconfig file. The Default file location is /root/.kube/config in case kube-config option is not specified. |
password password-string |
Specify the vREST password. |
enable|disable |
Specifies whether to enable or disable the connection to Kubernetes API server. |
track-history|no-track-history |
Specifies whether enable or disable Kubernetes cluster history tracking. |
disk-space disk-space-number |
Specify the disk-space allocated for history (including rotated log files). |
Defaults None.
Access CLI
History
Version 7.0.0 |
Command introduced. |
Usage Use this command to create a new connection to the Kubernetes API server.
Examples Use the following syntax to create a new connection to the Kubernetes API server.
CLI (network-admin@switch) > k8s-connection-create cluster-name
k8s01 kube-config /root/.kube/config
rest-user network-admin enable
rest-user password :
confirm rest-user password: