mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
packaging/kata-cleanup: add k3s containerd volume
kata-deploy cleanup expects to find containerd configuration in /etc/containerd/config.toml. In case of k3s mount the k3s containerd config as a volume. Fixes #1801 Signed-off-by: Orestis Lagkas Nikolos <olagkasn@nubificus.co.uk>
This commit is contained in:
parent
d0eda5ecfd
commit
9381e5f31a
@ -0,0 +1,5 @@
|
||||
bases:
|
||||
- ../../base
|
||||
|
||||
patchesStrategicMerge:
|
||||
- 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/
|
Loading…
Reference in New Issue
Block a user