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

Sync with upstream 1.22 #121

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
4cf9a98
Release leader election lock on shutdown
mcristina422 Mar 12, 2021
a24ea6c
add cluster cores and memory bytes count metrics
elmiko Mar 23, 2021
d103b70
Enable magnum provider scale to zero
tghartland Apr 7, 2021
71353a6
Fix/dependencies
lmq1999 Apr 12, 2021
b57ba6e
Fix/Provider name
lmq1999 Apr 12, 2021
90bd1eb
Fix/Add bizflycloud package in skipped_dirs
lmq1999 Apr 12, 2021
dd8005d
Add Bizfly Cloud provider to README
lmq1999 Apr 14, 2021
e959385
Update license for Bizfly Cloud dependencies
lmq1999 Apr 15, 2021
ec2676b
add required api resources to hetzner cluster-autoscaler example
gris-gris Apr 19, 2021
037dc73
Don't pile up successive full refreshes during AWS scaledowns
bpineau Jan 6, 2021
3ffe4b3
aws: support arm64 instances
bpineau Jan 26, 2021
249a728
Cluster Autoscaler: remove vivekbagade, add towca as an approver in O…
towca Apr 27, 2021
a15d994
Cluster Autoscaler GCE: change the format of MIG id
towca Apr 28, 2021
3c28030
Merge pull request #4047 from towca/jtuznik/mig-id
k8s-ci-robot Apr 29, 2021
1330ab1
Merge pull request #4009 from bizflycloud/bizflycloud/bizflycloud-pro…
k8s-ci-robot May 3, 2021
89b2373
Merge pull request #4040 from towca/jtuznik/owner
k8s-ci-robot May 3, 2021
35b8e30
Merge pull request #3995 from tghartland/magnum-scale-to-zero
k8s-ci-robot May 3, 2021
6c4101b
Merge pull request #3797 from DataDog/aws-not-refreshes-dogpiles
k8s-ci-robot May 3, 2021
200415e
Merge pull request #3940 from mcristina422/patch-1
k8s-ci-robot May 4, 2021
3e53369
support separators in custom allocatable overrides via vmss tags
marwanad May 5, 2021
6432c27
gce: concurrent zonal List()s + opportunistic basename fill
bpineau May 5, 2021
c6d4535
Merge pull request #4056 from marwanad/support-separator-allocatables
k8s-ci-robot May 5, 2021
dda7db0
add stable zone labels in azure template generation
marwanad May 6, 2021
67dc894
Merge pull request #4061 from marwanad/stable-zone-labels
k8s-ci-robot May 6, 2021
1b0aa0c
Document that TLS bootstrapping may be necessary for scale-up
dharmab May 7, 2021
b70dce3
Merge pull request #4067 from dharmab/scale-up-q
k8s-ci-robot May 10, 2021
23b4329
Enable custom k8s fork in update-vendor.sh
BigDarkClown Apr 21, 2021
2e6ccac
Merge pull request #4023 from BigDarkClown/update-vendor-fork
k8s-ci-robot May 11, 2021
a1577ef
Replace package satori/go.uuid for cloudprovider ionoscloud
avorima May 10, 2021
a5d2700
BizFly: remove go.mod from the inlined "gobizfly" client
towca May 12, 2021
9c95f41
Merge pull request #4077 from towca/jtuznik/bizfly-go-mod
k8s-ci-robot May 12, 2021
e80f7c5
Log names of longUnregistered Nodes
dharmab May 5, 2021
56eed31
Merge pull request #4060 from dharmab/longUnregistered-logging
k8s-ci-robot May 13, 2021
2beea02
Merge pull request #3983 from elmiko/cluster-resource-consumption-met…
k8s-ci-robot May 13, 2021
6c64ac0
Merge pull request #4020 from gris-gris/fix-hetzner-example
k8s-ci-robot May 13, 2021
58eef9c
Merge pull request #4070 from StratoAG/change-uuid-lib
k8s-ci-robot May 13, 2021
2bd7f0e
[cluster-autoscaler] Publish node group min/max metrics
amrmahdi Apr 21, 2021
030a215
Fix templated nodeinfo names collisions in BinpackingNodeEstimator
bpineau May 19, 2021
7456f05
update storage API version
marwanad May 20, 2021
329b977
Merge pull request #4090 from marwanad/fix-broken-dep
k8s-ci-robot May 20, 2021
775b545
Add patch deployment permission to example addon resizer deployment
bskiba May 20, 2021
18dec33
Document that CA is not responsible for registering new nodes
VladMasarik May 20, 2021
af94807
Merge pull request #4092 from VladMasarik/up-docs
k8s-ci-robot May 20, 2021
5cf64a2
Update vendor to v1.22.0-alpha.1
brett-elliott May 20, 2021
f5c2ab7
Emit the node group metrics behind a flag
amrmahdi May 20, 2021
3ac32b8
Update node group min/max on cloud provider refresh
amrmahdi May 21, 2021
a0b1a0d
Merge pull request #4094 from brett-elliott/updatevendor4
k8s-ci-robot May 21, 2021
b0948c7
Merge pull request #4058 from DataDog/gce-faster-lists-calls
k8s-ci-robot May 21, 2021
d33cc1b
Merge pull request #4091 from bskiba/master
k8s-ci-robot May 21, 2021
8b2aee0
Update FAQ to mention the new flag
amrmahdi May 21, 2021
e1b7f62
Print out error when unable to download module
brett-elliott May 17, 2021
a5802a2
Merge pull request #3848 from DataDog/aws-arm-support
k8s-ci-robot May 23, 2021
5ab7792
Merge pull request #4089 from DataDog/templates-names-collisions
k8s-ci-robot May 24, 2021
fe5419d
Merge pull request #4085 from brett-elliott/updatevendor-improvement
k8s-ci-robot May 24, 2021
3169a1c
add field keys to cluster autoscaler unit test structs
elmiko May 25, 2021
10dfcae
Merge pull request #4101 from elmiko/fixup-composite-literals
k8s-ci-robot May 26, 2021
1880fe6
Don't start CA in cooldown mode.
brett-elliott May 27, 2021
0298597
Merge pull request #4104 from brett-elliott/stopcooldown
k8s-ci-robot May 27, 2021
69743f1
docs: Install parameters
May 28, 2021
986fe3a
Metric for CloudProvider.Refresh() duration
bpineau May 31, 2021
eae4ac9
Merge pull request #4108 from DataDog/metric-cloudProviderRefresh-dur…
k8s-ci-robot May 31, 2021
d9e883b
Update charts/cluster-autoscaler/README.md
Jun 1, 2021
36460df
annotate fakeNodes so that cloudprovider implementations can identify…
marwanad Jun 6, 2021
21299c7
feat(ovh): enable OVHcloud provider for US side
ricoleabricot Jun 1, 2021
3257372
feat(ovh): fix unit tests
ricoleabricot Jun 8, 2021
c0a9c6d
Changing injection test webhook API from V1Beta1 to V1
krzysied Jun 8, 2021
8039af6
move annotations to cloudprovider package
marwanad Jun 8, 2021
0f5fde6
use aws sdk to find region
darkpssngr Jun 9, 2021
b73ff76
update readme
darkpssngr Jun 9, 2021
9a95395
Merge pull request #4119 from marwanad/annotate-unregistered-nodes
k8s-ci-robot Jun 9, 2021
75da903
Merge pull request #4124 from krzysied/webhook_fix
k8s-ci-robot Jun 9, 2021
eabbf32
Updated vendor to v1.22.0-alpha.3
jayantjain93 Jun 10, 2021
c70efcf
Merge pull request #4132 from jayantjain93/fix-scheduler-update-vendor
k8s-ci-robot Jun 10, 2021
756a3e1
dont proactively decrement azure cache for unregistered nodes
marwanad Jun 10, 2021
2201e9b
Merge pull request #4109 from Kafei59/feat/ovh-us
k8s-ci-robot Jun 10, 2021
0623a00
Merge pull request #4130 from marwanad/dont-decrement-azure-cache
k8s-ci-robot Jun 11, 2021
671df22
Adding support for PERMISSIONS_ERROR in gce cloud provider
jayantjain93 Jun 11, 2021
f57b8f9
Merge pull request #4137 from jayantjain93/permission-error
k8s-ci-robot Jun 11, 2021
7faca8b
digitalocean: do not Refresh() on startup
timoreimann Jun 15, 2021
92751c4
improve addon-resizer deployment example
pgier Jun 15, 2021
0de2f81
digitalocean: remove tag references from README
timoreimann Jun 15, 2021
84f7628
Merge pull request #4146 from pgier/fix-addon-resizer-example-config
k8s-ci-robot Jun 16, 2021
cdf62a1
Merge pull request #4144 from timoreimann/digitalocean/do-not-refresh…
k8s-ci-robot Jun 16, 2021
6e276be
Merge pull request #4145 from timoreimann/digitalocean/remove-tag-ref…
k8s-ci-robot Jun 16, 2021
5076047
Skip iteration loop if node creation failed
BigDarkClown Jun 15, 2021
7d7df8c
Merge pull request #4143 from BigDarkClown/master
k8s-ci-robot Jun 16, 2021
05e2011
digitalocean: support reading access token from file
timoreimann Jun 15, 2021
1b502e0
Merge pull request #4147 from timoreimann/digitalocean/support-readin…
k8s-ci-robot Jun 16, 2021
6fd23f9
Allow overriding userAgent in Custom GCE client in gce cloud provider.
olagacek Jun 17, 2021
6e3e05d
Merge pull request #4149 from olagacek/master
k8s-ci-robot Jun 17, 2021
7f19fb1
Watch Action instead of polling Server Status
fhofherr Jun 18, 2021
f5cf35b
fix: add missing RBAC permissions to autoscaler chart
MarcusNoble Jun 21, 2021
1d4e6df
Merge pull request #4151 from hetznercloud/fix-nil-pointer-dereference
k8s-ci-robot Jun 21, 2021
b2ead3b
Add the ability to spin up Hetzner servers from custom snapshots
marvinpinto Jun 21, 2021
838ea22
Fixes to address code review comments
marvinpinto Jun 22, 2021
267f306
Merge pull request #4153 from marvinpinto/hetzner-additions
k8s-ci-robot Jun 23, 2021
674de4f
Use CreateInstances() API when scaling up in GCE cloud provider
olagacek Jun 22, 2021
07c7607
Merge pull request #4158 from olagacek/master
k8s-ci-robot Jun 23, 2021
081c466
Add a flag to control DaemonSet eviction on non-empty nodes
x13n Jun 24, 2021
509b3e3
Merge pull request #4162 from x13n/master
k8s-ci-robot Jun 25, 2021
09b07ca
add Standard_HB120rs_v3
mweibel Jun 25, 2021
682dec3
Merge pull request #4166 from mweibel/patch-1
k8s-ci-robot Jun 28, 2021
3fa210f
Add support for AWS Osaka region
rimusz Jun 28, 2021
44b8d67
Allow DaemonSet pods to opt in/out from eviction
x13n Jun 29, 2021
a839343
Merge pull request #4172 from x13n/master
k8s-ci-robot Jun 29, 2021
45f5b12
Document DaemonSet eviction opt in/out behavior
x13n Jun 29, 2021
a7ddc7e
Merge pull request #4169 from rimusz/master
k8s-ci-robot Jul 1, 2021
a457674
Merge pull request #4173 from x13n/docs
k8s-ci-robot Jul 2, 2021
7ddbe27
update cluster-autoscaler chart to 1.21.0
mweibel Jul 1, 2021
7858da6
Merge pull request #4175 from mweibel/patch-1
k8s-ci-robot Jul 5, 2021
3341c86
Merge branch 'master' into chart_rbac
MarcusNoble Jul 5, 2021
9f84d39
Merge pull request #4022 from amrmahdi/amrh/nodegroupminmaxmetrics
k8s-ci-robot Jul 5, 2021
23fdf63
Merge pull request #4154 from MarcusNoble/chart_rbac
k8s-ci-robot Jul 8, 2021
41520aa
[chart] Bump version to valid semver
stevehipwell Jul 8, 2021
7f6f953
Merge pull request #4183 from stevehipwell/chart-semver
k8s-ci-robot Jul 8, 2021
52392b3
Skipping metrics tests added in #4022
MaciekPytel Jul 8, 2021
389cfd2
Merge pull request #4184 from MaciekPytel/fix_ut
k8s-ci-robot Jul 8, 2021
1d0a9e4
Update dependencies to k8s 1.22.0-beta.1
MaciekPytel Jul 9, 2021
d221b0f
Merge pull request #4187 from MaciekPytel/1_22_beta_1
k8s-ci-robot Jul 9, 2021
099f2a3
Updating link addresses for MinAvailable and Cloud-controller-manager
Ritikaa96 Jul 13, 2021
9802a19
docs: replaces Travis CI badge with GitHub Actions badges
mattxwang Jul 13, 2021
5e0fbd9
Merge pull request #4195 from mattxwang/master
k8s-ci-robot Jul 14, 2021
fa39793
Merge pull request #4193 from Ritikaa96/update-faq-cluster-autoscaler
k8s-ci-robot Jul 14, 2021
0499b88
update cluster-autoscaler CAPI provider owners
elmiko Jul 15, 2021
d74c8e3
Merge pull request #4200 from elmiko/update-capi-owners
k8s-ci-robot Jul 16, 2021
dcdb952
[Examples] Update the AWS examples to have 600Mi of memory
MyannaHarris Jul 19, 2021
92ec53d
Merge pull request #4106 from ockam-network/master
k8s-ci-robot Jul 19, 2021
3a69f11
Merge pull request #4207 from MyannaHarris/update_cas_aws_example_memory
k8s-ci-robot Jul 19, 2021
b2f7fcc
Update cluster-autoscaler/cloudprovider/aws/README.md
darkpssngr Jul 20, 2021
0946e38
Merge pull request #4127 from shreyas-srinivas/ca_aws_region_fix
k8s-ci-robot Jul 22, 2021
649d9e8
update go version to 1.16 for dockerfile
jayantjain93 Jul 22, 2021
af9abfe
Merge pull request #4216 from jayantjain93/update-go-version
k8s-ci-robot Jul 23, 2021
74762f2
Update dependencies to k8s 1.23.0-alpha-0
jayantjain93 Jul 22, 2021
7b9725f
Merge pull request #4215 from jayantjain93/vendor-v1.23.0-alpha.0
k8s-ci-robot Jul 23, 2021
c8c9a3e
[chart] Add multi string arg support
stevehipwell Jul 26, 2021
b6a5cdc
Merge pull request #4226 from stevehipwell/extra-args-multi-string
k8s-ci-robot Jul 26, 2021
655bc6f
GCE: CreateInstances() should use BaseInstanceName
bpineau Jul 26, 2021
1ecc8b4
Merge pull request #4225 from DataDog/gce-createinstances-basename
k8s-ci-robot Jul 29, 2021
8f11490
Introduce UpdateDeprecatedTemplateLabels to set beta/deprecated labels
codablock May 3, 2021
6d84abf
Remove obsolete comment
codablock May 23, 2021
21fc0c1
Merge pull request #4053 from codablock/old-labels
k8s-ci-robot Aug 2, 2021
79c63a7
cluster-autoscaler: fix tests and GCE NodePrice
bpineau Aug 2, 2021
c563a40
Merge pull request #4235 from DataDog/fix-tests-and-gcp-pricing
k8s-ci-robot Aug 3, 2021
1e4cb1e
Move UpdateDeprecatedTemplateLabels function
BigDarkClown Aug 4, 2021
9d54f7b
Merge pull request #4239 from BigDarkClown/move-update-labels
k8s-ci-robot Aug 4, 2021
0fbfe18
Update dependencies to k8s 1.22.0
x13n Aug 6, 2021
96ca418
Update Cluster Autoscaler version to 1.22
x13n Aug 6, 2021
0f46698
Merge pull request #4244 from x13n/cluster-autoscaler-release-1.22
k8s-ci-robot Aug 6, 2021
e03fc32
Merging new changes till k/autoscaler 1.22.0
himanshu-kun May 16, 2022
fc1ff72
updated vendor against k/k@v1.21.0
himanshu-kun May 16, 2022
53c9f33
Merge branch 'machine-controller-manager-provider' into sync-with-ups…
himanshu-kun May 24, 2022
50ee5e8
update FAQ to ignore integration package for testing
himanshu-kun May 30, 2022
03d4e3d
update ci files to GO111MODULE=off
himanshu-kun May 30, 2022
0a846c4
update more ci files to GO111MODULE=off
himanshu-kun May 30, 2022
0c0c195
SYNC_CHANGES updated for v1.22 release
himanshu-kun May 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .ci/build
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ fi
# If no LOCAL_BUILD environment variable is set, we configure the `go build` command
# to build for linux OS, amd64 architectures and without CGO enablement.
if [[ -z "$LOCAL_BUILD" ]]; then
go build \
GO111MODULE=off go build \
-a \
-v \
-o ${BINARY_PATH}/cluster-autoscaler/cluster-autoscaler \
cluster-autoscaler/main.go

# If the LOCAL_BUILD environment variable is set, we simply run `go build`.
else
go build \
GO111MODULE=off go build \
-v \
-o ${BINARY_PATH}/cluster-autoscaler/cluster-autoscaler \
cluster-autoscaler/main.go
Expand Down
4 changes: 2 additions & 2 deletions .ci/test
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ fi

##############################################################################

go test $(go list ./cluster-autoscaler/... | grep -v cloudprovider | grep -v vendor | grep -v integration)
go test $(go list ./cluster-autoscaler/cloudprovider/mcm/... | grep -v vendor)
GO111MODULE=off go test $(GO111MODULE=off go list ./cluster-autoscaler/... | grep -v cloudprovider | grep -v vendor | grep -v integration)
GO111MODULE=off go test $(GO111MODULE=off go list ./cluster-autoscaler/cloudprovider/mcm/... | grep -v vendor)

#TODO: Return success failure properly
echo "CI tests are done"
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16

- uses: actions/checkout@v2
with:
Expand All @@ -26,11 +26,17 @@ jobs:
- name: Prepare
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
run: hack/install-verify-tools.sh
env:
GO111MODULE: auto

- name: Verify
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
run: hack/verify-all.sh -v
env:
GO111MODULE: auto

- name: Test
working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler
run: hack/for-go-proj.sh test
env:
GO111MODULE: auto
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Find more details about this fork in [FORK.md](./FORK.md).

# Kubernetes Autoscaler

[![Build Status](https://travis-ci.org/kubernetes/autoscaler.svg?branch=master)](https://travis-ci.org/kubernetes/autoscaler) [![GoDoc Widget]][GoDoc]
[![Release Charts](https://github.com/kubernetes/autoscaler/actions/workflows/release.yaml/badge.svg)](https://github.com/kubernetes/autoscaler/actions/workflows/release.yaml) [![Tests](https://github.com/kubernetes/autoscaler/actions/workflows/ci.yaml/badge.svg)](https://github.com/kubernetes/autoscaler/actions/workflows/ci.yaml) [![GoDoc Widget]][GoDoc]

This repository contains autoscaling-related components for Kubernetes.

Expand Down
6 changes: 4 additions & 2 deletions addon-resizer/deploy/example.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Config map for resource configuration.
# Specify 'cpu', 'extra-cpu', 'memory' and 'extra-memory'
# to overwrite resource requirements.
# Specify 'baseCPU', 'cpuPerNode', 'baseMemory', and 'memoryPerNode' to
# overwrite the CLI resource options 'cpu', 'extra-cpu', 'memory' and 'extra-memory'
# respectively.
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -100,6 +101,7 @@ rules:
- list
- update
- watch
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
3 changes: 2 additions & 1 deletion builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.14
FROM golang:1.16
LABEL maintainer="Marcin Wielgus <mwielgus@google.com>"

ENV GOPATH /gopath/
ENV PATH $GOPATH/bin:$PATH
ENV GO111MODULE auto

RUN apt-get update && apt-get --yes install libseccomp-dev
RUN go version
Expand Down
4 changes: 2 additions & 2 deletions charts/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.20.0
appVersion: 1.21.0
description: Scales Kubernetes worker nodes within autoscaling groups.
engine: gotpl
home: https://github.com/kubernetes/autoscaler
Expand All @@ -17,4 +17,4 @@ name: cluster-autoscaler
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 9.9.2
version: 9.10.3
14 changes: 10 additions & 4 deletions charts/cluster-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,16 @@ Auto-discovery finds ASGs tags as below and automatically manages them based on
- Verify the [IAM Permissions](#aws---iam)
- Set `autoDiscovery.clusterName=<YOUR CLUSTER NAME>`
- Set `awsRegion=<YOUR AWS REGION>`
- Set `awsAccessKeyID=<YOUR AWS KEY ID>` and `awsSecretAccessKey=<YOUR AWS SECRET KEY>` if you want to [use AWS credentials directly instead of an instance role](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#using-aws-credentials)
- Set (option) `awsAccessKeyID=<YOUR AWS KEY ID>` and `awsSecretAccessKey=<YOUR AWS SECRET KEY>` if you want to [use AWS credentials directly instead of an instance role](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#using-aws-credentials)

```console
$ helm install my-release autoscaler/cluster-autoscaler --set autoDiscovery.clusterName=<CLUSTER NAME>
$ helm install my-release autoscaler/cluster-autoscaler --set autoDiscovery.clusterName=<CLUSTER NAME> --set awsRegion=<YOUR AWS REGION>
```

Alternatively with your own AWS credentials

```console
$ helm install my-release autoscaler/cluster-autoscaler --set autoDiscovery.clusterName=<CLUSTER NAME> --set awsRegion=<YOUR AWS REGION> --set awsAccessKeyID=<YOUR AWS KEY ID> --set awsSecretAccessKey=<YOUR AWS SECRET KEY>
```

#### Specifying groups manually
Expand Down Expand Up @@ -356,7 +362,7 @@ Though enough for the majority of installations, the default PodSecurityPolicy _
| envFromConfigMap | string | `""` | ConfigMap name to use as envFrom. |
| envFromSecret | string | `""` | Secret name to use as envFrom. |
| expanderPriorities | object | `{}` | The expanderPriorities is used if `extraArgs.expander` is set to `priority` and expanderPriorities is also set with the priorities. If `extraArgs.expander` is set to `priority`, then expanderPriorities is used to define cluster-autoscaler-priority-expander priorities. See: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md |
| extraArgs | object | `{"logtostderr":true,"stderrthreshold":"info","v":4}` | Additional container arguments. Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler parameters and their default values. |
| extraArgs | object | `{"logtostderr":true,"stderrthreshold":"info","v":4}` | Additional container arguments. Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler parameters and their default values. Everything after the first _ will be ignored allowing the use of multi-string arguments. |
| extraEnv | object | `{}` | Additional container environment variables. |
| extraEnvConfigMaps | object | `{}` | Additional container environment variables from ConfigMaps. |
| extraEnvSecrets | object | `{}` | Additional container environment variables from Secrets. |
Expand All @@ -367,7 +373,7 @@ Though enough for the majority of installations, the default PodSecurityPolicy _
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.pullSecrets | list | `[]` | Image pull secrets |
| image.repository | string | `"k8s.gcr.io/autoscaling/cluster-autoscaler"` | Image repository |
| image.tag | string | `"v1.20.0"` | Image tag |
| image.tag | string | `"v1.21.0"` | Image tag |
| kubeTargetVersionOverride | string | `""` | Allow overriding the `.Capabilities.KubeVersion.GitVersion` check. Useful for `helm template` commands. |
| magnumCABundlePath | string | `"/etc/kubernetes/ca-bundle.crt"` | Path to the host's CA bundle, from `ca-file` in the cloud-config file. |
| magnumClusterName | string | `""` | Cluster name or ID in Magnum. Required if `cloudProvider=magnum` and not setting `autoDiscovery.clusterName`. |
Expand Down
10 changes: 8 additions & 2 deletions charts/cluster-autoscaler/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,16 @@ Auto-discovery finds ASGs tags as below and automatically manages them based on
- Verify the [IAM Permissions](#aws---iam)
- Set `autoDiscovery.clusterName=<YOUR CLUSTER NAME>`
- Set `awsRegion=<YOUR AWS REGION>`
- Set `awsAccessKeyID=<YOUR AWS KEY ID>` and `awsSecretAccessKey=<YOUR AWS SECRET KEY>` if you want to [use AWS credentials directly instead of an instance role](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#using-aws-credentials)
- Set (option) `awsAccessKeyID=<YOUR AWS KEY ID>` and `awsSecretAccessKey=<YOUR AWS SECRET KEY>` if you want to [use AWS credentials directly instead of an instance role](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/aws/README.md#using-aws-credentials)

```console
$ helm install my-release autoscaler/cluster-autoscaler --set autoDiscovery.clusterName=<CLUSTER NAME>
$ helm install my-release autoscaler/cluster-autoscaler --set autoDiscovery.clusterName=<CLUSTER NAME> --set awsRegion=<YOUR AWS REGION>
```

Alternatively with your own AWS credentials

```console
$ helm install my-release autoscaler/cluster-autoscaler --set autoDiscovery.clusterName=<CLUSTER NAME> --set awsRegion=<YOUR AWS REGION> --set awsAccessKeyID=<YOUR AWS KEY ID> --set awsSecretAccessKey=<YOUR AWS SECRET KEY>
```

#### Specifying groups manually
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ To verify that cluster-autoscaler has started, run:

The deployment and pod will not be created and the installation is not functional
See README:
open https://github.com/kubernetes/charts/tree/master/stable/cluster-autoscaler
open https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler

{{- end -}}
2 changes: 2 additions & 0 deletions charts/cluster-autoscaler/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ rules:
resources:
- storageclasses
- csinodes
- csidrivers
- csistoragecapacities
verbs:
- watch
- list
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
- --cloud-config={{ .Values.cloudConfigPath }}
{{- end }}
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
- --{{ $key | mustRegexFind "^[^_]+" }}={{ $value }}
{{- end }}
env:
{{- if and (eq .Values.cloudProvider "aws") (ne .Values.awsRegion "") }}
Expand Down
5 changes: 4 additions & 1 deletion charts/cluster-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ expanderPriorities: {}
# extraArgs -- Additional container arguments.
# Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler
# parameters and their default values.
# Everything after the first _ will be ignored allowing the use of multi-string arguments.
extraArgs:
logtostderr: true
stderrthreshold: info
Expand All @@ -149,6 +150,8 @@ extraArgs:
# scale-down-delay-after-failure: 3m
# scale-down-unneeded-time: 10m
# skip-nodes-with-system-pods: true
# balancing-ignore-label_1: first-label-to-ignore
# balancing-ignore-label_2: second-label-to-ignore

# extraEnv -- Additional container environment variables.
extraEnv: {}
Expand Down Expand Up @@ -195,7 +198,7 @@ image:
# image.repository -- Image repository
repository: k8s.gcr.io/autoscaling/cluster-autoscaler
# image.tag -- Image tag
tag: v1.20.0
tag: v1.21.0
# image.pullPolicy -- Image pull policy
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
Expand Down
Loading