Update AWS documentation and CA version in examples
This commit is contained in:
parent
d2debce872
commit
d027959fde
|
|
@ -50,8 +50,11 @@ If you'd like to auto-discover node groups by specifying the `--node-group-auto-
|
|||
AWS supports ARNs for autoscaling groups. More information [here](https://docs.aws.amazon.com/autoscaling/latest/userguide/control-access-using-iam.html#policy-auto-scaling-resources).
|
||||
|
||||
## Deployment Specification
|
||||
Auto-Discovery Setup is always preferred option to avoid multiple, potentially different configuration for min/max values. If you want to adjust minimum and maximum size of the group, please adjust size on ASG directly, CA will fetch latest change when talking to ASG.
|
||||
|
||||
### 1 ASG Setup (min: 1, max: 10, ASG Name: k8s-worker-asg-1)
|
||||
If you use one or multiple ASG setup, the min/max configuration change in CA will not make the corresponding change to ASG. Please make sure CA min/max values are within the boundary of ASG minSize and maxSize.
|
||||
|
||||
### One ASG Setup (min: 1, max: 10, ASG Name: k8s-worker-asg-1)
|
||||
```
|
||||
kubectl apply -f examples/cluster-autoscaler-one-asg.yaml
|
||||
```
|
||||
|
|
@ -64,6 +67,7 @@ kubectl apply -f examples/cluster-autoscaler-multi-asg.yaml
|
|||
### Master Node Setup
|
||||
|
||||
To run a CA pod in master node - CA deployment should tolerate the master `taint` and `nodeSelector` should be used to schedule the pods in master node.
|
||||
Please replace `{{ node_asg_min }}`, `{{ node_asg_max }}` and `{{ name }}` with your ASG setting in the yaml file.
|
||||
```
|
||||
kubectl apply -f examples/cluster-autoscaler-run-on-master.yaml
|
||||
```
|
||||
|
|
@ -138,7 +142,7 @@ If you'd like to scale node groups from 0, an `autoscaling:DescribeLaunchConfigu
|
|||
```
|
||||
|
||||
## Common Notes and Gotchas:
|
||||
- The `/etc/ssl/certs/ca-certificates.crt` should exist by default on your ec2 instance. If you use Amazon Linux 2, use `/etc/ssl/certs/ca-bundle.crt` instead.
|
||||
- The `/etc/ssl/certs/ca-certificates.crt` should exist by default on your ec2 instance. If you use Amazon Linux 2 (EKS woker node AMI by default), use `/etc/ssl/certs/ca-bundle.crt` instead.
|
||||
- Cluster autoscaler is not zone aware (for now), so if you wish to span multiple availability zones in your autoscaling groups beware that cluster autoscaler will not evenly distribute them. For more information, see https://github.com/kubernetes/contrib/pull/1552#discussion_r75532949.
|
||||
- By default, cluster autoscaler will not terminate nodes running pods in the kube-system namespace. You can override this default behaviour by passing in the `--skip-nodes-with-system-pods=false` flag.
|
||||
- By default, cluster autoscaler will wait 10 minutes between scale down operations, you can adjust this using the `--scale-down-delay-after-add`, `--scale-down-delay-after-delete`, and `--scale-down-delay-after-failure` flag. E.g. `--scale-down-delay-after-add=5m` to decrease the scale down delay to 5 minutes after a node has been added.
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ spec:
|
|||
spec:
|
||||
serviceAccountName: cluster-autoscaler
|
||||
containers:
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.2.2
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.3.6
|
||||
name: cluster-autoscaler
|
||||
resources:
|
||||
limits:
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ spec:
|
|||
spec:
|
||||
serviceAccountName: cluster-autoscaler
|
||||
containers:
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.2.2
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.3.6
|
||||
name: cluster-autoscaler
|
||||
resources:
|
||||
limits:
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ spec:
|
|||
spec:
|
||||
serviceAccountName: cluster-autoscaler
|
||||
containers:
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.2.2
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.3.6
|
||||
name: cluster-autoscaler
|
||||
resources:
|
||||
limits:
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ spec:
|
|||
nodeSelector:
|
||||
kubernetes.io/role: master
|
||||
containers:
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.2.2
|
||||
- image: k8s.gcr.io/cluster-autoscaler:v1.3.6
|
||||
name: cluster-autoscaler
|
||||
resources:
|
||||
limits:
|
||||
|
|
|
|||
Loading…
Reference in New Issue