【发布时间】:2022-01-04 21:13:40
【问题描述】:
尝试通过演练在 kubernetes 中制作应用程序 Docker 和 Kubernetes - 初学者完整课程 https://www.youtube.com/watch?v=Wf2eSG3owoA&t=14992s&ab_channel=freeCodeCamp.org
在命令之后:
wendel@wendel-VirtualBox:~/Docker-Kub-MongoDB$ kubectl apply -f mongo-configmap.yaml
configmap/mongodb-configmap created
wendel@wendel-VirtualBox:~/Docker-Kub-MongoDB$ kubectl apply -f mongo-express.yaml
deployment.apps/mongo-express created
wendel@wendel-VirtualBox:~/Docker-Kub-MongoDB$ kubectl logs mongo-express-78fcf796b8-t9lqj
Welcome to mongo-express
------------------------
(...)
(node:7) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated,
and will be removed in a future version.
To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true }
to the MongoClient constructor.
Mongo Express server listening at http://0.0.0.0:8081
Server is open to allow connections from anyone (0.0.0.0)
basicAuth credentials are "admin:pass", it is recommended you change this in your config.js!
我错过了什么来显示此警告消息?
【问题讨论】:
-
您想进一步了解有关您的设置的此类问题。这已经有一个 Stackoverflow 讨论。 stackoverflow.com/questions/57895175/…
标签: mongodb kubernetes nodes kubectl