Illumina Innovates with Rancher and Kubernetes
To enable the Azure cloud provider, besides setting the name as azure, there are specific configuration options that must be set. Additionally, the Azure node name must also match the Kubernetes node name.
azure
cloud_provider: name: azure azureCloudProvider: aadClientId: xxxxxxxxx aadClientSecret: xxxxxxxxx location: xxxxxxxxx resourceGroup: xxxxxxxxx subnetName: xxxxxxxxx subscriptionId: xxxxxxxxx vnetName: xxxxxxxxx tenantId: xxxxxxxxx securityGroupName: xxxxxxxxx
Since the Azure node name must match the Kubernetes node name, you override the Kubernetes name on the node by setting the hostname_override for each node. If you do not set the hostname_override, the Kubernetes node name will be set as the address, which will cause the Azure cloud provider to fail.
hostname_override
address
nodes: - address: x.x.x.x hostname_override: azure-rke1 user: ubuntu role: - controlplane - etcd - worker
Besides the minimum set of options, there are many other options that are supported in RKE: