Skip to content

Edgenesis/example-shifu-lingo3d-smart-city

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step1: Bring up Kind:

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

Step2: Pre pull containers:

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

Step3: Build frontend and virtual devices:

make build-mock-device-image
make kind-load-mock-device

Step4: Install Shifu

make install-shifu

Step5: Deploy frontend, ingress, deviceShifu and virtual devices:

make start-mockdevice-and-devicehsifu
kubectl apply -f demo-device/conf/deploy.yaml
kubectl apply -f demo-device/conf/ingress.yaml

Step6: navigate to URL (localhost by default)

http://localhost/smartcity

Arch Graph

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
Loading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •