-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
- Also pre-create a DNS Name for the frontend LB's IP that get assigned to the controlplane VM. - precreate internal LB for the API server and set default internal IP for it. - update templates with new DNS name for the API Server. - Update /etc/hosts on the worker nodes with internal IP and DNS name of the public LB.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureCluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
spec: | ||
networkSpec: | ||
apiServerLB: | ||
# Hack: We pre-create this public IP and the DNS name to use it in the | ||
# worker node's /etc/hosts. This resolves the routing issue due to newly | ||
# implemented security rules in Azure. | ||
frontendIPs: | ||
- name: ${CLUSTER_NAME}-api-lb | ||
publicIP: | ||
name: ${CLUSTER_NAME}-api-lb | ||
dnsName: ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
spec: | ||
template: | ||
spec: | ||
# Hack: /etc/hosts file is updated with a pre-created DNS name of the API server and internal LB | ||
# so that worker nodes can access the API server using the internal IP. | ||
# 10.0.0.100 is the default IP that gets assigned to a internal load balancer. | ||
preKubeadmCommands: | ||
- echo '10.0.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-win" | ||
spec: | ||
template: | ||
spec: | ||
# Hack: /etc/hosts file is updated with a pre-created DNS name of the API server and internal LB | ||
# so that worker nodes can access the API server using the internal IP. | ||
# 10.0.0.100 is the default IP that gets assigned to a internal load balancer. | ||
preKubeadmCommands: | ||
- powershell -Command "Add-Content -Path 'C:\\Windows\\System32\\drivers\\etc\\hosts' -Value '10.0.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com'" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.