mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 09:57:38 -02:30
add a variable for kube_apiserver at all
This commit is contained in:
@@ -19,6 +19,8 @@ admin_username: devops
|
|||||||
admin_password: changeme
|
admin_password: changeme
|
||||||
ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLRzcxbsFDdEibiyXCSdIFh7bKbXso1NqlKjEyPTptf3aBXHEhVil0lJRjGpTlpfTy7PHvXFbXIOCdv9tOmeH1uxWDDeZawgPFV6VSZ1QneCL+8bxzhjiCn8133wBSPZkN8rbFKd9eEUUBfx8ipCblYblF9FcidylwtMt5TeEmXk8yRVkPiCuEYuDplhc2H0f4PsK3pFb5aDVdaDT3VeIypnOQZZoUxHWqm6ThyHrzLJd3SrZf+RROFWW1uInIDf/SZlXojczUYoffxgT1lERfOJCHJXsqbZWugbxQBwqsVsX59+KPxFFo6nV88h3UQr63wbFx52/MXkX4WrCkAHzN ablock-vwfs@dell-lappy"
|
ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLRzcxbsFDdEibiyXCSdIFh7bKbXso1NqlKjEyPTptf3aBXHEhVil0lJRjGpTlpfTy7PHvXFbXIOCdv9tOmeH1uxWDDeZawgPFV6VSZ1QneCL+8bxzhjiCn8133wBSPZkN8rbFKd9eEUUBfx8ipCblYblF9FcidylwtMt5TeEmXk8yRVkPiCuEYuDplhc2H0f4PsK3pFb5aDVdaDT3VeIypnOQZZoUxHWqm6ThyHrzLJd3SrZf+RROFWW1uInIDf/SZlXojczUYoffxgT1lERfOJCHJXsqbZWugbxQBwqsVsX59+KPxFFo6nV88h3UQr63wbFx52/MXkX4WrCkAHzN ablock-vwfs@dell-lappy"
|
||||||
|
|
||||||
|
kube_apiserver_port: 6443
|
||||||
|
|
||||||
# Azure CIDRs
|
# Azure CIDRs
|
||||||
azure_vnet_cidr: 10.0.0.0/8
|
azure_vnet_cidr: 10.0.0.0/8
|
||||||
azure_admin_cidr: 10.241.2.0/24
|
azure_admin_cidr: 10.241.2.0/24
|
||||||
|
|||||||
@@ -62,8 +62,8 @@
|
|||||||
"id": "[concat(variables('lbID'), '/backendAddressPools/kube-api-backend')]"
|
"id": "[concat(variables('lbID'), '/backendAddressPools/kube-api-backend')]"
|
||||||
},
|
},
|
||||||
"protocol": "tcp",
|
"protocol": "tcp",
|
||||||
"frontendPort": 6443,
|
"frontendPort": "{{kube_apiserver_port}}",
|
||||||
"backendPort": 6443,
|
"backendPort": "{{kube_apiserver_port}}",
|
||||||
"enableFloatingIP": false,
|
"enableFloatingIP": false,
|
||||||
"idleTimeoutInMinutes": 5,
|
"idleTimeoutInMinutes": 5,
|
||||||
"probe": {
|
"probe": {
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
"name": "kube-api",
|
"name": "kube-api",
|
||||||
"properties": {
|
"properties": {
|
||||||
"protocol": "tcp",
|
"protocol": "tcp",
|
||||||
"port": 6443,
|
"port": "{{kube_apiserver_port}}",
|
||||||
"intervalInSeconds": 5,
|
"intervalInSeconds": 5,
|
||||||
"numberOfProbes": 2
|
"numberOfProbes": 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
"description": "Allow secure kube-api",
|
"description": "Allow secure kube-api",
|
||||||
"protocol": "Tcp",
|
"protocol": "Tcp",
|
||||||
"sourcePortRange": "*",
|
"sourcePortRange": "*",
|
||||||
"destinationPortRange": "6443",
|
"destinationPortRange": "{{kube_apiserver_port}}",
|
||||||
"sourceAddressPrefix": "Internet",
|
"sourceAddressPrefix": "Internet",
|
||||||
"destinationAddressPrefix": "*",
|
"destinationAddressPrefix": "*",
|
||||||
"access": "Allow",
|
"access": "Allow",
|
||||||
|
|||||||
Reference in New Issue
Block a user