NodeSelector support on Mendix for Private Cloud - Mendix Forum

NodeSelector support on Mendix for Private Cloud

0

Dear Mendix team,

 

We set Mendix for Private Cloud Connected environment to one of our customers, and the Kubernetes cluster has two node groups. Each node group consists of different Kubernetes label as following:

 

Nodegroup A Label -> App: Workflow

Nodegroup B Label -> App: Catalogue

 

The scenario is we would like to deploy application Workflow only on Nodegroup A, so we try to use Kubernetes NodeSelector with key/value as App: Workflow with Mendix Private Cloud.

 

However, this feature does not support on Mendix for Private Cloud for now.

I hope this feature will be available soon. It will make Mendix for Private Cloud solution become more appealing for more customers.

 

[Kubernetes Nodeselector reference: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector]

asked
1 answers

I use the following solution and it works well for me:

 

References:

 

Comments:

  • Configuration in the namespace, which is not changed during Mendix application publications;
  • Includes nodeSelector attribute in pods, according to configuration in the namespace;
  • Requires access to Control-Plane;

 

1)  Enable admission plugin “PodNodeSelector” in kube-apiserver

image.png

 

 

 

2) Configure label with “zone={nome da zona}”

image.png

 

 

 

3) Configure the namespace with “node-selector” annotation:

image.png

 

 

 

4) Namespace pods come with “nodeSelector” attribute:

 

image.png

 

 

I hope this helps

 

Created