Skip to content
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

Closed
wants to merge 21 commits into from

Conversation

yolocs
Copy link

@yolocs yolocs commented Mar 8, 2018

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

jackfrancis and others added 17 commits January 18, 2018 11:48
fixes heapster connection issues
commit 203efbf
Author: Jiangtian Li <JiangtianLi@users.noreply.github.com>
Date:   Fri Jan 19 09:07:14 2018 -0800

    Extend windows os drive size when customized OSDiskSizeGB is used (Azure#2097)

commit 88ec2fb
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Thu Jan 11 13:49:44 2018 -0800

    Update the kube-dns addon

commit 217ad8d
Merge: 530bedb d8856c8
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Mon Jan 8 16:22:56 2018 -0800

    Merge remote-tracking branch 'origin/migration' into migration

commit d8856c8
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Jan 5 15:39:28 2018 -0800

    Remove the Allow SSH and RDP Rules from NSG

commit 530bedb
Merge: f3389a6 5070934
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Fri Jan 5 15:38:54 2018 -0800

    Merge tag 'v0.9.4' into migration

commit f3389a6
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Fri Dec 15 11:11:13 2017 -0800

    remove agent customscript and service file (yangl900#13)

    * remove agent specific custom script and service file.

    * remove cloud provider from windows start ps1

commit c2eda57
Merge: 8ef4f2b 004145c
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Tue Dec 12 18:05:13 2017 -0800

    Merge commit '004145cba163' into migration

commit 004145c
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Tue Dec 12 18:03:36 2017 -0800

    fix merge error: azure storage classes yaml

commit 8ef4f2b
Merge: adbc1cf bd006fc
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Mon Nov 27 18:24:06 2017 -0800

    Merge tag 'v0.9.3' into migration

commit adbc1cf
Merge: f8da501 7957245
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Wed Oct 25 14:36:24 2017 -0700

    Merge tag 'v0.8.0' into migration

commit f8da501
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Sep 1 16:38:00 2017 -0700

    Disable Windows Update

commit ac83868
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Sep 1 16:37:36 2017 -0700

    Use kubelet v1.6.6.1 for Windows agent

commit 5424f14
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Sep 1 16:36:47 2017 -0700

    Set master AvailabilitySet FaultDomainCount and UpdateDomainCount to 1

commit 5b1fbb0
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Tue Aug 15 12:23:41 2017 -0700

    Enable StorageAccount Encryption and Enforce HTTPS

commit 12fd01d
Author: Harry He <zhedahht@hotmail.com>
Date:   Fri Jul 7 10:16:03 2017 -0700

    Remove Resource Requests from kube-proxy (yangl900#5)

    Previously kube-proxy requested 100m CPU. It prevented containers requesting 1 CPU from being deployed onto nodes with 1 CPU, because there is only 900m CPU left.

    This change remove resource requests from kube-proxy.

commit 5241639
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Jul 7 14:23:32 2017 -0700

    Set the default CloudProvider backoff values

commit 549a4c2
Merge: 0506730 8a47cbd
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Jul 7 16:14:12 2017 -0700

    Merge with v0.3.0

commit 0506730
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Jul 7 13:01:18 2017 -0700

    Disable Automatic Windows Update

commit 8eb8afe
Merge: 639e36a fb09cdf
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Jul 7 12:07:03 2017 -0700

    Merge from upstream release v0.2.0

commit 639e36a
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Mon Jul 3 11:05:10 2017 -0700

    Remove azure.json from Windows Agent

commit c9d0704
Merge: bae0a8b 579e8b8
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Mon Jun 19 10:13:37 2017 -0700

    Merge tag 'v0.1.2' into migration

commit bae0a8b
Author: Raghu Shantha [MSFT] <raghus@microsoft.com>
Date:   Thu Jun 15 11:36:03 2017 -0700

    Enable Firewall on Node, Add Windows Firewall rules for required ports (yangl900#2)

    * Enable Firewall on Node, Add Windows Firewall rules for required ports

    * Added comments for firewall rules

    * Allow all traffic; lockdown kubectl Node ports to Master only

    * Remove & and single quote in comment section

    resource group deployment parser does not like these chars in the comment section

commit af24ad6
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Tue Jun 6 18:20:40 2017 -0700

    Enable RBAC on APIServer

commit e648d3d
Merge: 380bc58 cc95f47
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Wed May 24 11:01:11 2017 -0700

    Merge branch 'master' into migration

commit 380bc58
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Mon May 15 11:39:43 2017 -0700

    Fix: add the size map for F1

commit e64b446
Merge: 87c56c3 253dd41
Author: Wenjun Wu <wenjun.wu@live.com>
Date:   Sun May 14 15:47:20 2017 -0700

    Merge branch 'master' into migration

commit 87c56c3
Author: Robbie Zhang <junjiez@microsoft.com>
Date:   Fri Apr 14 12:55:21 2017 -0700

    Private Commit for Azure Console Shell

    Remove SPN secrets from agent node
    Remove the Kube Dashboard and Heapster Addons
    Add agentpool label on the agent nodes
    Use static IP address for system and agentpool1
* clear-containers: add runtime to api and pass through parameters

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: add scripts

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: add example

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: fix variables

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: add docs

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: update install script

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: fix script

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: update example

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: update features docs

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* clear-containers: make test linters happy

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* setKubeletOpts to work better with kubeconfig

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>

* whitespace cruft

* more whitespace fun

(cherry picked from commit 8bd7c2c)
Azure#2067)

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
(cherry picked from commit cdd2832)
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
@yolocs
Copy link
Author

yolocs commented Mar 9, 2018

Copy link
Collaborator

@wenwu449 wenwu449 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussion to decide scope

rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acc only

@@ -168,3 +173,4 @@ spec:
serviceAccountName: kube-dns
nodeSelector:
beta.kubernetes.io/os: linux
agentpool: system
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acc only

@@ -28,9 +28,6 @@ spec:
- "--feature-gates=ExperimentalCriticalPodAnnotation=true"
image: "<kubernetesHyperkubeSpec>"
name: kube-proxy
resources:
requests:
cpu: 100m
securityContext:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acc only

Copy link
Collaborator

@robbiezhang robbiezhang Mar 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

side question: shall we add agentpool: agentpool1 to the nodeSelector?

{{else if eq $.Name "agentpool1"}}
"privateIPAddress": "[concat(variables('masterFirstAddrPrefix'), copyIndex(add(100, int(variables('masterFirstAddrOctet4')))))]",
"privateIPAllocationMethod": "Static",
{{else}}
"privateIPAllocationMethod": "Dynamic",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acc only

else
REBOOTREQUIRED=false
fi
REBOOTREQUIRED=false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to make it configurable via apimodel

@@ -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'))]",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configurable

@@ -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'))]",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acc only

@@ -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')]"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configurable

[parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
$AADClientSecret
$AzureHostname
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configurable

"kubernetesmasteraddons-heapster-deployment.yaml",
"kube-heapster-deployment.yaml",
true,
},
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#18 changed this part, still need to be configurable

@wenwu449
Copy link
Collaborator

Close this as PR #17 is merged.

@wenwu449 wenwu449 closed this Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants