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

kubedge testing #13

Open
chicco785 opened this issue Sep 23, 2022 · 1 comment
Open

kubedge testing #13

chicco785 opened this issue Sep 23, 2022 · 1 comment
Assignees

Comments

@chicco785
Copy link
Contributor

  • deploy microk8s and register pi as kubedge node
  • deploy docker container from the scenario on pi using kubedge
  • deploy docke mqtt broker on microk8s node
@Solargi
Copy link
Contributor

Solargi commented Sep 29, 2022

MicroK8s on Laptop, steps:

  • sudo snap install microk8s --classic
  • sudo usermod -a -G microk8s $USER
  • sudo chown -f -R $USER ~/.kube
  • su - $USER
  • microk8s status --wait-ready

Kubeedge:
Setup cloud side (laptop masternode):

  • docker run --rm kubeedge/installation-package:v1.10.0 cat /usr/local/bin/keadm > /usr/local/bin/keadm && chmod +x /usr/local/bin/keadm
  • keadm init --advertise-address="My-laptop-ip"
  • keadm gettoken

Setup edgeNode (Pi running Ubuntu Server 22.04.1 LTS 64-bit arm64):

  • docker run --rm kubeedge/installation-package:v1.10.0 cat /usr/local/bin/keadm > /usr/local/bin/keadm && chmod +x /usr/local/bin/keadm
  • keadm join --cloudcore-ipport=my-laptop-ip:10000 --token=my-cloud-side-token

the output of the last command is the following:
KubeEdge edgecore is running, For logs visit: journalctl -u edgecore.service -xe

but the node didn't join the the cluster as the worker node doesn't show up when running microk8s kubectl get nodes on the laptop

running journalctl -u edgecore.service -xe on the pi reveals the following:

Sep 29 11:39:47 pim edgecore[34795]: I0929 11:39:47.701932 34795 server.go:76] Version: v1.11.1
Sep 29 11:39:47 pim edgecore[34795]: I0929 11:39:47.727867 34795 server.go:103] Use node IP address from config: 192.168.1.115
Sep 29 11:39:47 pim edgecore[34795]: I0929 11:39:47.736222 34795 sql.go:21] Begin to register twin db model
Sep 29 11:39:47 pim edgecore[34795]: I0929 11:39:47.753479 34795 module.go:52] Module twin registered successfully
Sep 29 11:39:47 pim edgecore[34795]: I0929 11:39:47.980657 34795 client.go:78] "Connecting to docker on the dockerEndpoint" endpoint="unix:///var/run/docker.sock"
Sep 29 11:39:47 pim edgecore[34795]: I0929 11:39:47.989949 34795 client.go:97] "Start docker client with request timeout" timeout="0s"
Sep 29 11:39:48 pim edgecore[34795]: I0929 11:39:48.607399 34795 docker_service.go:242] "Hairpin mode is set" hairpinMode=hairpin-veth
Sep 29 11:39:48 pim edgecore[34795]: I0929 11:39:48.616613 34795 cni.go:239] "Unable to update cni config" err="no networks found in /etc/cni/net.d"
Sep 29 11:39:48 pim edgecore[34795]: I0929 11:39:48.693456 34795 hostport_manager.go:72] "The binary conntrack is not installed, this can cause failures in network connection cleanup."
Sep 29 11:39:48 pim edgecore[34795]: I0929 11:39:48.693708 34795 hostport_manager.go:72] "The binary conntrack is not installed, this can cause failures in network connection cleanup."
Sep 29 11:39:48 pim edgecore[34795]: I0929 11:39:48.771215 34795 docker_service.go:257] "Docker cri networking managed by the network plugin" networkPluginName="kubernetes.io/no-op"
Sep 29 11:39:48 pim edgecore[34795]: I0929 11:39:48.892760 34795 docker_service.go:263] "Docker Info" dockerInfo=&{ID:SGBF:Q2AK:TQEA:DZ6G:M5S7:LEVV:553O:KKRJ:W45Z:3TY4:GI6Q:4LQ3 Containers:0 ContainersRunning:0 Cont>
Sep 29 11:39:48 pim edgecore[34795]: E0929 11:39:48.893016 34795 edged.go:279] init new edged error, misconfiguration: kubelet cgroup driver: "cgroupfs" is different from docker cgroup driver: "systemd"
Sep 29 11:39:48 pim systemd[1]: edgecore.service: Main process exited, code=exited, status=1/FAILURE

░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit edgecore.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 29 08:43:10 pi systemd[1]: edgecore.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit edgecore.service has entered the 'failed' state with result 'exit-c>

an other problem is that kubeadm should have created this folder: /etc/kubernetes/pki/ but it doesn't exist

@Solargi Solargi self-assigned this Sep 29, 2022
@chicco785 chicco785 modified the milestones: 0.5, 0.8 Nov 10, 2022
@chicco785 chicco785 modified the milestones: 0.8, 0.9 Nov 18, 2022
@chicco785 chicco785 modified the milestones: 0.9, 1.1 Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants