You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After that, I have a kubeconfig file with which I can connect to my cluster with the modules of this collection. But is there a way I can pass arguments to the kubernetes.core.kubectl connection module, so that I can directly connect to my cluster, without executing kubectl vsphere login beforehand?
@yurnov Yes, that's almost what I am currently doing. You also have to add the KUBECTL_VSPHERE_PASSWORD environment variable to your first play. Your second play is not needed. You can directly call kubernetes.core.k8s in your first play as a second task. E. g.:
SUMMARY
When connecting to the Supervisor of a VMware TKG cluster, you have to use the following command manually:
After that, I have a kubeconfig file with which I can connect to my cluster with the modules of this collection. But is there a way I can pass arguments to the kubernetes.core.kubectl connection module, so that I can directly connect to my cluster, without executing
kubectl vsphere login
beforehand?ISSUE TYPE
COMPONENT NAME
kubectl
ANSIBLE VERSION
The text was updated successfully, but these errors were encountered: