feature:TSG-12552:新增k3s相关证书轮转方法

This commit is contained in:
fumingwei
2023-05-19 16:02:43 +08:00
parent e0330241c0
commit 8d4fd6f444
3 changed files with 8 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ spec:
args:
- "--multus-conf-file=auto"
- "--cni-version=0.3.1"
- "--multus-kubeconfig-file-host=/etc/rancher/k3s/k3s.yaml"
resources:
requests:
cpu: "100m"

View File

@@ -0,0 +1,2 @@
[Service]
RuntimeMaxSec=300d

View File

@@ -65,3 +65,8 @@
copy:
src: "{{ role_path }}/files/crontab_clean_orphaned_pods_dir"
dest: /var/spool/cron/root
- name: "copy override service file to dest"
copy:
src: "{{ role_path }}/files/service_set_RuntimeMaxSec.conf"
dest: /usr/lib/systemd/system/k3s.service.d/