设置密码命令:redis-server --requirepass 123456
环境变量也可以设置成空密码访问:ALLOW_EMPTY_PASSWORD=yes
命令:sudo kubectl apply -f node.yaml -n daprdemo 查看部署状态:sudo kubectl rollout status deploy/nodeapp -n daprdemo
kubectl port-forward service/nodeapp 30018:3000
sudo kubectl apply -f redis-state.yaml -n daprdemo
kubectl apply -f python.yaml -n daprdemo kubectl rollout status deploy/pythonapp -n daprdemo
kubectl logs --selector=app=node -c node --tail=-1 -n daprdemo
kubectl delete -f . -n daprdemo