Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller and Enforcer pods fail to start in WSL2 Windows environment #279

Open
emucker opened this issue Jun 19, 2023 · 3 comments
Open

Comments

@emucker
Copy link

emucker commented Jun 19, 2023

I have stood up a minikube cluster on Windows 11 host with WSL2 using the following command:
minikube start --profile='test-cluster' --ports=80,443 --container-runtime=containerd

See node details from kubectl get nodes -o wide

NAME           STATUS   ROLES           AGE   VERSION   INTERNAL-IP    EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION                      CONTAINER-RUNTIME
test-cluster   Ready    control-plane   78s   v1.26.3   192.168.49.2   <none>        Ubuntu 20.04.5 LTS   5.15.90.1-microsoft-standard-WSL2   containerd://1.6.20

After the cluster is available, I attempted to install NeuVector 5.1.3 via Helm with the command:

helm upgrade --install neuvector neuvector/core --version 2.4.5 --set tag=5.1.3 --set registry=docker.io --create-namespace --namespace neuvector --set containerd.enabled=true

Both the controller and enforcer pods never come up and stay in CrashLoopBackOff state. See attached logs.
controller-logs.txt
enforcer-logs.txt

I've tried various configurations using Minikube and K3s as well as downgrading both K8s and NeuVector versions. Google has not provided any value added recommendations and/or solutions at this time. All examples merely state to update container runtime and the default configuration should work. I've reviewed both open and closed GitHub issues with no luck. Please let me know if there is any additional information I can provide to help resolve what is probably a small detail. I do not have access to AWS, GCP, or Azure cluster at this time to try cloud based installations.

Adding a getting started with Minikube or K3s tutorial to the docs (or YouTube video) would be super helpful to budding DevOps engineers as well. Thank you for your time.

@emucker
Copy link
Author

emucker commented Jun 19, 2023

Attached are logs for the same scenario, except with docker CRI for cluster and NeuVector configuration. Same results.

minikube start --profile='test-cluster' --ports=80,443
helm upgrade --install neuvector neuvector/core --version 2.4.5 --set tag=5.1.3 --set registry=docker.io --create-namespace --namespace neuvector

enforcer-logs-docker.txt
controller-logs-docker.txt

@emucker emucker changed the title Controller and Enforcer pods fail to start in Minikube cluster with containerd runtime Controller and Enforcer pods fail to start in WSL2 Windows environment Jun 21, 2023
@becitsthere
Copy link
Contributor

In order to run controller and enforcer in the windows environment, source code level migration are needed.

@emucker
Copy link
Author

emucker commented Jul 11, 2023

Workaround: Tested different configurations using Virtual Box and Hyper-V. NeuVector can be deployed on Windows environment using:

  • Windows 10: Hyper-V Ubuntu 22 LTS virtual machine
  • Windows 11: Virtual Box Ubuntu 22 LTS virtual machine; Hyper-V support is unstable for Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants