# OpenShift / k8s cluster upgrade: Dynatrace Operator detecting cordoned nodes and automatic Maintenance Windows ?

**URL:** <https://community.dynatrace.com/t/openshift-k8s-cluster-upgrade-dynatrace-operator-detecting-cordoned-nodes-and-automatic-maintenance-windows/56316>\
**Category:** Container platforms\
**Tags:** openshift, dynatrace-operator, maintenance-window, kubernetes\
**Created:** [June 29, 2026, 1:10pm UTC](https://community.dynatrace.com/t/openshift-k8s-cluster-upgrade-dynatrace-operator-detecting-cordoned-nodes-and-automatic-maintenance-windows/56316 "2026-06-29T13:10:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 29, 2026, 1:10pm UTC](https://community.dynatrace.com/t/openshift-k8s-cluster-upgrade-dynatrace-operator-detecting-cordoned-nodes-and-automatic-maintenance-windows/56316/1 "2026-06-29T13:10:18Z")

</div>

Hello all.

We use Dynatrace Managed + Dynatrace OpenShift operator cloud-native full-stack.

When we upgrade / update an OpenShift / K8S cluster, OpenShift nodes (==VM) goes into _cordoned_ state. OpenShift sets up automatically a kind of OpenShift maintenance mode ( =~ alerts silenced) on each node, in turn.

Is there anything in Dynatrace OpenShift operator, which detects this "_cordoned_&nbsp;" state and subsequently handles Dynatrace Maintenance Window ? I feel there should be. How do people do to set up these maintenance ?

Regards.

Gilles

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 29, 2026, 5:23pm UTC](https://community.dynatrace.com/t/openshift-k8s-cluster-upgrade-dynatrace-operator-detecting-cordoned-nodes-and-automatic-maintenance-windows/56316/2 "2026-06-29T17:23:23Z")

</div>

Hi.

I did not find doc nor forums entries on that. Not much fortune with Google either. So here is my take on this.

**AutoTag** ocpmaintenance :&nbsp;Set (and unset) automatically on Kubernetes **Nodes** « marqued » **Cordoned** , and related hosts and daemonset workloads

```markup
o Entities matching type(KUBERNETES_NODE),kubernetesNodeCordoned(true)
o Entities matching type(HOST),toRelationships.isNodeOfHost(type("KUBERNETES_NODE"),kubernetesNodeCordoned(true))
o Entities matching type(CLOUD_APPLICATION),cloudApplicationDeploymentTypes(KUBERNETES_DAEMON_SET),toRelationships.isInstanceOf(type(CLOUD_APPLICATION_INSTANCE),fromRelationships.runsOn(type("KUBERNETES_NODE"),kubernetesNodeCordoned(true)))

```

**+ Maintenance Window** including « ocpmaintenance » tagged entities

```markup
o Filter by Host, tagged ocpmaintenance
o Filter by Kubernetes node, tagged ocpmaintenance
o Filter by Kubernetes workload, tagged ocpmaintenance

```

Any one would have a feed-back or prior experience ? Any comments ?

Regards.

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 30, 2026, 10:33am UTC](https://community.dynatrace.com/t/openshift-k8s-cluster-upgrade-dynatrace-operator-detecting-cordoned-nodes-and-automatic-maintenance-windows/56316/3 "2026-06-30T10:33:42Z")

</div>

I also see this&nbsp;MARKED\_FOR\_TERMINATION&nbsp;thingy

- How to monitor Host Availability when Azure AVD Hosts Auto Shutdown and UP due to Autoscale set?  
[https://community.dynatrace.com/t5/Alerting/How-to-monitor-Host-Availability-when-Azure-AVD-Hosts-Auto/m-p/255294/highlight/true#M4831](https://community.dynatrace.com/post/255294)
- [Info events — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/event-types-info#marked-for-termination)

Shouldn’t this be integrated in the Dynatrace OpenShift operator ? It is !

When an OpenShift node goes unschedulable

- Dynatrace OpenShift **operator** send a MARKED\_FOR\_TERMINATION event to Dynatrace OpnShift nodes (=HOST)

```markup
2026-06-29 17:39 Kubernetes node cordoned. Node might be drained or terminated.
Entity ​my_ocp_host_worker_123456 (10.x.x.x, 10.x.x.x, 10.x.x.x)
Time​ yesterday, 17:39
Type ​Marked for termination
dt.event.allow_frequent_issue_detection​ false
dt.event.description​ Kubernetes node cordoned. Node might be drained or terminated.
dt.event.group_label​ Marked for termination
dt.event.impact_level​ Infrastructure
dt.event.source​Dynatrace Operator
dt.event.timeout​ 15​

```

- which will prevent Dynatrace from raising a problem when this entity becomes unavailable for the next 60 minutes
- **gotcha** : if host shutdown detection is enabled, it will trigger an alert even when this mechanism is activated
- **gotcha** : related entities like daemonset workload are **not** “protected” by this mechanisme&nbsp; : so one would have to invent some Maintenance Windows including these related objects

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 30, 2026, 12:28pm UTC](https://community.dynatrace.com/t/openshift-k8s-cluster-upgrade-dynatrace-operator-detecting-cordoned-nodes-and-automatic-maintenance-windows/56316/4 "2026-06-30T12:28:01Z")

</div>

See [RFE: OpenShift (Kubernetes k8s) cluster upgrade automatic Maintenance Windows](https://community.dynatrace.com/post/301389#M58105).
