Commit Graph

1125 Commits

Author SHA1 Message Date
kgrygiel 54d3f5cea0 Introduce the Cluster class that maintains all runtime state of the
cluster required by the VPA, in particular the state of pods and containers.
2017-09-04 17:40:17 +02:00
Beata Skiba a6c18b87d2 Only consider up to 10% of the nodes as additional candidates for scale down. 2017-09-04 17:37:02 +02:00
Aleksandra Malinowska 7ae64de0af Merge pull request #291 from mwielgus/nap-cleanup
Clean up empty autoprovisioned node groups
2017-09-04 15:03:26 +02:00
Marcin Wielgus ceaafc2d18 Merge pull request #292 from smarterclayton/cluster_scale
Allow testing against GCE without running on GCE
2017-09-04 17:27:23 +05:30
Marcin Wielgus bcc8cded64 Clean up empty autoprovisioned node groups 2017-09-04 13:53:07 +02:00
Marcin Wielgus 8bb60302c1 Merge pull request #294 from smarterclayton/leader_elect
Support resource-lock type configmap for leader election
2017-09-04 15:48:03 +05:30
Clayton Coleman f411e38bb8
Support resource-lock type configmap for leader election
The lock type parameter was being ignored. Use the new factory method to
instantiate the lock type.
2017-09-03 18:14:46 -04:00
Clayton Coleman 035e667eb1
Allow use of Default Application Credentials for GCE
Also allows project and zone to be specified by the config file, rather
than automatically overwritten. This allows local testing against the
GCE API without having to run on a GCE instance. The default credentials
take priority over the token source, but less priority than a token
source in the config.

Also, if the node template cannot be located, don't panic, just report
it.
2017-09-02 12:02:26 -04:00
Clayton Coleman 5d23189b38
Return the proper error when failing to init cloud provider 2017-09-02 12:02:19 -04:00
Marcin Wielgus ae00f0544b Merge pull request #290 from mwielgus/max-nap-groups
Limit autoprovisioned groups to 15
2017-09-01 23:49:33 +05:30
Marcin Wielgus de524a6688 Limit autoprovisioned groups to 15 2017-09-01 18:25:28 +02:00
Marcin Wielgus 462a6b787f Merge pull request #288 from MaciekPytel/write_events_on_failed_scaleup
Write events on failed scaleup
2017-09-01 18:29:37 +05:30
Maciej Pytel a440d92a60 Log event on scale-up timeout 2017-09-01 14:19:14 +02:00
Maciej Pytel a86268f114 Write event on scale-up failure 2017-09-01 13:34:20 +02:00
Marcin Wielgus c0b48e4a15 Merge pull request #285 from mwielgus/loglevel
Set verbosity for each of the glog.Info logs
2017-09-01 16:42:11 +05:30
Marcin Wielgus 021a2fdf5d Merge pull request #286 from mwielgus/exist-no-error
Do not return error from exist
2017-09-01 16:05:52 +05:30
Marcin Wielgus 2d8f59e23d Set verbosity for each of the glog.Info logs 2017-09-01 12:34:29 +02:00
alok87 694f461ae8 Information to run CA in master in aws 2017-09-01 09:30:55 +05:30
Marcin Wielgus f217d4ac93 Do not return error from exist 2017-09-01 00:24:01 +02:00
Beata Skiba eea0cf9699 Merge pull request #273 from bskiba/sd-opt
Keep maximum 30 candidates for scale down with drain
2017-08-31 15:32:49 +02:00
Beata Skiba 576e4105db Make ScaleDownNonEmptyCandidatesCount a flag. 2017-08-31 15:05:06 +02:00
Beata Skiba 4560cc0a85 Keep maximum 30 candidates for scale down with drain 2017-08-31 14:58:40 +02:00
Marcin Wielgus e9261a249c Merge pull request #284 from mwielgus/nap-5
Node autoprovisioning in scale up
2017-08-31 17:47:25 +05:30
Marcin Wielgus 22f856d4da Small refactoring in ScaleUp 2017-08-31 13:21:20 +02:00
Marcin Wielgus 7c1aa113f8 Merge pull request #281 from MaciekPytel/disable_affinity_predicate
Disable MatchInterPodAffinity if there are no pods using affinity
2017-08-31 16:50:33 +05:30
Marcin Wielgus fe52c01992 Penalty for non-existing node groups in price expander 2017-08-31 11:16:43 +02:00
Marcin Wielgus 6b9e56f0f9 Node autoprovisioning in scale up 2017-08-31 01:33:52 +02:00
Marcin Wielgus 19507aa0de Node autoprovisioning flag 2017-08-31 00:48:54 +02:00
Marcin Wielgus b172926b5e NodeGroupCreate for gce cloud provider 2017-08-31 00:48:40 +02:00
Marcin Wielgus 4a3b2934ea Merge pull request #280 from pusher/name-list-bug
Check ASG name list not empty
2017-08-30 22:56:01 +05:30
Maciej Pytel 69c5ea03ce Disable MatchInterPodAffinity if there are no pods using affinity 2017-08-30 16:18:31 +02:00
Joel Speed f369843353 Check ASG name list not empty 2017-08-30 13:50:17 +01:00
Marcin Wielgus 9a4c15daaa Merge pull request #275 from mwielgus/nap-4
Create and delete node pool operations for gce_manager
2017-08-30 16:55:44 +05:30
Marcin Wielgus f8ede4cefd Lint fixes and debug level adjustment in gce cloud provider 2017-08-30 10:53:29 +02:00
Marcin Wielgus 1ba1acf6c3 Merge pull request #274 from mwielgus/makefilie-fix
Compile only what is needed when building a docker image
2017-08-30 14:11:38 +05:30
Marcin Wielgus fbf0d6f499 Merge pull request #271 from aleksandra-malinowska/creator-ref
Use OwnerReferences in place of deprecated created by annotation
2017-08-30 04:21:58 +05:30
Marcin Wielgus ba5b6a321c Merge pull request #276 from praseodym/minor-fixes
Minor fixes
2017-08-30 04:18:50 +05:30
Mark Janssen f53fb8b6ed Minor fixes 2017-08-29 23:11:35 +02:00
Marcin Wielgus 61386eed7f Create node pool operation for gce manager 2017-08-29 22:35:42 +02:00
Marcin Wielgus bc970fdd94 Node pool delete 2017-08-29 22:14:07 +02:00
Marcin Wielgus f97b1a5b60 Unregister non-existing migs from gce_manager 2017-08-29 20:21:28 +02:00
Marcin Wielgus 36148b02b8 Don't allow node group information in GKE 2017-08-29 19:42:01 +02:00
Marcin Wielgus e7176dc9b7 Compile only what is needed building a docker image 2017-08-29 19:36:28 +02:00
Marcin Wielgus 41acd4cd16 Merge pull request #270 from MaciekPytel/use_predicate_metadata
precompute predicateMetadata in scale-down
2017-08-29 22:30:26 +05:30
Marcin Wielgus 540960117c Merge pull request #272 from mwielgus/fix-basename
Fix basename population in gce manager
2017-08-29 22:26:19 +05:30
Marcin Wielgus 6bf7012bf8 Fix basename population in gce manager 2017-08-29 18:31:39 +02:00
Aleksandra Malinowska ac0d8388bc use OwnerReferences instead of deprecated created by annotation 2017-08-29 17:26:38 +02:00
Maciej Pytel 281afa7147 precompute predicateMetadata in scale-down 2017-08-29 16:29:45 +02:00
Marcin Wielgus 81e9226d17 Merge pull request #267 from mwielgus/gke-cp-1
Add GKE mode to GCE cloud provider
2017-08-29 18:26:07 +05:30
Marcin Wielgus 76ebca9d25 Error handling in gce/gke 2017-08-29 14:27:43 +02:00