Skip to content

Commit 4e35ec4

Browse files
Kevin Quinnkquinn1204
Kevin Quinn
authored andcommitted
OCPBUGS-27961 Procedure for configuring Whereabouts IP reconciler schedule
making edits to reflect my cluster test
1 parent f621dbb commit 4e35ec4

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

modules/nw-multus-ipam-object.adoc

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,72 @@ pod/whereabouts-reconciler-p4sxw 1/1 Running 0 6s
310310
pod/whereabouts-reconciler-rvfdv 1/1 Running 0 6s
311311
pod/whereabouts-reconciler-svzw9 1/1 Running 0 6s
312312
daemonset.apps/whereabouts-reconciler 6 6 6 6 6 kubernetes.io/os=linux 6s
313+
----
314+
315+
[id="nw-multus-configuring-whereabouts-ip-reconciler-schedule_{context}"]
316+
== Configuring the Whereabouts IP reconciler schedule
317+
318+
The Whereabouts IPAM CNI plugin runs the IP reconciler daily in order to clean up any stranded IP allocations that may result in exhausting IPs and hence prevent new Pods from getting an IP allocated to them.
319+
320+
The following procedure shows how to change the frequency at which the IP reconciler runs.
321+
322+
.Prerequisites
323+
* You installed the OpenShift CLI (`oc`).
324+
* You have access to the cluster as a user with the `cluster-admin` role.
325+
326+
.Procedure
327+
328+
. Run the following command to create a `ConfigMap` named `whereabouts-config` in the `openshift-multus` namespace with a specific cron expression for the IP reconciler:
329+
+
330+
[source,terminal]
331+
----
332+
$ oc create configmap whereabouts-config -n openshift-multus --from-literal=reconciler_cron_expression="*/15 * * * *"
333+
----
334+
+
335+
This cron expression indicates the IP reconciler should run every 15 minutes. Adjust the expression based on your specific requirements.
336+
337+
. Retrieve information about resources related to the `whereabouts-reconciler` within the `openshift-multus` namespace by running the following command:
338+
+
339+
[source,terminal]
340+
----
341+
$ oc get all -n openshift-multus | grep whereabouts-reconciler
342+
----
343+
+
344+
.Example output
345+
+
346+
[source,terminal]
347+
----
348+
pod/whereabouts-reconciler-2p7hw 1/1 Running 0 4m14s
349+
pod/whereabouts-reconciler-76jk7 1/1 Running 0 4m14s
350+
pod/whereabouts-reconciler-94zw6 1/1 Running 0 4m14s
351+
pod/whereabouts-reconciler-mfh68 1/1 Running 0 4m14s
352+
pod/whereabouts-reconciler-pgshz 1/1 Running 0 4m14s
353+
pod/whereabouts-reconciler-xn5xz 1/1 Running 0 4m14s
354+
daemonset.apps/whereabouts-reconciler 6 6 6 6 6 kubernetes.io/os=linux 4m16s
355+
----
356+
357+
. Run the following command to verify that the `whereabouts-reconciler` runs the IP reconciler with the configured interval:
358+
+
359+
[source,terminal]
360+
----
361+
$ oc -n openshift-multus logs whereabouts-reconciler-2p7hw
362+
----
363+
+
364+
.Example output
365+
366+
[source,terminal]
367+
----
368+
2024-02-02T16:33:54Z [debug] event not relevant: "/cron-schedule/..2024_02_02_16_33_54.1375928161": CREATE
369+
2024-02-02T16:33:54Z [debug] event not relevant: "/cron-schedule/..2024_02_02_16_33_54.1375928161": CHMOD
370+
2024-02-02T16:33:54Z [debug] event not relevant: "/cron-schedule/..data_tmp": RENAME
371+
2024-02-02T16:33:54Z [verbose] using expression: */15 * * * *
372+
2024-02-02T16:33:54Z [verbose] configuration updated to file "/cron-schedule/..data". New cron expression: */15 * * * *
373+
2024-02-02T16:33:54Z [verbose] successfully updated CRON configuration id "00c2d1c9-631d-403f-bb86-73ad104a6817" - new cron expression: */15 * * * *
374+
2024-02-02T16:33:54Z [debug] event not relevant: "/cron-schedule/config": CREATE
375+
2024-02-02T16:33:54Z [debug] event not relevant: "/cron-schedule/..2024_02_02_16_26_17.3874177937": REMOVE
376+
2024-02-02T16:45:00Z [verbose] starting reconciler run
377+
2024-02-02T16:45:00Z [debug] NewReconcileLooper - inferred connection data
378+
2024-02-02T16:45:00Z [debug] listing IP pools
379+
2024-02-02T16:45:00Z [debug] no IP addresses to cleanup
380+
2024-02-02T16:45:00Z [verbose] reconciler success
313381
----

0 commit comments

Comments
 (0)