Open lining2020x opened 2 years ago
Here is my test pod yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: test-kata
spec:
selector:
matchLabels:
name: test-kata
template:
metadata:
labels:
name: test-kata
spec:
runtimeClassName: kata-qemu
containers:
- name: kata-pod
image: debian:buster
command: ["tail", "-f", "/dev/null"]
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 200m
memory: 200Mi
FYI: 9p is work.
the command is stuck, when i delete kata container pod using kubectl delete pod . journal -t kata say "stop container failed" container=af19a4c5147e26e012ad60ce9ac4090041f06a52da859208a30ea972ea797d99 error="rpc error: code = Internal desc = failed to remove dir \"/run/kata-containers/shared/containers/af19a4c5147e26e012ad60ce9ac4090041f06a52da859208a30ea972ea797d99\"\n\nCaused by:\n Read-only file system (os error 30)" name=containerd-shim-v2
I also encountered this problem.
/etc/resolv.conf
is a read-only file with privileged security context.
Description of problem
Failed to write to /etc/resolv.conf in kata container.
Expected result
Succeed to write to
/etc/resolv.conf
Actual result
Failed to write to
/etc/resolv.conf
Further information
Versions: