Add the option to create a DNS record for bastion deployed to Azure (#3675)
This is rather convenient if you want to configure exceptions on a company firewall.
This commit is contained in:
parent
dc3195310c
commit
fb9155c450
2 changed files with 10 additions and 1 deletions
|
@ -7,6 +7,10 @@ cluster_name: example
|
||||||
# node that can be used to access the masters and minions
|
# node that can be used to access the masters and minions
|
||||||
use_bastion: false
|
use_bastion: false
|
||||||
|
|
||||||
|
# Set this to a prefered name that will be used as the first part of the dns name for your bastotion host. For example: k8s-bastion.<azureregion>.cloudapp.azure.com.
|
||||||
|
# This is convenient when exceptions have to be configured on a firewall to allow ssh to the given bastion host.
|
||||||
|
# bastion_domain_prefix: k8s-bastion
|
||||||
|
|
||||||
number_of_k8s_masters: 3
|
number_of_k8s_masters: 3
|
||||||
number_of_k8s_nodes: 3
|
number_of_k8s_nodes: 3
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,12 @@
|
||||||
"name": "{{bastionIPAddressName}}",
|
"name": "{{bastionIPAddressName}}",
|
||||||
"location": "[resourceGroup().location]",
|
"location": "[resourceGroup().location]",
|
||||||
"properties": {
|
"properties": {
|
||||||
"publicIPAllocationMethod": "Static"
|
"publicIPAllocationMethod": "Static",
|
||||||
|
"dnsSettings": {
|
||||||
|
{% if bastion_domain_prefix %}
|
||||||
|
"domainNameLabel": "{{ bastion_domain_prefix }}"
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue