Skip to content

Instantly share code, notes, and snippets.

@mseiwald
Last active November 24, 2021 00:56
Show Gist options
  • Save mseiwald/e99df3b67cfaa8f54c94af92fc2a8a8e to your computer and use it in GitHub Desktop.
Save mseiwald/e99df3b67cfaa8f54c94af92fc2a8a8e to your computer and use it in GitHub Desktop.
---
kind: ConfigMap
apiVersion: v1
metadata:
name: overprovisioning
namespace: kube-system
data:
linear: |-
{
"coresPerReplica": 40
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: overprovisioning-autoscaler
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: overprovisioning-autoscaler
template:
metadata:
labels:
app: overprovisioning-autoscaler
spec:
containers:
- image: k8s.gcr.io/cluster-proportional-autoscaler-amd64:1.1.2
name: autoscaler
command:
- /cluster-proportional-autoscaler
- --namespace=kube-system
- --configmap=overprovisioning
- --target=deployment/overprovisioning
- --logtostderr=true
- --v=2
serviceAccountName: cluster-proportional-autoscaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment