Hi All,
Im unable to run anything inside pod when runsc is used as runtimeclass.
Setup details :
OS - centos7
kubernetes: "v1.22.5"
step1 : I have configured gvisor on centos7 following below link.
step2: created runtime class with below configuration
apiVersion:
node.k8s.io/v1kind: RuntimeClass
metadata:
# The name the RuntimeClass will be referenced by.
# RuntimeClass is a non-namespaced resource.
name: gvisor
# The name of the corresponding CRI configuration
handler: runsc
Step3: created pod using above runtimeclass
apiVersion: v1
kind: Pod
metadata:
labels:
run: anvitest
name: anvitest
spec:
runtimeClassName: gvisor
containers:
- image:
docker.io/praqma/network-multitool name: anvitest
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
Container came to running state
kubectl get pods
NAME READY STATUS RESTARTS AGE
anvitest 1/1 Running 0 19m
Step3: Tried logging to pod and executed few things, i see there is no output printing
kubectl exec -it anvitest -- /bin/bash
bash-5.1# dmesg
bash-5.1# ls
bash-5.1# ps
ps: write error
bash-5.1#
Note: All above commands works without runtimeclass
Please help me what im doing wrong
Regards,
Anvitha