File tree 4 files changed +64
-0
lines changed
4 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ author : CoCreate LLC
2
+ year : 2020
3
+ license : SSPL
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : v1
3
+ data :
4
+ autoscalegroups.yaml : |
5
+ autoScaleGroups:
6
+ - name: loadbalancer
7
+ scaleUpThreshold: "memory=0.7,cpu=0.7"
8
+ labelSelector: "nodeType=loadbalancer"
9
+ metricSource:
10
+ type: kubernetes
11
+ provisioner:
12
+ type: ranchernodepool
13
+ rancherNodePoolID: "c-bflfq:np-g6jvt"
14
+ - name: application
15
+ scaleUpThreshold: "memory=0.7,cpu=0.7"
16
+ labelSelector: "nodeType=application"
17
+ metricSource:
18
+ type: kubernetes
19
+ provisioner:
20
+ type: ranchernodepool
21
+ rancherNodePoolID: "c-bflfq:np-7hb6l"
22
+ kind : ConfigMap
23
+ metadata :
24
+ creationTimestamp : null
25
+ name : auto-scale-groups
26
+ ---
Original file line number Diff line number Diff line change
1
+ module github.com/CoCreate-app/CoCreateLB/nodeautoscaler
2
+
3
+ go 1.15
4
+
5
+ replace k8s.io/client-go => k8s.io/client-go v0.18.8
6
+
7
+ require (
8
+ github.com/go-logr/logr v0.4.0
9
+ github.com/mitchellh/go-homedir v1.1.0
10
+ github.com/rancher/norman v0.0.0-20210225010917-c7fd1e24145b
11
+ github.com/rancher/types v0.0.0-20210123000350-7cb436b3f0b0
12
+ github.com/spf13/cobra v1.1.3
13
+ github.com/spf13/pflag v1.0.5
14
+ github.com/spf13/viper v1.7.1
15
+ golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
16
+ k8s.io/api v0.18.8
17
+ k8s.io/apimachinery v0.18.8
18
+ k8s.io/client-go v12.0.0+incompatible
19
+ k8s.io/klog/v2 v2.6.0
20
+ k8s.io/metrics v0.18.8
21
+ )
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) 2020 CoCreate LLC
3
+ *
4
+ */
5
+
6
+ package main
7
+
8
+ import (
9
+ "github.com/CoCreate-app/CoCreateLB/nodeautoscaler/cmd"
10
+ )
11
+
12
+ func main () {
13
+ cmd .Execute ()
14
+ }
You can’t perform that action at this time.
0 commit comments