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

247 Коммитов

Автор SHA1 Сообщение Дата
Lachlan Evenson e237136c0f add label in order to not reconcile (#1133) 2017-08-01 17:42:59 -07:00
Sean Knox 2b09dca8f9 Run "make test-style" as part of CI (#1123)
* fix(style): fix linter errors

* fix(style): fix linter errors

* fix(style): fix linter errors

* fix(style): gofmt files

* fix(style): fix mispellings

* ref(vlabs): remove dead code

* ref(*): fix ineffective assigns

* ref(*): fix type referenced in log message

* fix(style): use keyed field on composite literal

* chore(tests): enable `make test-style` as part of ci

* fix(style): gofmt pkg/acsengine/engine_test.go
2017-07-28 22:08:37 -07:00
Sean Knox 3c47cbd5af add Helm Tiller to Kubernetes addon modules (#924)
* add Helm Tiller to Kubernetes addon modules

This implements feature request #854 by adding the Tiller manifest and
supporting configuration to the Kubernetes addon modules.

Closes #854

* remove defaults from manifests. Add addonmanager labels

* add service account and more reformatting

* add resource request and limits to the tiller deployment

* add TilleBase container repo and manifest fixes

* fixed typing path for tiller

* fix indents

* Fix for 1.5 rbac

* further updates for 1.5 rbac

* use default tiller const
2017-07-28 13:52:26 -07:00
Lachlan Evenson 277b3a9807 remove version specific pieces of the heapster deployment. Rollback reziser to 1.7 (#1076) 2017-07-27 22:22:29 -07:00
Lachlan Evenson 0c0091bc3a Enable k8s 1.7.2 release (#1072)
* Enable k8s 1.7.2 release

* remove version specific pieces of the heapster deployment. Rollback reziser to 1.7

* rollback resizer to 1.7

* fixed typo in version

* Add new storageclasses for managed disk types

* add storagetier label to nodes

* add newlines

* Add error handling to getStorageAccountType function
Remove toLower from storage tier name

* fixed indentation

* add StorageClass resources to 1.5
2017-07-27 22:22:10 -07:00
Jim Spring f170f4ac71 add script to add admin to docker group (#1113) 2017-07-27 22:21:49 -07:00
Jack bb1840b049 Added retries for apt-get install and systemctl enable commands for kubernetes custom script. (#1104)
* added retries to apt-get in runcmd for kubernetes cloudinit

* Added retries for systemctl enable commands as part of kubernetes custom
script. (#853)

* Change exit to different number.
2017-07-25 16:35:05 -07:00
dmitsh e071d9fd0d set net.ipv4.tcp_retries2=8 to mitigate broken tcp connections (#1044)
* set net.ipv4.tcp_retries2=8 to mitigate broken tcp connections

* added notes to kubernetes documentation

* doc format

* addressed comments
2017-07-21 13:05:26 -07:00
Richard Kovacs 72212097a7 Replace docker daemon to dockerd in swarmmode cluster (#982) 2017-07-20 11:34:12 -07:00
Brendan Burns 096c77105a Add support for using the Azure Instance Metadata service. (#1036) 2017-07-19 17:11:33 -07:00
Jiangtian Li 9c25a3694b Fix deployment script for 1.7.0 on Windows (#1038)
* Fix deployment script for 1.7.0 on Windows

* revert template.go since it is getting gitignored now
2017-07-19 15:54:56 -07:00
Brendan Burns 216747bfb0 Add certificate signing flags to the cluster turnup. (#1025) 2017-07-19 14:54:25 -07:00
Eric Rozell 906d27bf58 Optionally open ports 80/443 on master and enable OAuth for DC/OS (#1018)
* Enabled OAuth, HTTP(s) on DC/OS masters

* Add type changes to vlabs
2017-07-19 14:07:14 -07:00
Anubhuti Manohar 7e448517a7 Enable upgrade of Kubernetes clusters with master VMs using managed disks (#1008)
Introduction of Kubernetes master VMs to start using managed disks both for OS and etcddisk broke upgrade operation:
Upgrade operation was supported on unmanaged disks only and making manageddisk the default StoragrProfile broke upgrade operation OOB.
Switch to using managed disk also started using a default disk name to be assigned by Disk RP (vs. one assigned by ACS Engine like for other resources). This could be problematic in many ways: 
With main one being relying on and understanding DiskRP’s naming convention to discover the right etcd disk for each master VM. This might not be a big issue in the RP because disk names/ids can be saved in the database but from ACS Engine standpoint for operations to be idempotent disk names need to be deterministic.
This also adds unnecessary complexity of loading and editing the template during upgrade with the disk name generated by Disk RP.

This PR adds support to enable upgrade of clusters using managed disk master VMs.
The code has been updated to use a deterministic name for etcd disks. However, any cluster created between June 22nd to until this PR gets merged still gets non-deterministic names for etcd disks.
Change upgrade template to have a managedDisk section when attaching an existing etcddisk
Pending fixes:
Supported attaching of auto generated etcd disks (names) during upgrade.
2017-07-18 22:35:53 -07:00
Martell Malone ea4e2c7d6a feat(k8s): add support for 1.7.0 (#909)
- add support for 1.7.0 on both linux and windows
- rename KubernetesLatest to KubernetesDefaultVersion
- fix typo in Kubernetes157 comment
- set Kubernetes166 as the default while 1.7.0 bakes in
2017-07-18 15:24:55 -07:00
Cole Mickens f8af93a344 Merge pull request #1006 from colemickens/colemickens-msi-skip-auto-cred
fix(autodeploy+msi): don't autogen creds when using msi
2017-07-18 10:40:57 -07:00
Lachlan Evenson a6f775d958 add anti-affinity to kube-dns deployment (#1014) 2017-07-17 14:10:03 -07:00
Cole Mickens 58b64dc550 feat(managed identity): make SPP optional when using MSI 2017-07-17 02:59:26 -07:00
Cole Mickens e5a453f7fc feat(msi): template changes: linux agents 2017-07-13 17:10:45 -07:00
Cole Mickens da46e4d3af feat(msi): template changes: windows agents 2017-07-13 17:08:10 -07:00
Cole Mickens 03cbdbfdf3 feat(msi): template changes: init + masters 2017-07-13 17:08:09 -07:00
Cole Mickens 81ba4219e3 feat(msi): mount MSI settings into req'd containers 2017-07-13 17:03:02 -07:00
Jack Francis d15c32a82c enabled backoff on agents (#988)
- moved provision.sh variables ordinality around to accommodate agent usage
- added backoff vars to agent resources template
- re-ordered backoff vars in master resources template to accommodate changes
2017-07-13 16:59:03 -07:00
Sean Knox 3b8ee5b0f0 feat(kube-proxy): schedule kube-proxy as critical pod (#914) 2017-07-12 20:06:32 -07:00
Jiangtian Li 81ef094257 Fix container start timeout in latest Windows image (#967) 2017-07-12 11:21:27 -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
Anthony Howe 0b43f5c2d0 increase max size of docker logs, and rotation (#894) 2017-07-03 11:04:09 -07:00
Jingtao Ren c4c40ba862 add two default value for classicmode (#889) 2017-06-28 15:23:58 -07:00
Jeff Silberman 2d6b3bbc0d Ensure DCOS 1.9 uses docker-engine_1.13.1 (#871)
* Move docker version to 1.13.1

* Fix CI problems

* Ensure DCOS 1.9 uses docker-engine_1.13.1
2017-06-27 10:05:52 -07:00
Bhargav Nookala 84308f674d Adding label support for kubernetes agent nodes, and documentation. 2017-06-26 12:08:12 -07:00
Deavon M. McCaffery 117542314a feat(kubernetes): add support for custom docker0 net (#753) 2017-06-23 16:49:47 -07:00
Anthony Howe 5367ff2026 fix regressions around output vars (#845) 2017-06-22 17:57:50 -07:00
Anthony Howe 4e452f39d1 add managed disks for masters. This enables a cluster to have encryption at rest. (#844) 2017-06-22 14:48:20 -07:00
Jeff Silberman 75167c4409 Move docker version to 1.13.1 for DCOS (#818)
* Move docker version to 1.13.1

* Fix CI problems
2017-06-22 12:35:46 -07:00
Anthony Howe 01db4f63dc fix dns regression (#843) 2017-06-22 07:04:52 -07:00
Anthony Howe 3385654d1f update linux (#839) 2017-06-21 15:32:15 -07:00
Anthony Howe 512731948e Adding the private CA key to the K8S templates (#827)
* fix825

* make CaPrivateKey a public member so it is stored
2017-06-21 13:34:08 -07:00
Brendan Burns a4d2416285 Update DNS settings. (#809) 2017-06-20 17:38:46 -07:00
Anthony Howe becdb5f46e Add mitigation for daily security updates for 16.04 (#817) 2017-06-20 14:42:19 -07:00
Anthony Howe d16c3c7166 Pin DockerCE to version 17.03* and docker-compose to 1.14.0 (fixes #754) (#812)
* Pin DockerCE to version 17.03* (fixes #754)

* ensure https preqs are there
2017-06-20 13:58:37 -07:00
Ben Formosa 749c06fe3b Add test to avoid modifying /etc/hosts twice (#760) (#789) 2017-06-16 10:27:21 -07:00
Jingtao Ren ca4f8ff5e3 differentiate the exit code for k8s provision script (#791) 2017-06-15 11:59:35 -07:00
Jingtao Ren 80c020c47f populate defaultValue for classicMode (#788)
* Add PopulateDefaultValue function for classic mode

* regenerate template.go
2017-06-15 10:25:50 -07:00
Jingtao Ren b2cfa4cb42 revert log driver to use json-file, and rotate (#766)
* revert log-driver=journald change

* add log-opt
2017-06-14 12:15:53 -07:00
Anthony Howe afca77ba3d delay process start if reboot required (#758) 2017-06-12 19:24:50 -07:00
Anthony Howe 77dc4cdb93 Add security updates to provisioning (#745) 2017-06-08 18:17:40 -07:00
Rita Zhang f859f725fd [K8s] Add multi-gpu support (#385)
* Add multi-gpu support for k8

* Remove kubernetes gpu example

* Update kubernetes gpu README and templates

* Add Accelerator feature gate only for k8s > 1.6

* Parametrize kubernetes version checking function

* remove --feature-gates flag from kuberneteskubelet.service

* add test for VersionOrdinal
2017-06-08 16:30:42 -07:00
Anubhuti Manohar 71ddc700ac Cluster upgrade for Kubernetes 1.5.3 -> 1.6.2 (#707)
Enable cluster upgrade from Kubernetes 1.5.3 -> 1.6.2
------------------------------------------------------------
This PR sets up upgrade workflow that will be followed by ACS Engine and the service to upgrade Kubernetes clusters created using ACS Engine templates running in Azure.

This feature is required as a step towards enabling customer initiated cluster lifecycle management and ACS RP to be a managed service.

This PR supports Kubernetes 1.5.3 -> 1.6.2 upgrade only. More upgrade versions support to come later.

Design assumptions: The upgrade will work as designed only for clusters where etcd is on a separate data disk.

This PR enables following upgrade scenarios for Kubernetes 1.5.3 -> 1.6.2 clusters:
1. Multi master upgrade
2. Multi agent upgrade
3. Multi agent pool (Linux & Windows pools) upgrade
4. Idempotent upgrade operation (with one pending change to enable full idempotency), i.e. operation can be rerun if it fails and the command will pick up where it left off. 
5. Upgrade operation will only upgrade nodes in the resource group that belong this cluster and skips

Note: 
This is by no means a complete upgrade implementation and other enhancements will follow at later points of time (not all of the following are guaranteed and are examples): Drain and cordon node before upgrading it, etcd upgrade, rollback & downgrade, post upgrade validation & health checks, maintaining HA of pools during the upgrade operation, etc.
2017-05-31 15:33:13 -07:00
Anthony Howe 803758ca94 add comment to etcd fix (#673) 2017-05-24 15:40:48 -07:00
Anthony Howe cc95f47e9c use the newest version of windows (#671) 2017-05-24 09:09:31 -07:00