microk8s.kubectl create namespace lk
创建命名空间

拉镜像
microk8s.ctr   image pull repository.anxinyun.cn/device/wytg:latest
指定版本
microk8s.ctr   image pull  repository.anxinyun.cn/device/wytg:32.21-09-06

或者直接运行
microk8s.kubectl run mywytg --image=repository.anxinyun.cn/device/wytg --port=6666
指定版本
microk8s.kubectl run mywytg --image=repository.anxinyun.cn/device/wytg:32.21-09-06 --port=6666

关联容器端口 6666 映射到 56666
microk8s.kubectl port-forward  --address 0.0.0.0  pods/mywytg 56666:6666

去dashboard上瞅瞅  搞起来了
发送数据测试
{"message":"device_sync_person","data":{"personId":"100001","personCode":"100001","name":"张三","type":1,"idNum":"420381200010013857","icNum":"157342643","passNum":10,"passPeriod":"08:00~09:30,11:30~14:00,17:00~19:00","passMonday":true,"passTuesday":true,"passWednesday":true,"passThursday":true,"passFriday":true,"passSaturday":false,"passSunday":false,"startTime":"2019-01-01 00:00:00","expireTime":"2020-01-01 00:00:00","faces":[{"faceId":"3000004","image":"0aB1D98bsdDSBDDS23sdfisfs"}]}}

{"message":"snapshot_face","data":{"personId":"5907 d9b6bede435faf0828177e5bce07","faceId":"cf78bfabb138474c8b2b3a0077c9bec1","fullname":"韩梅梅","type":1,"idNum":"430726199801042312","icNum":"123475 ","snapPic":" /9j/2 wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQy","score":92,"result":1,"snaptime":"2019 - 08 - 02 15:42:48"}}

再看39上数据库  数据成功插入