Skip to content

Commit

Permalink
[ACS] Remove k8s-master from dns names (Azure#1444)
Browse files Browse the repository at this point in the history
* Remove k8s-master from dns names

* Rebase.
  • Loading branch information
brendandburns authored and derekbekoe committed Dec 4, 2016
1 parent a317d18 commit 995a395
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def acs_create(resource_group_name, deployment_name, dns_name_prefix, name, ssh_
client_secret = binascii.b2a_hex(os.urandom(10)).decode('utf-8')
store_acs_service_principal(client_secret, None)
salt = binascii.b2a_hex(os.urandom(3)).decode('utf-8')
url = 'http://{}.{}-k8s-masters.{}.cloudapp.azure.com'.format(salt, dns_name_prefix, location)
url = 'http://{}.{}.{}.cloudapp.azure.com'.format(salt, dns_name_prefix, location)

service_principal = _build_service_principal(name, url, client_secret)
logger.info('Created a service principal: %s', service_principal)
Expand Down Expand Up @@ -339,14 +339,14 @@ def _create_kubernetes(resource_group_name, deployment_name, dns_name_prefix, na
},
"masterProfile": {
"count": 1,
"dnsPrefix": dns_name_prefix + '-k8s-masters'
"dnsPrefix": dns_name_prefix
},
"agentPoolProfiles": [
{
"name": "agentpools",
"count": agent_count,
"vmSize": agent_vm_size,
"dnsPrefix": dns_name_prefix + '-k8s-agents',
"dnsPrefix": dns_name_prefix + '-k8s-agents'
}
],
"linuxProfile": {
Expand Down

0 comments on commit 995a395

Please sign in to comment.