Deploy your IBM Cloud Paks on specific nodes in your cluster

The Kubernetes pod node selector

  • This mechanism is very simple, but it requires you to control the spec of the pods, which makes it unsuitable, in general, to control where Cloud Paks get installed.
  • This mechanism is rigid — and it is getting replaced by the node affinity options (which we’ll discuss in a moment). Node affinity specifications offer a more expressive and flexible syntax.

The default cluster-wide node selector

The project-wide node selector

Using Node Affinity

Taints and Tolerations

Walking through a concrete example:
Cloud Pak for Business Automation and Cloud Pak for Integration

  • We use the requiredDuringSchedulingIgnoredDuringExecution affinity keyword, which enables the “hard” enforcement of the affinity rule. You could use preferredDuringSchedulingIgnoredDuringExecution as well, if you don’t want the enforcement to be mandatory.
  • We use the operator Exists, which indicates that any node with that label, irrespectively of its value, will be eligible. Other operators include In, NotIn, DoesNotExist, Lt, Gt.
  • In addition, the pod will be added the node selector automatically, by virtue of the project-wide node selector. Therefore, this Queue Manager can only run on a node that has both the use=cloud-paks label, and the mq label.

--

--

--

I am a Software Engineer at the IBM Cloud Paks Bringup Lab. I help customers make the most of IBM software on Hybrid Cloud. I like climbing mountains, too.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Magento 2.4: All About New Release Notes And Highlights

Magento 2.4: All About New Release And Highlights

Bakery’s Second IDO Project — BLINk

Spring Boot 003: Spring Boot Admin and GreenMail

Invading The Invaders

What Is the Difference Between Reference, Object, Instance, and Class?

Discord Community Hack Week Category Winners!

Dependency Injection

Find a Cocktail — CLI Project

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michele Chilanti

Michele Chilanti

I am a Software Engineer at the IBM Cloud Paks Bringup Lab. I help customers make the most of IBM software on Hybrid Cloud. I like climbing mountains, too.

More from Medium

Monitoring Server for Developers: ELK, Prometheus, Grafana, AlertManager.

Reviewing Grafana Loki for Log aggregation

Development Kubernetes cluster under 3 minutes

How to install prometheus and configure it with grafana in ubuntu