generated from bing/readnotes
35 lines
1015 B
YAML
35 lines
1015 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dns-autoscaler
|
|
namespace: kube-system
|
|
labels:
|
|
k8s-app: dns-autoscaler
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: dns-autoscaler
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: dns-autoscaler
|
|
spec:
|
|
containers:
|
|
- name: autoscaler
|
|
image: registry.bing89.com/gcrio/cluster-proportional-autoscaler-amd64:1.8.0
|
|
resources:
|
|
requests:
|
|
cpu: 20m
|
|
memory: 10Mi
|
|
command:
|
|
- /cluster-proportional-autoscaler
|
|
- --namespace=kube-system
|
|
- --configmap=dns-autoscaler
|
|
- --target=deployment/coredns
|
|
# When cluster is using large nodes(with more cores), "coresPerReplica" should dominate.
|
|
# If using small nodes, "nodesPerReplica" should dominate.
|
|
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
|
|
- --logtostderr=true
|
|
- --v=2
|
|
imagePullSecrets:
|
|
- name: registry-bing89 |