Skip to content

Commit

Permalink
Merge pull request #973 from aleksandra-malinowska/cluster-autoscaler…
Browse files Browse the repository at this point in the history
…-release-1.3

Fast forward Cluster Autoscaler release branch 1.3 to master
MaciekPytel authored Jun 15, 2018
2 parents 534e77b + 64a11a6 commit 542d55f
Showing 189 changed files with 4,572 additions and 8,443 deletions.
21 changes: 21 additions & 0 deletions addon-resizer/README.md
Original file line number Diff line number Diff line change
@@ -35,6 +35,19 @@ Usage of pod_nanny:
The following yaml is an example deployment where the nanny watches and resizes itself.

```yaml
# Config map for resource configuration.
# Specify 'cpu', 'extra-cpu', 'memory' and 'extra-memory'
# to overwrite resource requirements.
apiVersion: v1
kind: ConfigMap
metadata:
name: nanny-config
namespace: default
data:
NannyConfiguration: |-
apiVersion: nannyconfig/v1alpha1
kind: NannyConfiguration
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
@@ -76,14 +89,22 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: nanny-config-volume
mountPath: /etc/config
command:
- /pod_nanny
- --config-dir=/etc/config
- --cpu=300m
- --extra-cpu=20m
- --memory=200Mi
- --extra-memory=10Mi
- --threshold=5
- --deployment=nanny-v1
volumes:
- name: nanny-config-volume
configMap:
name: nanny-config
```
## Addon resizer configuration
Loading

0 comments on commit 542d55f

Please sign in to comment.