devspace
devspace copied to clipboard
devspace with microk8s on ubuntu
What happened?
In attempting to use devspace with my local microk8s node, with the kaniko builder, I get an error:
[image] error building image: error building stage: failed to optimize instructions: read /proc/1/attr/apparmor/exec: invalid argument
What did you expect to happen instead?
I expected the container to build.
How can we reproduce the bug? (as minimally and precisely as possible)
On a ubuntu machine
sudo snap install microk8s --classic --channel=1.21
microk8s kubectl config view --raw > ~/.kube/microconfig
export KUBECONFIG=~/.kube/microconfig
devspace build
Local Environment:
- DevSpace Version: 5.14.4
- Operating System: linux, ubuntu 21.04
- Deployment method: kubectl apply
Kubernetes Cluster:
- Cloud Provider: other, microk8s
- Kubernetes Version: 1.21.3
Anything else we need to know? This appears to be kaniko/apparmor related.
/kind bug
**What did you expect to happen instead?**
**How can we reproduce the bug?** (as minimally and precisely as possible)
**Local Environment:**
- DevSpace Version: [use `devspace --version`]
- Operating System: windows | linux | mac
- Deployment method: helm | kubectl apply
**Kubernetes Cluster:**
- Cloud Provider: google | aws | azure | DevSpace Cloud | DevSpace Cloud Enterprise | other
- Kubernetes Version: [use `kubectl version`]
**Anything else we need to know?**
/kind bug
@ruckc thanks for reporting this! Seems like apparmor might be a problem somehow. As suggested here, applying apparmor=1 lsm=lockdown,yama,apparmor,bpf
as kernel parameters has helped for them.
i tried that with no success.