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

WSL install k8s init calico err #10410

Closed
1 of 2 tasks
xuxiaowei-com-cn opened this issue Aug 22, 2023 · 1 comment
Closed
1 of 2 tasks

WSL install k8s init calico err #10410

xuxiaowei-com-cn opened this issue Aug 22, 2023 · 1 comment
Assignees

Comments

@xuxiaowei-com-cn
Copy link

Windows Version

Microsoft Windows [版本 10.0.19045.3324]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1-microsoft-standard-WSL2

Distro Version

Ubuntu-22.04

Other Software

docker ce:24.0.5
k8s:v1.28.0
calico:3.26.1

Repro Steps

  1. repository:https://jihulab.com/xuxiaowei-com-cn/k8s.sh
  2. repository mirrors:https://github.com/xuxiaowei-com-cn/k8s.sh
  3. Steps
# repository
curl -o k8s.sh https://jihulab.com/xuxiaowei-com-cn/k8s.sh/-/raw/SNAPSHOT/0.2.0/k8s.sh
chmod +x k8s.sh
sudo ./k8s.sh kubernetes-taint
# repository mirrors
curl -o k8s.sh https://raw.githubusercontent.com/xuxiaowei-com-cn/k8s.sh/SNAPSHOT/0.2.0/k8s.sh
chmod +x k8s.sh
sudo ./k8s.sh kubernetes-taint

Expected Behavior

Running normally in WSL for k8s

Actual Behavior

Events:
  Type     Reason       Age                  From               Message
  ----     ------       ----                 ----               -------
  Normal   Scheduled    3m51s                default-scheduler  Successfully assigned kube-system/calico-node-fh87j to desktop-8e6lunv
  Warning  FailedMount  3m51s                kubelet            MountVolume.SetUp failed for volume "kube-api-access-fkhfb" : configmap "kube-root-ca.crt" not found
  Normal   Pulling      3m50s                kubelet            Pulling image "docker.io/calico/cni:v3.26.1"
  Normal   Pulled       3m25s                kubelet            Successfully pulled image "docker.io/calico/cni:v3.26.1" in 24.528s (24.528s including waiting)
  Normal   Created      3m25s                kubelet            Created container upgrade-ipam
  Normal   Started      3m25s                kubelet            Started container upgrade-ipam
  Normal   Pulled       3m22s                kubelet            Container image "docker.io/calico/cni:v3.26.1" already present on machine
  Normal   Created      3m22s                kubelet            Created container install-cni
  Normal   Started      3m22s                kubelet            Started container install-cni
  Normal   Pulling      3m17s                kubelet            Pulling image "docker.io/calico/node:v3.26.1"
  Normal   Pulled       2m59s                kubelet            Successfully pulled image "docker.io/calico/node:v3.26.1" in 18.508s (18.508s including waiting)
  Warning  Failed       2m59s                kubelet            Error: failed to generate container "80f6e43d25447ba2dd05c458d922dec984668e8b0f487536971b10facf51c613" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Warning  Failed       2m48s                kubelet            Error: failed to generate container "e2b66074e9a6c19492450d9e6a7bd6879a8f98cc1a38005f8717259bd77575b6" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Warning  Failed       2m32s                kubelet            Error: failed to generate container "41ade77db3680043f8304858b704c6822587a929427855311ba9da9ff95b8f43" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Warning  Failed       2m21s                kubelet            Error: failed to generate container "131e0a63f16c2e3479a6513d7ecc1a1ca788a720a7439ef1949c2fbbc118756f" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Warning  Failed       2m8s                 kubelet            Error: failed to generate container "6041327c9a784aa45a3a9798d8b39b395ad7628eb4e8706f92fea6cf03fff0c4" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Warning  Failed       116s                 kubelet            Error: failed to generate container "90e6126c467512a49f174f3fe645431cf95ff40bdb2b4b96e376831789a6fcb9" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Warning  Failed       101s                 kubelet            Error: failed to generate container "b8bb6a03846ec1b2dafe4ee7dba312c796fbfa0ca90ad25726ec91e2695cee6f" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
  Normal   Pulled       86s (x7 over 2m48s)  kubelet            Container image "docker.io/calico/node:v3.26.1" already present on machine
  Warning  Failed       86s                  kubelet            Error: failed to generate container "93b6bd803cfece4709cc0f06b97f5f752b584a93118d58609ccbd6d13ceb3a66" spec: failed to generate spec: path "/sys/fs/" is mounted on "/sys" but it is not a shared mount
root@DESKTOP-8E6LUNV:~#

Diagnostic Logs

No response

@OneBlue OneBlue self-assigned this Aug 22, 2023
Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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