acorn-io/runtime

Not able to mount directories for "/run" dir

sangee2004 opened this issue · 0 comments

acorn version - v0.10.0-rc1-7-g8b9acb47+8b9acb47

Steps to reproduce the problem:

  1. Deploy app that has containers with directory entries for /run
containers: {
	db: {
		image:   "mariadb:10-focal"
		command: "--default-authentication-plugin=mysql_native_password"
		dirs: {
			"/var/lib/mysql": "volume://db-data"
			"/run/secrets":   "secret://db-password"
		}
		environment: {
			MYSQL_DATABASE:           "example"
			MYSQL_ROOT_PASSWORD_FILE: "/run/secrets/db-password"
		}
		ports: ["3306/tcp", "33060/tcp"]
	}
}
secrets: {
	"db-password": {
		type: "opaque"
		data: {
			"db-password": "test1"
		}
	}
}

App deployment fails with following error -

testdir1   a2c10ed8e866             108s ago               (container: db): CrashLoopBackOff: StartError: Exit Code 128: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/kubelet/pods/327ac335-c51e-4019-b7dd-ad2a17cdf8c9/volumes/kubernetes.io~projected/kube-api-access-q897d" to rootfs at "/var/run/secrets/kubernetes.io/serviceaccount": mkdir /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/c85392e6e385b92d476174bae3d4612fc13e2ce2acb5463adf5fb1a86345e7a5/rootfs/run/secrets/kubernetes.io: read-only file system: unknown