feature:新增k3s系统资源管理配置文件

This commit is contained in:
fumingwei
2022-10-28 19:50:28 +08:00
parent f3f417401f
commit 158ba25cf0
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
kubelet-arg:
- "kube-reserved=memory=2Gi"
- "system-reserved=memory=2Gi"
- "eviction-hard=memory.available<2Gi"

View File

@@ -49,3 +49,8 @@
copy:
src: "{{ role_path }}/files/10-bridge.conf"
dest: /etc/cni/net.d/
- name: "copy config.yaml to dest for resource management"
copy:
src: "{{ role_path }}/files/config.yaml"
dest: /etc/rancher/k3s/