My kubernetes containers are giving CrashLoopBackOff
error. When I looked inside using describe command, I got the following error:
Error: failed to start container "app-mongo": Error response from daemon: linux runtime spec devices: readdirent: invalid argument
The Deployment is below:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose-file.yaml
kompose.version: 1.5.0 (999278f)
creationTimestamp: null
labels:
io.kompose.service: app-mongo
name: app-mongo
spec:
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: app-mongo
spec:
containers:
- image: xxx.xx.xx.xx:5000/mongo:0.1
name: app-mongo
resources: {}
securityContext:
privileged: true
imagePullSecrets:
- name: regsecret
restartPolicy: Always
status: {}
Can anyone please help me on this?
Please give a try after having the image("app-mongo") on the machine.