Commit Graph

1530 Commits

Author SHA1 Message Date
Pengfei Ni 375d7672fc Update azure vendors 2017-12-29 10:04:09 +08:00
Pengfei Ni 0f6be566ed Add support for acs-engine managed agent pools 2017-12-29 10:04:09 +08:00
Pengfei Ni 59b0087eeb Add new options and azure clients for standard node pools cluster 2017-12-29 10:04:09 +08:00
Pengfei Ni 49d191d4ab Move ScaleSet to a separate file 2017-12-29 10:04:09 +08:00
Beata Skiba 58f4e6b8ed
Merge pull request #517 from tkulczynski/error-branch-fix
Fix error branch in pod initialization
2017-12-28 18:26:00 +01:00
Marcin Wielgus d5f091a886
Merge pull request #508 from mwielgus/wait-for-pods
Skip iteration if pending pods are too new
2017-12-28 17:22:38 +01:00
Marcin Wielgus 15b10c8f67 Skip iteration if pending pods are too new 2017-12-28 16:55:44 +01:00
Tomek Kulczyński 62ff748f09 Fix error branch in pod initialization 2017-12-28 16:33:09 +01:00
Marcin Wielgus 2d6cd1c92c
Merge pull request #498 from aleksandra-malinowska/use-allocatable-for-utilization
Use allocatable instead of capacity to calculate node utilization
2017-12-28 15:49:20 +01:00
Marcin Wielgus 39231b3fec
Merge pull request #512 from thockin-tmp/gcr-vanity
Convert registry to k8s.gcr.io
2017-12-28 10:19:27 +01:00
Marcin Wielgus 75101864f4
Merge pull request #515 from feiskyer/gofmt
Support go1.9 when verifying gofmt
2017-12-28 10:14:48 +01:00
Pengfei Ni 847bd79726 Support go1.9 when verifying gofmt 2017-12-28 13:27:06 +08:00
Tim Hockin c7a8bee589 Convert registry to k8s.gcr.io 2017-12-22 09:55:16 -08:00
MaciekPytel 99c473352e
Merge pull request #507 from spiffxp/add-code-of-conduct
Add code-of-conduct.md
2017-12-21 11:43:50 +01:00
Aaron Crickenberger a020276fa5 Add code-of-conduct.md
Refer to kubernetes/community as authoritative source for code of conduct
2017-12-20 13:31:27 -05:00
MaciekPytel 600e16c07e
Merge pull request #505 from feiskyer/cleanup
Cleanup comments in azure provider
2017-12-19 14:53:18 +01:00
Pengfei Ni 735462de9d Cleanup comments in azure provider 2017-12-19 11:04:57 +08:00
Marcin Wielgus 88d97c2254
Merge pull request #462 from negz/gcedisco
Support autodetection of GCE managed instance groups by name prefix
2017-12-18 21:08:22 +01:00
MaciekPytel af51acc28c
Merge pull request #504 from aleksandra-malinowska/no-lead-no-metrics
Don't register metrics unless on leading master
2017-12-15 18:22:29 +01:00
Aleksandra Malinowska 312f989c15 Don't register metrics unless on leading master 2017-12-14 16:08:20 +01:00
Marcin Wielgus 6b9c9ecb11
Merge pull request #500 from kgrygiel/master
A few small improvements to the model types.
2017-12-12 23:27:59 +01:00
Nic Cope e96ff07896 Replace the Polling Autoscaler
Node group discovery is now handled by cloudprovider.Refresh() in all cases.
Additionally, explicit node groups can now be used alongside autodiscovery.
2017-12-11 13:09:56 -08:00
Nic Cope 6a704a6cf4 Break down cloud provider builder by provider
The Build method was getting pretty big, this hopefully makes it a little
more readable. It also fixes a few minor error shadowing bugs.
2017-12-11 13:09:56 -08:00
Nic Cope 19607bd285 Remove the Polling Autoscaler. 2017-12-11 13:09:56 -08:00
Nic Cope 982f9e41a3 Support autodetection of GCE managed instance groups by name prefix
This commit adds a new usage of the --node-group-auto-discovery flag intended
for use with the GCE cloud provider. GCE instance groups can be automatically
discovered based on a prefix of their group name. Example usage:

--node-group-auto-discovery=mig:prefix=k8s-mig,minNodes=0,maxNodes=10

