架构图:
Rock3A(RK3568) 功耗测试:
模型性能测试:
rk3588盒子约1600元;i7-1165g盒子约2400元
参考链接:
在 Linux 上以 All-in-One 模式安装 KubeSphere
Rock pi 3A/3B 资料 - Rock开发板 - 深圳风火轮科技 - Powered by Discuz!
阿里云ECS最低配置: [4核(vCPU) 8 GiB) CentOS 7.9 64位: 1 40GB云盘 ]
平均一天 3元:
ECS 设置端口映射:
安装KubeSphere:
ssh root@122.199.70.203
yum update
yum install conntrack socat nfs-common -y
sudo hostnamectl set-hostname adeagle
echo "127.0.0.1 adeagle" >> /etc/hosts
setenforce 0
systemctl stop firewalld
swapoff -a
cat <<EOF | sudo tee -a /etc/sysctl.conf
vm.max_map_count = 262144
fs.may_detach_mounts = 1
net.ipv4.ip_forward = 1
vm.swappiness=1
kernel.pid_max =1000000
fs.inotify.max_user_instances=524288
EOF
sudo sysctl -p
curl -sfL https://get-kk.kubesphere.io | VERSION=v2.0.0 sh -
chmod +x kk
./kk create config --with-kubernetes v1.21.5 --with-kubesphere v3.2.1
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
其它命令:
wget https://ghproxy.com/https://github.com/kubesphere/kubekey/releases/download/v2.0.0/kubekey-v2.0.0-linux-amd64.tar.gz
tar -xf kubekey-v2.0.0-linux-amd64.tar.gz
curl -L -o kubekey/cni/v0.9.1/amd64/cni-plugins-linux-amd64-v0.9.1.tgz \
https://ghproxy.com/https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-linux-amd64-v0.9.1.tgz
curl -L -o kubekey/crictl/v1.22.0/amd64/crictl-v1.22.0-linux-amd64.tar.gz \
https://ghproxy.com/https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.22.0/crictl-v1.22.0-linux-amd64.tar.gz
curl -L -o kubekey/etcd/v3.4.13/amd64/etcd-v3.4.13-linux-amd64.tar.gz \
https://ghproxy.com/https://github.com/coreos/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz
kubectl taint nodes --all node-role.kubernetes.io/master-
登录KubeSphere:
安装 应用商店、KubeEdge、metrics_server:
等待安装结束:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
确认服务端口:
创建空间及项目:
安装Harbor:
externalURL: http://121.199.70.202:30006
Harbor登录地址: http://122.199.71.212:30006/ 默认用户名:admin 密码:Harbor12345
登录Harbor:
配置Harbor: 新建项目aiot -> 新建用户aiot 密码:Hello@12345 -> 设置项目aiot的用户为aiot
测试Harbor:
cat > /etc/docker/daemon.json << EOF
{
"registry-mirrors": ["http://121.199.70.202:30006"],
"insecure-registries":["121.199.70.202:30006"]
}
EOF
systemctl daemon-reload
systemctl restart docker
docker login