diff --git a/tools/packaging/kata-deploy/kata-cleanup/overlays/k3s/kustomization.yaml b/tools/packaging/kata-deploy/kata-cleanup/overlays/k3s/kustomization.yaml new file mode 100644 index 0000000000..2e37b842b7 --- /dev/null +++ b/tools/packaging/kata-deploy/kata-cleanup/overlays/k3s/kustomization.yaml @@ -0,0 +1,5 @@ +bases: +- ../../base + +patchesStrategicMerge: +- mount_k3s_conf.yaml diff --git a/tools/packaging/kata-deploy/kata-cleanup/overlays/k3s/mount_k3s_conf.yaml b/tools/packaging/kata-deploy/kata-cleanup/overlays/k3s/mount_k3s_conf.yaml new file mode 100644 index 0000000000..8173a47565 --- /dev/null +++ b/tools/packaging/kata-deploy/kata-cleanup/overlays/k3s/mount_k3s_conf.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: kubelet-kata-cleanup + namespace: kube-system +spec: + template: + spec: + containers: + - name: kube-kata-cleanup + volumeMounts: + - name: containerd-conf + mountPath: /etc/containerd/ + volumes: + - name: containerd-conf + hostPath: + path: /var/lib/rancher/k3s/agent/etc/containerd/