Allow using a kubeconfig file for API server access. The main change is to configure the cell controller via kubeconfig instead of using InClusterConfig() if a kubeconfig file is provided to Kip.
I also refactored the way we create the network agent kubeconfig, adding support for loading the same or another kubeconfig file instead of creating one from a service account secret.
Node-cli only supports an environment variable and no command line option:
Allow using a kubeconfig file for API server access. The main change is to configure the cell controller via kubeconfig instead of using InClusterConfig() if a kubeconfig file is provided to Kip.
I also refactored the way we create the network agent kubeconfig, adding support for loading the same or another kubeconfig file instead of creating one from a service account secret.
Node-cli only supports an environment variable and no command line option:
For the network agent kubeconfig, I added
--network-agent-kubeconfig
.Example, using one kubeconfig file that will be used by Kip and also the network agent on cells: