feature:新增k3s系统资源管理配置文件
This commit is contained in:
4
ansible/roles/k3s-install/files/config.yaml
Normal file
4
ansible/roles/k3s-install/files/config.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
kubelet-arg:
|
||||
- "kube-reserved=memory=2Gi"
|
||||
- "system-reserved=memory=2Gi"
|
||||
- "eviction-hard=memory.available<2Gi"
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user