TMC SM 1.4
The TMC SM kubeconfig runs below args (command) via the yaml.
-- command - 'tanzu tmc cluster generate-token'
...
users:
- name: <user_name>
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- tmc
- cluster
- generate-token
command: tanzu
...
Solution:
Install the Tanzu Mission Control plugins.
(For more information, see Install Tanzu CLI Plugins.)
tanzu plugin install --group vmware-tmc/default
Create a context and log in.
(For more information, see the command reference for context.)
tanzu mission-control context create CONTEXT_NAME [flags]
-- use the flag -i - also --idp-type string = identity provider; it can be csp (default if omitted), pinniped, or vcd