-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Do not merge] Migration diff upstream acs-engine master #16
Changes from 17 commits
93589b4
9ed1610
7d19218
030e5dc
069d9e4
2f1bfe6
bb4b9bc
0dda4bb
9fa6a69
fa3d6ff
1e10c0d
fd2a409
8d96a93
efa144e
ae0caf8
87f7746
295461d
7d91a71
375d0c0
1294a58
89f4b2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ACSE_POSTDEPLOY=examples/k8s-upgrade/k8s-upgrade.sh | ||
EXPECTED_ORCHESTRATOR_VERSION=1.8.8 | ||
EXPECTED_ORCHESTRATOR_VERSION=1.8.8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,11 @@ spec: | |
matchLabels: | ||
k8s-app: kube-dns | ||
version: v20 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
|
@@ -168,3 +173,4 @@ spec: | |
serviceAccountName: kube-dns | ||
nodeSelector: | ||
beta.kubernetes.io/os: linux | ||
agentpool: system | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. acc only |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,6 @@ spec: | |
- "--feature-gates=ExperimentalCriticalPodAnnotation=true" | ||
image: "<kubernetesHyperkubeSpec>" | ||
name: kube-proxy | ||
resources: | ||
requests: | ||
cpu: 100m | ||
securityContext: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. acc only There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. side question: shall we add agentpool: agentpool1 to the nodeSelector? |
||
privileged: true | ||
volumeMounts: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,15 @@ | |
{{if eq $seq 1}} | ||
"primary": true, | ||
{{end}} | ||
{{if eq $.Name "system"}} | ||
"privateIPAddress": "[concat(variables('masterFirstAddrPrefix'), copyIndex(add(50, int(variables('masterFirstAddrOctet4')))))]", | ||
"privateIPAllocationMethod": "Static", | ||
{{else if eq $.Name "agentpool1"}} | ||
"privateIPAddress": "[concat(variables('masterFirstAddrPrefix'), copyIndex(add(100, int(variables('masterFirstAddrOctet4')))))]", | ||
"privateIPAllocationMethod": "Static", | ||
{{else}} | ||
"privateIPAllocationMethod": "Dynamic", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. acc only |
||
{{end}} | ||
"subnet": { | ||
"id": "[variables('{{$.Name}}VnetSubnetID')]" | ||
} | ||
|
@@ -71,10 +79,25 @@ | |
], | ||
{{end}} | ||
{{end}} | ||
"kind": "Storage", | ||
"location": "[variables('location')]", | ||
"name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('{{.Name}}AccountName'))]", | ||
"properties": { | ||
"accountType": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
"encryption": { | ||
"keySource": "Microsoft.Storage", | ||
"services": { | ||
"blob": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"supportsHttpsTrafficOnly": true | ||
}, | ||
"sku": { | ||
"name": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
}, | ||
"type": "Microsoft.Storage/storageAccounts" | ||
}, | ||
|
@@ -92,10 +115,25 @@ | |
], | ||
{{end}} | ||
{{end}} | ||
"kind": "Storage", | ||
"location": "[variables('location')]", | ||
"name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(variables('dataStorageAccountPrefixSeed')),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(variables('dataStorageAccountPrefixSeed')),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('{{.Name}}DataAccountName'))]", | ||
"properties": { | ||
"accountType": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
"encryption": { | ||
"keySource": "Microsoft.Storage", | ||
"services": { | ||
"blob": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"supportsHttpsTrafficOnly": true | ||
}, | ||
"sku": { | ||
"name": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
}, | ||
"type": "Microsoft.Storage/storageAccounts" | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,11 +56,7 @@ echo `date`,`hostname`, startscript>>/opt/m | |
# A delay to start the kubernetes processes is necessary | ||
# if a reboot is required. Otherwise, the agents will encounter issue: | ||
# https://github.com/kubernetes/kubernetes/issues/41185 | ||
if [ -f /var/run/reboot-required ]; then | ||
REBOOTREQUIRED=true | ||
else | ||
REBOOTREQUIRED=false | ||
fi | ||
REBOOTREQUIRED=false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need to make it configurable via apimodel |
||
|
||
if [[ ! -z "${MASTER_NODE}" ]]; then | ||
echo "executing master node provision operations" | ||
|
@@ -138,15 +134,18 @@ touch "${APISERVER_PUBLIC_KEY_PATH}" | |
chmod 0644 "${APISERVER_PUBLIC_KEY_PATH}" | ||
chown root:root "${APISERVER_PUBLIC_KEY_PATH}" | ||
|
||
AZURE_JSON_PATH="/etc/kubernetes/azure.json" | ||
touch "${AZURE_JSON_PATH}" | ||
chmod 0600 "${AZURE_JSON_PATH}" | ||
chown root:root "${AZURE_JSON_PATH}" | ||
if [[ ! -z "${MASTER_NODE}" ]]; then | ||
echo "MASTER_NODE is non-empty, master node, configure azure json." | ||
|
||
set +x | ||
echo "${KUBELET_PRIVATE_KEY}" | base64 --decode > "${KUBELET_PRIVATE_KEY_PATH}" | ||
echo "${APISERVER_PUBLIC_KEY}" | base64 --decode > "${APISERVER_PUBLIC_KEY_PATH}" | ||
cat << EOF > "${AZURE_JSON_PATH}" | ||
AZURE_JSON_PATH="/etc/kubernetes/azure.json" | ||
touch "${AZURE_JSON_PATH}" | ||
chmod 0600 "${AZURE_JSON_PATH}" | ||
chown root:root "${AZURE_JSON_PATH}" | ||
|
||
set +x | ||
echo "${KUBELET_PRIVATE_KEY}" | base64 --decode > "${KUBELET_PRIVATE_KEY_PATH}" | ||
echo "${APISERVER_PUBLIC_KEY}" | base64 --decode > "${APISERVER_PUBLIC_KEY_PATH}" | ||
cat << EOF > "${AZURE_JSON_PATH}" | ||
{ | ||
"cloud":"${TARGET_ENVIRONMENT}", | ||
"tenantId": "${TENANT_ID}", | ||
|
@@ -173,6 +172,9 @@ cat << EOF > "${AZURE_JSON_PATH}" | |
"useInstanceMetadata": ${USE_INSTANCE_METADATA} | ||
} | ||
EOF | ||
else | ||
echo "MASTER_NODE is empty, worker node, skip azure json." | ||
fi | ||
|
||
########################################################### | ||
# END OF SECRET DATA | ||
|
@@ -742,6 +744,8 @@ if [[ ! -z "${MASTER_NODE}" ]]; then | |
ensureEtcd | ||
ensureK8s | ||
ensurePodSecurityPolicy | ||
|
||
/usr/local/bin/kubectl create clusterrolebinding superuser --clusterrole=cluster-admin --user=client | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. acc only? still needed? @robbiezhang |
||
fi | ||
|
||
if [[ $OS == $UBUNTU_OS_NAME ]]; then | ||
|
@@ -754,6 +758,12 @@ fi | |
|
||
echo "Install complete successfully" | ||
|
||
if [ -f /var/run/reboot-required ]; then | ||
REBOOTREQUIRED=true | ||
else | ||
REBOOTREQUIRED=false | ||
fi | ||
|
||
if $REBOOTREQUIRED; then | ||
# wait 1 minute to restart node, so that the custom script extension can complete | ||
echo 'reboot required, rebooting node in 1 minute' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
"name": "[variables('masterAvailabilitySet')]", | ||
"properties": | ||
{ | ||
"platformFaultDomainCount": "2", | ||
"platformUpdateDomainCount": "3", | ||
"platformFaultDomainCount": "1", | ||
"platformUpdateDomainCount": "1", | ||
"managed" : "true" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make configurable |
||
}, | ||
"type": "Microsoft.Compute/availabilitySets" | ||
|
@@ -26,10 +26,25 @@ | |
"[concat('Microsoft.Network/publicIPAddresses/', variables('masterPublicIPAddressName'))]" | ||
], | ||
{{end}} | ||
"kind": "Storage", | ||
"location": "[variables('location')]", | ||
"name": "[variables('masterStorageAccountName')]", | ||
"properties": { | ||
"accountType": "[variables('vmSizesMap')[variables('masterVMSize')].storageAccountType]" | ||
"encryption": { | ||
"keySource": "Microsoft.Storage", | ||
"services": { | ||
"blob": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"supportsHttpsTrafficOnly": true | ||
}, | ||
"sku": { | ||
"name": "[variables('vmSizesMap')[variables('masterVMSize')].storageAccountType]" | ||
}, | ||
"type": "Microsoft.Storage/storageAccounts" | ||
}, | ||
|
@@ -79,36 +94,6 @@ | |
"name": "[variables('nsgName')]", | ||
"properties": { | ||
"securityRules": [ | ||
{{if .HasWindows}} | ||
{ | ||
"name": "allow_rdp", | ||
"properties": { | ||
"access": "Allow", | ||
"description": "Allow RDP traffic to master", | ||
"destinationAddressPrefix": "*", | ||
"destinationPortRange": "3389-3389", | ||
"direction": "Inbound", | ||
"priority": 102, | ||
"protocol": "Tcp", | ||
"sourceAddressPrefix": "*", | ||
"sourcePortRange": "*" | ||
} | ||
}, | ||
{{end}} | ||
{ | ||
"name": "allow_ssh", | ||
"properties": { | ||
"access": "Allow", | ||
"description": "Allow SSH traffic to master", | ||
"destinationAddressPrefix": "*", | ||
"destinationPortRange": "22-22", | ||
"direction": "Inbound", | ||
"priority": 101, | ||
"protocol": "Tcp", | ||
"sourceAddressPrefix": "*", | ||
"sourcePortRange": "*" | ||
} | ||
}, | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make configurable |
||
"name": "allow_kube_tls", | ||
"properties": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,7 @@ | |
"sshKeyPath": "[concat('/home/',variables('username'),'/.ssh/authorized_keys')]", | ||
|
||
{{if .HasStorageAccountDisks}} | ||
"apiVersionStorage": "2015-06-15", | ||
"apiVersionStorage": "2016-12-01", | ||
"maxVMsPerStorageAccount": 20, | ||
"maxStorageAccountsPerAgent": "[div(variables('maxVMsPerPool'),variables('maxVMsPerStorageAccount'))]", | ||
"dataStorageAccountPrefixSeed": 97, | ||
|
@@ -211,10 +211,10 @@ | |
{{end}} | ||
"provisionScript": "{{GetKubernetesB64Provision}}", | ||
"mountetcdScript": "{{GetKubernetesB64Mountetcd}}", | ||
"provisionScriptParametersCommon": "[concat('TENANT_ID=',variables('tenantID'),' APISERVER_PUBLIC_KEY=',variables('apiserverCertificate'),' SUBSCRIPTION_ID=',variables('subscriptionId'),' RESOURCE_GROUP=',variables('resourceGroup'),' LOCATION=',variables('location'),' SUBNET=',variables('subnetName'),' NETWORK_SECURITY_GROUP=',variables('nsgName'),' VIRTUAL_NETWORK=',variables('virtualNetworkName'),' VIRTUAL_NETWORK_RESOURCE_GROUP=',variables('virtualNetworkResourceGroupName'),' ROUTE_TABLE=',variables('routeTableName'),' PRIMARY_AVAILABILITY_SET=',variables('primaryAvailabilitySetName'),' SERVICE_PRINCIPAL_CLIENT_ID=',variables('servicePrincipalClientId'),' SERVICE_PRINCIPAL_CLIENT_SECRET=',variables('singleQuote'),variables('servicePrincipalClientSecret'),variables('singleQuote'),' KUBELET_PRIVATE_KEY=',variables('clientPrivateKey'),' TARGET_ENVIRONMENT=',variables('targetEnvironment'),' NETWORK_POLICY=',variables('networkPolicy'),' FQDNSuffix=',variables('fqdnEndpointSuffix'),' VNET_CNI_PLUGINS_URL=',variables('vnetCniLinuxPluginsURL'),' CNI_PLUGINS_URL=',variables('cniPluginsURL'),' MAX_PODS=',variables('maxPods'),' CLOUDPROVIDER_BACKOFF=',variables('cloudProviderBackoff'),' CLOUDPROVIDER_BACKOFF_RETRIES=',variables('cloudProviderBackoffRetries'),' CLOUDPROVIDER_BACKOFF_EXPONENT=',variables('cloudProviderBackoffExponent'),' CLOUDPROVIDER_BACKOFF_DURATION=',variables('cloudProviderBackoffDuration'),' CLOUDPROVIDER_BACKOFF_JITTER=',variables('cloudProviderBackoffJitter'),' CLOUDPROVIDER_RATELIMIT=',variables('cloudProviderRatelimit'),' CLOUDPROVIDER_RATELIMIT_QPS=',variables('cloudProviderRatelimitQPS'),' CLOUDPROVIDER_RATELIMIT_BUCKET=',variables('cloudProviderRatelimitBucket'),' USE_MANAGED_IDENTITY_EXTENSION=',variables('useManagedIdentityExtension'),' USE_INSTANCE_METADATA=',variables('useInstanceMetadata'),' CONTAINER_RUNTIME=',variables('containerRuntime'),' KUBECONFIG_SERVER=',variables('kubeconfigServer'))]", | ||
"provisionScriptParametersCommon": "[concat('KUBELET_PRIVATE_KEY=',variables('clientPrivateKey'),' NETWORK_POLICY=',variables('networkPolicy'),' APISERVER_PUBLIC_KEY=',variables('apiserverCertificate'),' MAX_PODS=',variables('maxPods'),' CONTAINER_RUNTIME=',variables('containerRuntime'))]", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. configurable |
||
|
||
{{if not IsHostedMaster}} | ||
"provisionScriptParametersMaster": "[concat('MASTER_NODE=true TOTAL_NODES=',variables('totalNodes'),' APISERVER_PRIVATE_KEY=',variables('apiServerPrivateKey'),' CA_CERTIFICATE=',variables('caCertificate'),' CA_PRIVATE_KEY=',variables('caPrivateKey'),' MASTER_FQDN=',variables('masterFqdnPrefix'),' KUBECONFIG_CERTIFICATE=',variables('kubeConfigCertificate'),' KUBECONFIG_KEY=',variables('kubeConfigPrivateKey'),' ETCD_SERVER_CERTIFICATE=',variables('etcdServerCertificate'),' ETCD_CLIENT_CERTIFICATE=',variables('etcdClientCertificate'),' ETCD_SERVER_PRIVATE_KEY=',variables('etcdServerPrivateKey'),' ETCD_CLIENT_PRIVATE_KEY=',variables('etcdClientPrivateKey'),' ETCD_PEER_CERTIFICATES=',string(variables('etcdPeerCertificates')),' ETCD_PEER_PRIVATE_KEYS=',string(variables('etcdPeerPrivateKeys')),' ADMINUSER=',variables('username'))]", | ||
"provisionScriptParametersMaster": "[concat('MASTER_NODE=true TOTAL_NODES=',variables('totalNodes'),' TENANT_ID=',variables('tenantID'),' SUBSCRIPTION_ID=',variables('subscriptionId'),' RESOURCE_GROUP=',variables('resourceGroup'),' LOCATION=',variables('location'),' SUBNET=',variables('subnetName'),' NETWORK_SECURITY_GROUP=',variables('nsgName'),' VIRTUAL_NETWORK=',variables('virtualNetworkName'),' VIRTUAL_NETWORK_RESOURCE_GROUP=',variables('virtualNetworkResourceGroupName'),' ROUTE_TABLE=',variables('routeTableName'),' PRIMARY_AVAILABILITY_SET=',variables('primaryAvailabilitySetName'),' SERVICE_PRINCIPAL_CLIENT_ID=',variables('servicePrincipalClientId'),' SERVICE_PRINCIPAL_CLIENT_SECRET=',variables('servicePrincipalClientSecret'),' TARGET_ENVIRONMENT=',variables('targetEnvironment'),' FQDNSuffix=',variables('fqdnEndpointSuffix'),' VNET_CNI_PLUGINS_URL=',variables('vnetCniLinuxPluginsURL'),' CNI_PLUGINS_URL=',variables('cniPluginsURL'),' CLOUDPROVIDER_BACKOFF=',variables('cloudProviderBackoff'),' CLOUDPROVIDER_BACKOFF_RETRIES=',variables('cloudProviderBackoffRetries'),' CLOUDPROVIDER_BACKOFF_EXPONENT=',variables('cloudProviderBackoffExponent'),' CLOUDPROVIDER_BACKOFF_DURATION=',variables('cloudProviderBackoffDuration'),' CLOUDPROVIDER_BACKOFF_JITTER=',variables('cloudProviderBackoffJitter'),' CLOUDPROVIDER_RATELIMIT=',variables('cloudProviderRatelimit'),' CLOUDPROVIDER_RATELIMIT_QPS=',variables('cloudProviderRatelimitQPS'),' CLOUDPROVIDER_RATELIMIT_BUCKET=',variables('cloudProviderRatelimitBucket'),' USE_MANAGED_IDENTITY_EXTENSION=',variables('useManagedIdentityExtension'),' USE_INSTANCE_METADATA=',variables('useInstanceMetadata'),' APISERVER_PRIVATE_KEY=',variables('apiServerPrivateKey'),' CA_CERTIFICATE=',variables('caCertificate'),' CA_PRIVATE_KEY=',variables('caPrivateKey'),' MASTER_FQDN=',variables('masterFqdnPrefix'),' KUBECONFIG_CERTIFICATE=',variables('kubeConfigCertificate'),' KUBECONFIG_KEY=',variables('kubeConfigPrivateKey'),' ETCD_SERVER_CERTIFICATE=',variables('etcdServerCertificate'),' ETCD_CLIENT_CERTIFICATE=',variables('etcdClientCertificate'),' ETCD_SERVER_PRIVATE_KEY=',variables('etcdServerPrivateKey'),' ETCD_CLIENT_PRIVATE_KEY=',variables('etcdClientPrivateKey'),' ETCD_PEER_CERTIFICATES=',string(variables('etcdPeerCertificates')),' ETCD_PEER_PRIVATE_KEYS=',string(variables('etcdPeerPrivateKeys')),' ADMINUSER=',variables('username'),' KUBECONFIG_SERVER=',variables('kubeconfigServer'))]", | ||
{{end}} | ||
"generateProxyCertsScript": "{{GetKubernetesB64GenerateProxyCerts}}", | ||
"orchestratorNameVersionTag": "{{.OrchestratorProfile.OrchestratorType}}:{{.OrchestratorProfile.OrchestratorVersion}}", | ||
|
@@ -269,7 +269,7 @@ | |
"nsgName": "[concat(variables('agentNamePrefix'), 'nsg')]", | ||
{{end}} | ||
"nsgID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('nsgName'))]", | ||
"primaryAvailabilitySetName": "[concat('{{ (index .AgentPoolProfiles 0).Name }}-availabilitySet-',variables('nameSuffix'))]", | ||
"primaryAvailabilitySetName": "[concat('{{ (index .AgentPoolProfiles 1).Name }}-availabilitySet-',variables('nameSuffix'))]", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. acc only |
||
{{if not IsHostedMaster }} | ||
{{if IsPrivateCluster}} | ||
"kubeconfigServer": "[concat('https://', variables('kubernetesAPIServerIP'), ':443')]", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,10 +71,25 @@ | |
], | ||
{{end}} | ||
{{end}} | ||
"kind": "Storage", | ||
"location": "[variables('location')]", | ||
"name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('{{.Name}}AccountName'))]", | ||
"properties": { | ||
"accountType": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
"encryption": { | ||
"keySource": "Microsoft.Storage", | ||
"services": { | ||
"blob": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"supportsHttpsTrafficOnly": true | ||
}, | ||
"sku": { | ||
"name": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
}, | ||
"type": "Microsoft.Storage/storageAccounts" | ||
}, | ||
|
@@ -92,10 +107,25 @@ | |
], | ||
{{end}} | ||
{{end}} | ||
"kind": "Storage", | ||
"location": "[variables('location')]", | ||
"name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(variables('dataStorageAccountPrefixSeed')),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(variables('dataStorageAccountPrefixSeed')),variables('{{.Name}}StorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('{{.Name}}DataAccountName'))]", | ||
"properties": { | ||
"accountType": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
"encryption": { | ||
"keySource": "Microsoft.Storage", | ||
"services": { | ||
"blob": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true | ||
} | ||
} | ||
}, | ||
"supportsHttpsTrafficOnly": true | ||
}, | ||
"sku": { | ||
"name": "[variables('vmSizesMap')[variables('{{.Name}}VMSize')].storageAccountType]" | ||
}, | ||
"type": "Microsoft.Storage/storageAccounts" | ||
}, | ||
|
@@ -160,7 +190,10 @@ | |
"computername": "[concat(variables('{{.Name}}VMNamePrefix'), copyIndex(variables('{{.Name}}Offset')))]", | ||
{{GetKubernetesWindowsAgentCustomData .}} | ||
"adminUsername": "[variables('windowsAdminUsername')]", | ||
"adminPassword": "[variables('windowsAdminPassword')]" | ||
"adminPassword": "[variables('windowsAdminPassword')]", | ||
"windowsConfiguration": { | ||
"enableAutomaticUpdates": false | ||
} | ||
}, | ||
"storageProfile": { | ||
{{GetDataDisks .}} | ||
|
@@ -249,7 +282,7 @@ | |
"autoUpgradeMinorVersion": true, | ||
"settings": {}, | ||
"protectedSettings": { | ||
"commandToExecute": "[concat('powershell.exe -ExecutionPolicy Unrestricted -command \"', '$arguments = ', variables('singleQuote'),'-MasterIP ',variables('kubernetesAPIServerIP'),' -KubeDnsServiceIp ',variables('kubeDnsServiceIp'),' -MasterFQDNPrefix ',variables('masterFqdnPrefix'),' -Location ',variables('location'),' -AgentKey ',variables('clientPrivateKey'),' -AzureHostname ',variables('{{.Name}}VMNamePrefix'),copyIndex(variables('{{.Name}}Offset')),' -AADClientId ',variables('servicePrincipalClientId'),' -AADClientSecret ',variables('servicePrincipalClientSecret'),variables('singleQuote'), ' ; ', variables('windowsCustomScriptSuffix'), '\" > %SYSTEMDRIVE%\\AzureData\\CustomDataSetupScript.log 2>&1')]" | ||
"commandToExecute": "[concat('powershell.exe -ExecutionPolicy Unrestricted -command \"', '$arguments = ', variables('singleQuote'),'-MasterIP ',variables('kubernetesAPIServerIP'),' -KubeDnsServiceIp ',variables('kubeDnsServiceIp'),' -MasterFQDNPrefix ',variables('masterFqdnPrefix'),' -Location ',variables('location'),' -AgentKey ',variables('clientPrivateKey'),' -AzureHostname ',variables('{{.Name}}VMNamePrefix'),copyIndex(variables('{{.Name}}Offset')),variables('singleQuote'), ' ; ', variables('windowsCustomScriptSuffix'), '\" > %SYSTEMDRIVE%\\AzureData\\CustomDataSetupScript.log 2>&1')]" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. configurable |
||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acc only