Note that unlike the existing AWS ASG autodetection functionality we must
specify the min and max nodes in the flag. This is because MIGs store only
a target size in the GCE API - they do not have a min and max size we can
infer via the API.

In order to alleviate this limitation a little we allow multiple uses of the
autodiscovery flag. For example to discover two classes (big and small) of
instance groups with different size limits:

./cluster-autoscaler \
  --node-group-auto-discovery=mig:prefix=k8s-a-small,minNodes=1,maxNodes=10 \
  --node-group-auto-discovery=mig:prefix=k8s-a-big,minNodes=1,maxNodes=100

Zonal clusters (i.e. multizone = false in the cloud config) will detect all
managed instance groups within the cluster's zone. Regional clusters will
detect all matching (zonal) managed instance groups within any of that region's
zones.
2017-12-11 13:09:56 -08:00
kgrygiel f9c5f16df4 Make the fields of ContainerUsageSample public. 2017-12-11 15:34:28 +01:00
kgrygiel cdb2136390 Add method GetContainer to Cluster. 2017-12-11 15:33:17 +01:00
Marcin Wielgus 6b2d771ccd
Merge pull request #474 from MaciekPytel/nap_gpu_yay
Add support for GPU for NAP
2017-12-11 08:20:07 -06:00
Maciej Pytel f3132c6a24 Add taint on nodes with GPU created by NAP 2017-12-11 15:01:49 +01:00
Maciej Pytel 5d463bd712 Support creating node groups with GPU in GKE cloudprovider 2017-12-11 13:12:22 +01:00
Maciej Pytel b7f8622eb2 Create node groups with GPU in scale-up.go
This is still not implemented in cloudprovider.
Extended NewNodeGroup inteface to have a way of passing
parameters for more complex resources.
2017-12-11 13:12:22 +01:00
Maciej Pytel 6554919700 Helper function to calculate GPU requests for NAP 2017-12-11 13:12:22 +01:00
kgrygiel f66218d68c Add methods to convert float to ResourceAmount. Add type Resources. 2017-12-11 12:30:55 +01:00
kgrygiel 589c6a1d97 Extend Histogram with new methods: Merge(), String(), HistogramsEqual(). 2017-12-11 11:44:24 +01:00
Marcin Wielgus 7d7f275dce
Merge pull request #499 from mwielgus/ca-1.1
Cluster Autoscaler 1.1.0
2017-12-08 10:29:17 -06:00
Marcin Wielgus e956f8a259 Cluster Autoscaler 1.1.0 2017-12-08 10:16:14 -06:00
Aleksandra Malinowska f87c1da2cb Use allocatable instead of capacity to calculate node utilization 2017-12-08 12:54:30 +01:00
Marcin Wielgus 8225983307
Merge pull request #493 from timpalpant/master
Add h1 and m5 AWS instance types
2017-12-07 04:27:48 +00:00
Timothy Palpant 7f6b021cef Add h1 and m5 AWS instance types 2017-12-04 13:16:48 -05:00
Marcin Wielgus eb48463675
Merge pull request #490 from mwielgus/ca-1.1-b1
Cluster Autoscaler 1.1.0-beta1
2017-12-01 13:09:29 +01:00
Marcin Wielgus 5fe841e69a Cluster Autoscaler 1.1.0-beta1 2017-12-01 12:21:22 +01:00
Marcin Wielgus 8be728a93e
Merge pull request #489 from mwielgus/godep-fix
Godep update
2017-11-28 15:50:45 +01:00
Marcin Wielgus 2b525c5c5d Remove Windows-specific libraries from godeps 2017-11-28 14:48:05 +01:00
Marcin Wielgus 8304f8770e
Merge pull request #488 from Gazler/patch-1
Set code types for syntax highlighting in README.md
2017-11-28 14:33:39 +01:00
Marcin Wielgus 467b43b7f2 Skip _override in boilerplate.py 2017-11-28 14:31:55 +01:00
Marcin Wielgus e14f6a0c55 Add appropriate license to _override 2017-11-28 14:31:20 +01:00
Marcin Wielgus 65aca02fdc Rename override to _override to allow ./... patterns in go command 2017-11-28 14:21:17 +01:00
Marcin Wielgus f8c0e20ad9 Source fix after godep update 2017-11-28 14:01:43 +01:00
Marcin Wielgus f424b3da99 Include GKE api in fix gopath 2017-11-28 14:01:26 +01:00
Marcin Wielgus efa6560195 Godeps update 2017-11-28 14:00:58 +01:00