# Not able to setup mongodb operator on "Onprem" servers

**URL:** <https://forums.percona.com/t/not-able-to-setup-mongodb-operator-on-onprem-servers/21731>\
**Category:** Percona Operator for MongoDB\
**Tags:** percona, mongodb\
**Created:** [April 28, 2023, 10:59am UTC](https://forums.percona.com/t/not-able-to-setup-mongodb-operator-on-onprem-servers/21731 "2023-04-28T10:59:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avinash\_Rai](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/avinash_rai/32/10302_2.png) [@Avinash\_Rai](https://forums.percona.com/u/Avinash_Rai)\
**Post date:** [April 28, 2023, 10:59am UTC](https://forums.percona.com/t/not-able-to-setup-mongodb-operator-on-onprem-servers/21731/1 "2023-04-28T10:59:29Z")

</div>

I am trying to setup mongodb operator on my on prem servers.  
I have created 4 nodes setuped k8s using kubeadm and connected all the nodes  
when I run `kubectl get nodes` I get 3 worker and 1 control node in ready state.  
and then I follow official docs to setup mongodb operator-:

- kubectl apply --server-side -f deploy/crd.yaml

- Create a ns and switch context to that

- kubectl apply -f deploy/rbac.yaml

- kubectl apply -f deploy/operator.yaml  
Everything working fine till here when I run` kubectl apply -f deploy/cr.yaml` and after that when I run `kubectl get pods` I see only operator pods and 3 cfg’s pods running and all the cfg’s pods are getting restarted one by one.

when I check opeartor logs I see this  
“[mongoldb-operator-error-log-for-on-prem-vm-setup · GitHub](https://gist.github.com/Avnshrai/1ad60082cf7e1064d85a9e079c0d8f64)” ← operator log

any help will be appreciated thanks

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [April 28, 2023, 11:35am UTC](https://forums.percona.com/t/not-able-to-setup-mongodb-operator-on-onprem-servers/21731/2 "2023-04-28T11:35:02Z")

</div>

hello @Avinash_Rai .

A couple of questions:

1. what are the versions - k8s and operator.
2. please share you cr.yaml
3. please show the describe of one of the cfp pods crashing: `kubectl describe pod ...`

looking at the errors you shared, it seems that you might be using old version of the Operator where `PodDisruptionBudget` APIs were set for beta.

---

<div class="post-metadata">

**Author:** ![Avinash\_Rai](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/avinash_rai/32/10302_2.png) [@Avinash\_Rai](https://forums.percona.com/u/Avinash_Rai)\
**Post date:** [April 28, 2023, 11:47am UTC](https://forums.percona.com/t/not-able-to-setup-mongodb-operator-on-onprem-servers/21731/3 "2023-04-28T11:47:00Z")

</div>

hey @Sergey_Pronin, yes I think I was using older version of operator, I tried with helm installation and it’s working fine.  
I think docs are not updated I was following “[Generic Kubernetes installation - Percona Operator for MongoDB](https://docs.percona.com/percona-operator-for-mongodb/kubernetes.html)” this docs and I was cloning “v1.14.0” branch as mentioned in the docs and it was creating that issue  
thanks for the quick response
