Closed fmunteanu closed 2 days ago
The values you are looking for are defined in https://github.com/k3s-io/k3s/blob/master/manifests/coredns.yaml#L125-L130. They are controlled via the manifests for the pods. You will need to override those values with your own using. https://docs.k3s.io/helm#customizing-packaged-components-with-helmchartconfig.
Thank you for the useful information @dereknola. Just some clarification, your Helm example talks about HelmChartConfig
kind, but my changed are related to Deployment
kind. What would be the proper template format, DeploymentConfig
?
Since containers are a list, setting a specific value will delete the other list elements:
apiVersion: helm.cattle.io/v1
kind: DeploymentConfig
metadata:
name: coredns
namespace: kube-system
spec:
template:
spec:
containers:
- name: coredns
resources:
limits:
cpu: null
memory: 256Mi
requests:
cpu: 100m
memory: 256Mi
What would be the correct template format?
Environmental Info: K3s Version:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration: 3 servers + 5 agents, HA enabled
Describe the bug: I looked at the server configuration documentation and I could find any relevant setting allowing me to define the
coredns
andmetrics-server
resources. I also did a search through closed issues, without finding any relevant information. I see for example themetrics-server
pod resources set to:Where are these values configured? Ideally, I would like to also set the number of pods to 2 (instead of 1), not sure if this is recommended.
Current server configuration on
apollo
server: