-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K8s requests/limits for Calico components? #9587
Comments
@rafalr-ntropy I think you're on the right track. Unfortunately our documentation here is pretty bad and needs to be fixed. I think the reason it's not working for you is an extra apiServer:
enabled: true
apiServerDeployment:
spec:
template:
spec:
containers:
- name: calico-apiserver
resources:
limits:
cpu: 200m
memory: 192Mi
requests:
cpu: 100m
memory: 192Mi
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway |
hi @caseydavenport do you maybe have similar examples how to set limits/requests for calico components other than the apiserver? |
@rafalr-ntropy glad it worked! I believe there should be equivalent fields you can specify in the For example calicoNodeDaemonSet, calicoKubeControllersDeployment, and typhaDeployment |
I'm using tigera-operator-v3.28.2 helm chart and I wasn't able to find easily digestible documentation how to set cpu/memory limits for calico components (tigera-operator, api-server, typha, node, csi-node-driver, kube-controllers). Values available in https://artifacthub.io/packages/helm/projectcalico/tigera-operator and in https://github.com/projectcalico/calico/blob/master/charts/tigera-operator/values.yaml aren't enough.
I tried to set values.yaml according to https://docs.tigera.io/calico/latest/reference/installation/api#operator.tigera.io/v1.APIServerDeploymentPodSpec to:
As a result calico-apiserver doesn't have any requests/limits set. They are set only for tigera-operator.
How should I set cpu/memory requests limits for all calico components?
Expected Behavior
A clear example in the documentation or in values.yaml for the helm chart should be provided to foster much needed setting of cpu/memory limits/requests for all calico components.
Your Environment
v3.28.2
iptables
EKS 1.31 platform version eks.12
Amazon Linux 2, kernel 5.10.225-213.878.amzn2.x86_64
The text was updated successfully, but these errors were encountered: