Граф коммитов

136 Коммитов

Автор SHA1 Сообщение Дата
dmitsh c94ad1dfea enable k8s 1.8 upgrade (#1588)
* enable k8s 1.8 upgrade

* added unit test

* master rebase

* typo
2017-10-12 16:04:28 -07:00
dmitsh a2702cf8d0 simplified upgrade command, split upgrade API (#1558)
* simplified upgrade command
split upgrade API

* addressed lint warnings

* addressed comments
2017-10-09 14:53:27 -07:00
Jack b86448b441 Cordon and Drain agent nodes during upgrade (#1541)
* vendoring kubernetes/client-go

* removing code that was added to make sure vendoring worked

* copying code from kubernetes/kubernetes to do drain command

Still need to make it testable. and then test it.

* making the code unit testable and writing unit tests.

* needed to merge manually for rebase

* updating upgrade command to validate location parameter and updating e2e test file to pass in location

* fixing style mistake

* More style fixes

* fixing some build breaks

had been using make test to build and that doesn't build the commands

* fixing upgrade api to accept kube config

Also commented out drain due to issues found. Opened issues for them
#1548 #1547

* changing string constant in test to show is a kubeconfig being passed in

* adding missing import

* reverting a strange change that snuck in.

* not introducing a new error path in tests

* making timeout honored and passed as a parameter so it will be configurable in the RP
2017-10-09 10:14:50 -07:00
Jingtao Ren 4c26ad6275 Deprecate OrchestratorRelease in the internal api model (#1538)
* deprecate orchestratorRelease, and make build pass

* fix tests after deprecating orchestratorRelease

* fix documents

* fix e2e tests

* remove 20170831 kubernetesRelease

* let vlabs take orchestratorRelease

* vlabs still use orchestratorRelease for test api model

* fix lint
2017-10-09 09:51:26 -07:00
Cecile Robert-Michon 7957245564 changed ubuntu image to 16.04.201708151 (#1521)
* changed ubuntu image to 16.04.201706191

* Replaced ubuntu image with 16.04.201708151 in more files

* Updated Ubuntu image for German cloud

* Updated Ubuntu image in example template

* Updated Ubuntu image in kubernbetes update example

* Set etcd restart to always

* Reverted change for etcd restart

Change done in another branch

* Revert German version back to 201701130
2017-10-05 11:58:17 -07:00
David Tesar ed7e905be6 Upgrade to Calico 2.6.1 (#1511)
* Remove calicoConfigURL

* upgrade to 2.6.0 calico

* update to 2.6.1 calico

* use calico15 addon w K8s 1.6

* remove CalicoConfigDownloadURL

* calico version switch per K8s version
2017-10-04 13:12:35 -07:00
Jack Francis bb909920d0 removing 1.6 version for hybrid k8s example (#1487) 2017-09-25 13:32:50 -07:00
Weinong Wang 1a42cb5e43 Update README.md (#1488)
added instructions to configure keyvault for template deployment
2017-09-25 13:31:58 -07:00
Jack Francis b22c4e539e Hybrid k8s 1.6 (#1462)
* setting k8s hybrid example to version 1.6

* setting circle config to 1.6
2017-09-20 17:02:31 -07:00
Thomas Conté 24a6467e97 Add RHEL support for Swarm Mode (#1455)
* Added support for Swarm Mode on RHEL

* Add RHEL support to classic and vmas

* Fix OS image parameters for classic swarm
2017-09-20 14:09:25 -07:00
Jack Francis 6a64d9e312 Swarmmode hybrid clusters with Windows agents (#1456)
* Add Swarm Mode hybrid cluster definition

Signed-off-by: radu-matei <matei.radu94@gmail.com>

* Add documentation for Hybrid Swarm Mode

Signed-off-by: radu-matei <matei.radu94@gmail.com>

* added adminUsername

* removing dnsPrexfix from agent pools

* agentpublic

* password
2017-09-19 15:35:44 -07:00
Jack Francis e412625333 deprecate DCOS 1.7 (#1446) 2017-09-18 14:08:43 -07:00
Jonathan Chauncey 824501d570 chore(circleci/config.yml): Add hybrid and windows builds to circle config (#1387)
* The linux definition now builds a more feature complete kubernetes cluster. This means we can provision fewer clusters while testing more surface area
2017-09-18 11:30:54 -07:00
Jack Francis 88d34afae0 Revert "RHEL support for Docker swarm mode (#1408)" (#1448)
This reverts commit cc58fc9cdc.
2017-09-15 15:06:16 -07:00
Thomas Conté cc58fc9cdc RHEL support for Docker swarm mode (#1408)
* Added support for RHEL

* Add new distro element to API

* Define and set RHEL image

* Modify templates to support RHEL

* Run gofmt

* Convert Distro field

* Example for Docker swarm mode on RHEL

* Point config script URL to acs-engine repo

* Added script root URL parameter

* Move distro parameter to master/agent config

* Restore OS image parameters
2017-09-15 12:10:05 -07:00
itowlson 5253e9067f Option to specify agent Windows OS image version (#1438)
* Option to specify agent Windows OS image version

* Added agent Windows version option to agent pool-only API
2017-09-15 11:15:57 -07:00
Julien Stroheker 8420ce6214 Add 1.10 stable version support (#1439) 2017-09-14 16:29:46 -07:00
Jack Francis 9d14fa3d93 remove windows swarm examples and e2e references (#1442) 2017-09-14 12:48:15 -07:00
dmitsh 4e734f08d4 orchestrator upgrade: use ContainerService's OrchestratorProfile as a GoalState (#1407)
* eliminated duplicated structures
* added run-time check for upgradable clusters
* updated k8sUpgrade.json
* replaced proprietary implementation of orch. versions with semver package  
* updated API loader for the upgrade operation in ContainerService
* added pre-validation for the upgrade
* removed experimental flag from the upgrade operation
* deleted redundant UpgradeContainerService. Use OrchestratorProfile instead
2017-09-11 18:41:42 -07:00
Nicholas Althoff 7cf8d6d8f2 Install image-gc configurable will sane defaults (#1410)
* Adding GCHIgh and GCLow to json input and apimodel.json

* adding variables to ConvertoToapi

* adding GCHigh / Low to kublet config on Master / Agent

* formatting updates

* Adding example json files with GC attributes

* Updating cluster definition docs
2017-09-08 13:33:23 -07:00
Jack 853a5a4335 Extensions support queries (#1392)
* adding support to add query parameters to calls to get resource urls

this allows the use of sas keys in calls to azure storage. Fixed a
couple of other issues I ran into while using this.

* update to get post provision scripts working for DCOS and Swarm

* white space and explanation comment

* ensure k8s custom script provision runs

I was having issues with waagent restarting in the middle of the custom
script extension running.

* some clean up on examples
2017-09-05 13:52:50 -07:00
Jack f920ec57a9 Rob bagby extension support (#1358)
* rebasing had to handle a couple merge conflicts

* Added extensions support

* updated supported-orchestrators to include dcos 1.9

* Add OMS Agent for Kubernetes

* Updated the extensions type and typeHandlerVersion to match the version now used in the templates.  Added an example for oms.

* Add VAMP DC/OS extension

* updating documentation for changes I made to example extensions

* updating dcos deployments to happen after all dcos masters have finished and consensus achieved

* allowing agents or masters to get extensions

* adding single or all support

* handling vmss, fixing  a bug, and allowing passing index in extension parameters

* changing extension names to match what is in the template so that they can run

* addressing PR feedback

* updating documentation to state this doesn't work for k8s

* adding preprovion exetnsions to api model

* getting preprovision scripts working for swarm

* get pre provision scripts working in all orchestrators and with indexes

* adding sample preprovision script, updating documentation, simplifying default root url logic

* style fix

* fixing broken unit test

* adding unit test for prerprovision extension

* addressing PR feedback and adding examples for future E2E tests

* removing test files

* fixing example mistakes
2017-08-30 16:11:05 -07:00
Jack Francis 562f208e91 fixed all linting warnings/errors, now enforcing (#1369) 2017-08-29 15:34:24 -07:00
dmitsh 9dcaf23533 unified ServicePrincipalProfile interface between vlab and versioned API (#1332)
* unified ServicePrincipalProfile interface between vlab and versioned API
* fixed examples/keyvault-params
2017-08-23 09:46:01 -07:00
Onur Filiz 53c42de889 Add maxPods to Kubernetes configuration (#1103)
* Add maxPods to Kubernetes configuration

* Group Kubernetes config examples and add maxPods example

* Update E2E configs to point to the new example files
2017-08-21 15:57:41 -07:00
Steve Kriss e79f87f16a change master count to 1 for k8s 1.6/1.7 (#1287)
Signed-off-by: Steve Kriss <steve@heptio.com>
2017-08-18 16:28:00 -07:00
Anubhuti Manohar 292153f2c2 Enable creation of standalone agent pools (#1290)
Enable creation of standalone agent pools
2017-08-18 09:06:43 -07:00
Jack Francis 0b3652283b remove k8s msi test (#1295)
* remove customHyperkubeImage from msi test

* making k8s msi example 1.7 only

* remove msi tests
2017-08-17 20:04:35 -07:00
Jason Hansen f4779663b0 typo: primaryAvailablitySetName -> primaryAvailabilitySetName in outputs (#1247)
* typo: primaryAvailablitySetName -> primaryAvailabilitySetName in outputs

* typo: primaryAvailablitySetName -> primaryAvailabilitySetName everywhere else
2017-08-17 16:15:39 -07:00
Bruce Campbell 61a2db0a61 DCOS with Windows Agents (#1132) 2017-08-17 11:56:33 -07:00
Jingtao Ren 8609128f92 [k8s] update --register-schedule with --register-with-taints flags (#1222)
* update --register-schedule with --register-with-taints flags

* add toleration for kube-proxy DS

* correct calico addon tolerations

* remove unnecessary quotes

* update scale static test templates
2017-08-11 10:03:06 -07:00
dmitsh 8550b45968 adding kubernetes upgrade 1.6 to 1.7 (#1230)
* adding kubernetes upgrade 1.6 to 1.7

* upgrader refactoring

* added unit tests

* typo
2017-08-09 19:10:55 -07:00
David Porter 4b42b78e60 fix broken links to Windows kubernetes docs (#1235) 2017-08-09 16:57:13 -07:00
dmitsh 2ce207361a update docs and test specs to match changes in orchestratorRelease (#1220) 2017-08-08 17:04:13 -07:00
dmitsh 4fa4d7e2c9 update vnet test files (#1217) 2017-08-08 15:35:52 -07:00
Jingtao Ren 62051ed553 clean more orchestratorVersion specified test artifacts (#1213) 2017-08-08 14:51:00 -07:00
Jingtao Ren a60cde2976 [API] Change how orchestratorVersion is handled (#1108)
* introduce OrchestratorVersionHint

* replace places with OrchestratorVersion with OrchestratorVersionHint, and build pass

* fill in OrchestratorVersion when converttoapi

* fix test

* use go-version instead of VersionOrdinal

* use k8sVersion instead of k8sVersionHint in comparison

* remove duplicate consts, use common

* split KubeImagee into images and configs

* fix more KubernetesVersion referring

* style and deadcode fixes

* kube config validate needs version hint string

* need string literal to refer to v “1.5.3”

* enforcing default “” orchestratorVersion in apiloader

* gomega unused in engine_test.go

* s/VersionHint/Release

replacing the term “VersionHint” with “Release” throughout

* chore(gofmt)

* chore(glide) go-version

* rationalized KubeConfigs

- added pkg/acsengine/api.KubernetesReleaseToVersion as a map from major.minor “release” to specific “version”; replaced old usages of `api.KubeImages[<version>][”version”] with `api.KubernetesReleaseToVersion[<version>]`
- removed api.KubeImages
- all version-specific k8s config now derive from pkg/acsengine.KubeConfigs

* calico 1.5 logic now uses OrchestratorRelease

* make upgrade scenario working again

* fix upgrade test

* fix more for upgrade scenario

* fix release to versin mapping to 1.7.2
2017-08-08 13:53:08 -07:00
Jack 491eee53df Fixing scale up issue in service with custom vnets (#1194)
* making transform remove dependsOn nsgID on k8s scale up

* updating scale up documentation

* partial changes

* finish getting unit tests working
2017-08-07 14:53:50 -07:00
dmitsh e65e38798e create test configuration for k8s upgrade (#1196)
* adding test files for k8s upgrade
* set azure authentication
* set EXPECTED_ORCHESTRATOR_VERSION
* allow delay after upgrade to let cluster settle up
* added scenarios for windows and hybrid clusters
* added README
* added test deployment configuration
2017-08-07 14:32:54 -07:00
Lachlan Evenson f5c988a503 Enable Kubernetes RBAC (#1143)
* Added minimal rbac setup for k8s.

* Make heapster rolebinding.

* Add kube-dns rolebindings.

* Smaller fixes,

* Conditionalize enabling of RBAC
Add rbac cluster definition example
Update kube addon manager to support clusterrolebinding creation
Update kube-addon-manager to use service account
Update API server with RBAC parameter
Update Controller Manager to use separate accounts per controller
Update heapster to support RBAC
Update dashboard to support RBAC
Add enableRbac field to ClusterConfig and add docs

* remove service account from addon manager

* Add kube-dns rolebindings.

* Smaller fixes,

* Conditionalize enabling of RBAC
Add rbac cluster definition example
Update kube addon manager to support clusterrolebinding creation
Update kube-addon-manager to use service account
Update API server with RBAC parameter
Update Controller Manager to use separate accounts per controller
Update heapster to support RBAC
Update dashboard to support RBAC
Add enableRbac field to ClusterConfig and add docs

* remove service account from addon manager

* update heapster deployment

* Fix some merge conflicts.

* Added test for certificate creation with and without organisation.

* update CR and CRB to support heapster nanny rather than use the bootstrapped CR

* removed unrelated modifications to addons

* re-add resource limits and remove quotes

* Make heapster rolebinding.

* Add kube-dns rolebindings.

* Smaller fixes,

* Conditionalize enabling of RBAC
Add rbac cluster definition example
Update kube addon manager to support clusterrolebinding creation
Update kube-addon-manager to use service account
Update API server with RBAC parameter
Update Controller Manager to use separate accounts per controller
Update heapster to support RBAC
Update dashboard to support RBAC
Add enableRbac field to ClusterConfig and add docs

* remove service account from addon manager

* Make heapster rolebinding.

* Smaller fixes,

* Conditionalize enabling of RBAC
Add rbac cluster definition example
Update kube addon manager to support clusterrolebinding creation
Update kube-addon-manager to use service account
Update API server with RBAC parameter
Update Controller Manager to use separate accounts per controller
Update heapster to support RBAC
Update dashboard to support RBAC
Add enableRbac field to ClusterConfig and add docs

* remove service account from addon manager

* update heapster deployment

* Fix some merge conflicts.

* update CR and CRB to support heapster nanny rather than use the bootstrapped CR

* removed unrelated modifications to addons

* re-add resource limits and remove quotes

* rebase master heapster updates, add 1.5 rbac apis

* manifest updates

* update addon-manager version across all releases, update kube-dns 1.5

* remove templates.go

* fixes based on review

* add docs

* post rebase updates

* misc addon fixes post rebase

* add newline to example and fix docs with master

* yaml formatting fix
2017-08-03 12:54:28 -07:00
uday31in f35511e896 Removing the requirement for same vNet (#850)
As per https://github.com/Azure/acs-engine/issues/272 - this is no longer necessary.
2017-07-27 22:23:38 -07:00
Lachlan Evenson d04512d9ea Kubernetes 1.7.1 (#1020)
* Kubernetes 1.7.1

* add Kubernetes 1.7.1 example

* updated container tags to match 1.7 deployment

* various fixes post rebase
2017-07-20 09:25:10 -07:00
Weinong Wang 0b5962459a Add ServicePrincipalProfile.KeyvaultSecretRef for KeyVault secret ref… (#1022)
* Add ServicePrincipalProfile.KeyvaultSecretRef for KeyVault secret reference
- with this change, ServicePrincipalProfile.secret will be added to template parameters as is without being tranformed into Keyvault secret reference.
- to use keyvault secret reference, use ServicePrincipalProfile.KeyvaultSecretRef instead

* refactored to address comments

* fixing the tests
2017-07-18 15:40:19 -07:00
Cole Mickens add7a95daf Merge pull request #1005 from colemickens/colemickens-custom-hyperkube
feat(custom hyperkube): support customHyperkubeImage in kubernetesConfig
2017-07-18 10:41:10 -07:00
Cole Mickens 38e9eb0c9a feat(custom hyperkube): managed-identity uses customHyperkubeImage 2017-07-17 12:26:26 -07:00
Cole Mickens 58b64dc550 feat(managed identity): make SPP optional when using MSI 2017-07-17 02:59:26 -07:00
Cole Mickens 7488013972 feat(msi): add example apimodel + jenkins config 2017-07-13 17:10:46 -07:00
Jack Francis 75d52db447 moved backoff-related config to api model (#964)
* converted —node-status-update-frequency

nodeStatusUpdateFrequency is now delivered via KubernetesConfig

* all recent k8s config params are api-model-enabled

* rationalizing config outputs as string params

* added k8s version-specific validation
2017-07-13 15:09:05 -07:00
dmitsh 88a95f322a added regression test categories (#919)
added regression tests per test category
added error code for FaultDomainCount into reporting
added test scenario for k8s/dcos/swarmmode master with storage account
added deployment test specs for k8s windows
added configurable resource group name prefix for automatic tests
2017-07-06 14:15:57 -07:00
Jack Francis 0330677c0d Enable cloudprovider rate limit / backoff features (#892)
* acs-engine configs for backoff

* errata

* large cluster support in 1.6.6 only at this point

* add custom data vars to master as well

* updated templates.go

* kube-controller-manager var substitution is unique

* updated generated template

* moving large cluster to examples/largeclusters

* working pool names for large cluster example
2017-07-06 14:04:50 -07:00