<p>Trying to make the app in kubernetes with walkthrough of
Docker and Kubernetes - Full Course for Beginners
<a href="https://www.youtube.com/watch?v=Wf2eSG3owoA&amp;t=14992s&amp;ab_channel=freeCodeCamp.org" rel="nofollow noreferrer">https://www.youtube.com/watch?v=Wf2eSG3owoA&amp;t=14992s&amp;ab_channel=freeCodeCamp.org</a></p>
<p>After the comands:</p>
<pre><code>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 &quot;admin:pass&quot;, it is recommended you change this in your config.js!
</code></pre>
<p><a href="https://i.stack.imgur.com/KhcMi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KhcMi.png" alt="enter image description here" /></a>
list of yamls:</p>
<p><a href="https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo-configmap.yaml" rel="nofollow noreferrer">https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo-configmap.yaml</a></p>
<p><a href="https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo-express.yaml" rel="nofollow noreferrer">https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo-express.yaml</a></p>
<p><a href="https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo-secret.yaml" rel="nofollow noreferrer">https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo-secret.yaml</a></p>
<p><a href="https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo.yaml" rel="nofollow noreferrer">https://gitlab.com/nanuchi/youtube-tutorial-series/-/blob/master/demo-kubernetes-components/mongo.yaml</a></p>
<p>What I missed to apear this warning message?</p>

Wendel Fabiano R. da Silva
<p>This warning message is not related to k8s. This is related to change in js driver for mongodb server discovery. In your code where you instantiate mongodb client you should specify the flag suggested in the warning message:</p>
<p><code>const driver = MongoClient(&lt;connection string&gt;, { useUnifiedTopology: true })</code></p>
<p>The warning should go away then.</p>
