Shifu + Lingo3D Smart City demo
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 40080
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
EOF
docker pull registry.k8s.io/ingress-nginx/controller:v1.3.1
docker pull registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.3.0
kind load docker-image registry.k8s.io/ingress-nginx/controller:v1.3.1
kind load docker-image registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.3.0
make build-mock-device-image
make kind-load-mock-device
make install-shifu
make start-mockdevice-and-devicehsifu
kubectl apply -f demo-device/conf/deploy.yaml
kubectl apply -f demo-device/conf/ingress.yaml
http://localhost/smartcity
flowchart BT
frontend[frontend application/browser]
subgraph k8s
shifu1[deviceshifu-jinmaoTower]
shifu2[deviceshifu-shanghaiTower]
shifu3[deviceshifu-orientalPearlTower]
shifu4[deviceshifu-shanghaiWorldFinancialCenter]
end
subgraph real Device
subgraph jmzx[jinmaoTower]
device1[PropleCountDevice] -.- shifu1
device2[PowerShowerDevice] -.- shifu1
BasicInfo -.- shifu1
end
shzxds[shanghaiTower]
dfmzt[orientalPearlTower]
shhqjrzx[shanghaiWorldFinancialCenter]
end
shifu1 -.- frontend
shzxds -.- shifu2 -.- frontend
dfmzt -.- shifu3 -.- frontend
shhqjrzx -.-shifu4 -.- frontend