Skip to content

Commit

Permalink
Use amtool in the alertmanager pod instead of silencing job
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed Apr 9, 2024
1 parent 30db6c6 commit c924e39
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/modules/ROOT/pages/how-tos/network/migrate-to-cilium.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@

IMPORTANT: Make sure that your `$KUBECONFIG` points to the cluster you want to migrate before starting.

:duration: +120 minutes
include::partial$create-alertmanager-silence-all-projectsyn.adoc[]
. Silence all Project Syn alerts
+
[source,bash]
----
silence_id=$(
kubectl --as=cluster-admin -n openshift-monitoring exec \
sts/alertmanager-main -- amtool --alertmanager.url=http://localhost:9093 \
silence add alertname!=Watchdog --duration="3h" -c "cilium migration"
)
echo $silence_id
----

. Select cluster
+
Expand Down Expand Up @@ -268,4 +277,10 @@ include::partial$enable-argocd-autosync.adoc[]

== Cleanup alert silence

include::partial$remove-alertmanager-silence-all-projectsyn.adoc[]
. Expire the silence
+
[source,bash]
----
kubectl --as=cluster-admin -n openshift-monitoring exec sts/alertmanager-main --\
amtool --alertmanager.url=http://localhost:9093 silence expire $silence_id
----

0 comments on commit c924e39

Please sign in to comment.