pacoxu / kubeadm-operator

Test work on the design of kubeadm operator. Also you can try https://github.com/chendave/kubeadm-operator
Apache License 2.0
10 stars 2 forks source link

set a suitable limit for agent #62

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

set a suitable limit for agent

Limits: corev1.ResourceList{

corev1.ResourceCPU: resource.MustParse("100m"),

corev1.ResourceMemory: resource.MustParse("30Mi"),

},

https://github.com/pacoxu/kubeadm-operator/blob/d3fd73b1ef67fd14c457572a28d690c19f86e4bd/controllers/util.go#L149

                            },
                            Resources: corev1.ResourceRequirements{
                                // TODO set a suitable limit for agent
                                // Limits: corev1.ResourceList{
                                //  corev1.ResourceCPU:    resource.MustParse("100m"),
                                //  corev1.ResourceMemory: resource.MustParse("30Mi"),
                                // },
                                Requests: corev1.ResourceList{
                                    corev1.ResourceCPU:    resource.MustParse("100m"),
                                    corev1.ResourceMemory: resource.MustParse("20Mi"),

f72b7d3fba90a7b01d7101cefbe1d536c429c676