# Mender on K8S problems

**URL:** <https://hub.mender.io/t/mender-on-k8s-problems/4746>\
**Category:** General Discussions\
**Tags:** mender-server\
**Created:** [March 11, 2022, 4:12pm UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746 "2022-03-11T16:12:20Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 3, 2024, 9:52am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/21 "2024-04-03T09:52:22Z")

</div>

OK.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/9/9268017a88409d418d7a8ee7b923980a805f3502.png)

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 3, 2024, 9:56am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/22 "2024-04-03T09:56:52Z")

</div>

mender doc v3.7 not display how to install MongoDB and NATS steps compare with v3.2.

I do not know perform following command whether is useful:

```auto
$ helm install my-release oci://registry-1.docker.io/bitnamicharts/mongodb
$ helm repo add nats https://nats-io.github.io/k8s/helm/charts/
$ helm repo update
$ helm search repo nats

```

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [April 3, 2024, 9:56am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/23 "2024-04-03T09:56:52Z")

</div>

Hi @Jiwangreal can you please verify your MongoDB connection? It looks like the service cannot reach the db.

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 3, 2024, 9:58am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/24 "2024-04-03T09:58:19Z")

</div>

Could you tell me how to test the connenction?

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [April 3, 2024, 10:00am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/25 "2024-04-03T10:00:37Z")

</div>

Hi @Jiwangreal , the MongoDB and NATS standalone charts has been removed from the docs because they have been integrated into the Mender Helm Chart: [Mender Server | Mender documentation](https://docs.mender.io/3.7/server-installation/production-installation-with-kubernetes/mender-server#installing-the-mender-helm-chart)

You can either:

1. bring your own NATS and MongoDB deployments (suggested for production usage), or:
2. generate the sample `mender-3.7.3.yml` values file that provides the NATS and MongoDB subcharts.

To test the connection you can use a temporary mongosh pod and run a connection from there with your connection string.

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 9, 2024, 8:57am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/26 "2024-04-09T08:57:13Z")

</div>

OK, Fine. I try to use docker-compose instead of k8s to install mender -server. I try to perform: ./demo up, but display following error:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/1/1da09480461d9254bcab6916a881791c342c8e7b.png)

How can i fixing the problem?

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [April 9, 2024, 8:59am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/27 "2024-04-09T08:59:57Z")

</div>

It looks like the port 443 is already used in your machine. To let the Mender demo working, you need the port not to be in use.

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 9, 2024, 9:13am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/28 "2024-04-09T09:13:20Z")

</div>

Strangely. Thers is no any process use 443 port.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/f/fd5c143a34cba7752d3b93e2a7f330f8f9ff4a09.png)

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 10, 2024, 1:49am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/29 "2024-04-10T01:49:41Z")

</div>

Solved！

I use wsl2 to use docker-compose.334 ported is occupied by a vmware program in host. I need kill the program and restart ./demo up.

Performing following command in powershell:

#### netstat -ano|findstr “443”

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/5/5fa225500b2a5675babe36b65ee449e81e7c9a14.png)

tasklist  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/6/6a46c75bdb1cd88ec7ee7f0ff85b0dff65edfedd.png)

taskkill /f /pid 2980

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 10, 2024, 4:06am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/30 "2024-04-10T04:06:15Z")

</div>

Another question, only k8s mender server installations support mender server production installation? docker-compose not supported?

k8s mender server installations holds more features than docker-compose server installations ?

---

<div class="post-metadata">

**Author:** ![robgio](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/robgio/32/1760_2.png) [@robgio](https://hub.mender.io/u/robgio)\
**Post date:** [April 10, 2024, 5:43am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/31 "2024-04-10T05:43:10Z")

</div>

The two setups have the same features, but only the k8s one is supported in production.

---

<div class="post-metadata">

**Author:** ![Jiwangreal](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jiwangreal/32/2144_2.png) [@Jiwangreal](https://hub.mender.io/u/Jiwangreal)\
**Post date:** [April 10, 2024, 6:59am UTC](https://hub.mender.io/t/mender-on-k8s-problems/4746/32 "2024-04-10T06:59:22Z")

</div>

Thanks a lot.

[Previous page](https://hub.mender.io/t/mender-on-k8s-problems/4746.md?page=1)
