<-- Back

How to schedule Mendix Runtime pods to specific nodes

Introduction

This article explains how to meet Kubernetes scheduling requirements (for example, taints and tolerations, and nodeSelector) for Mendix for Private Cloud deployments when these settings cannot be configured in the MendixApp Custom Resource (CR).

Environment

  • Applications hosted in Mendix on Kubernetes (Mendix for Private Cloud)

Instructions/Procedure

Scheduling settings such as nodeSelectoraffinity, and tolerations cannot be configured through the MendixApp CR in Mendix for Private Cloud. Use one of the following approaches to enforce scheduling.

  1. Enforce scheduling at the namespace level.
    Configure the cluster so that pods created in the target namespace are scheduled onto the intended nodes.
  1. Inject scheduling settings using an admission controller.
    Configure a mutating admission controller (for example, Kyverno) scoped to the target namespace to inject the required scheduling configuration (for example, tolerationsnodeSelector, and affinity) into pods created in that namespace.

Outcome

Mendix Runtime pods are scheduled onto the intended nodes, including nodes with taints such as environment=qa:NoSchedule.

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.