Programatically copies a kubeconfig file from an Azure Container Service Kubernetes cluster to a Spinnaker machine.
Note: This script is only intended for use when copying the kubeconfig programatically with a Service Principal (aka when you do not have access to the ssh private key). If you want to do this manually, you can simply use 'scp'.
This must be executed on a machine with an existing Spinnaker instance. The 'az' cli must be installed and you must already be logged in with the correct subscription set.
Name | Description |
---|---|
--user_name -un |
The admin user name for the Kubernetes cluster. |
--resource_group -rg |
The resource group containing the Kubernetes cluster. |
--master_fqdn -mf |
The FQDN for the master VMs in the Kubernetes cluster. |
./copy_kube_config.sh --user_name "adminuser" --resource_group "resourcegroup" --master_fqdn "samplemgmt.westus.cloudapp.azure.com"