<commit_before>// Module included in the following assemblies:
//
// assembly-upgrading.adoc

[id='post-upgrade-step-router-pod-{context}']
= Restarting router pods running a previous version of the image

When upgrading, sometimes a router pod is not automatically restarted by {KubePlatform}. If this issue occurs, it is important to manually restart the affected pod to ensure correct operation of the system.

.Prerequisites

* Completed the upgrading steps to a new release of {ProductName}. For more information on how to upgrade, see:
** link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#downloading-messaging[Upgrading {ProductName} using a YAML bundle]
** link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#downloading-messaging[Upgrading {ProductName} using Ansible]

.Procedure

. Find the router pod running the previous version of the image:
+
[subs="+quotes,attributes",options="nowrap"]
----
oc get pod -o go-template='{{range .items}}{{.metadata.name}}{{"\n"}}{{range .spec.containers}}{{"\t"}}{{.image}}{{"\n"}}{{end}}{{"\n"}}{{end}}' --selector=capability=router
----

. Delete the router pod that is running the previous version of the image:
+<commit_msg>Docs: fix prereq links in restarting a router pod procedure (#2903)<commit_after>// Module included in the following assemblies:
//
// assembly-upgrading.adoc

[id='post-upgrade-step-router-pod-{context}']
= Restarting router pods running a previous version of the image

When upgrading, sometimes a router pod is not automatically restarted by {KubePlatform}. If this issue occurs, it is important to manually restart the affected pod to ensure correct operation of the system.

.Prerequisites

* Completed the upgrading steps to a new release of {ProductName}. For more information on how to upgrade, see:
** link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#upgrading-enmasse-using-bundle-messaging[Upgrading {ProductName} using a YAML bundle]
** link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#upgrading-enmasse-using-ansible-messaging[Upgrading {ProductName} using Ansible]

.Procedure

. Find the router pod running a previous version of the image:
+
[subs="+quotes,attributes",options="nowrap"]
----
oc get pod -o go-template='{{range .items}}{{.metadata.name}}{{"\n"}}{{range .spec.containers}}{{"\t"}}{{.image}}{{"\n"}}{{end}}{{"\n"}}{{end}}' --selector=capability=router
----

. Delete the router pod that is running a previous version of the image:
+
{'fraction_non_alphanumeric': 0.1357873210633947, 'fraction_numerical': 0.0016359918200408998, 'mean_word_length': 5.6287262872628725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5895945', 'n_tokens_mistral': 733, 'n_tokens_neox': 693, 'n_words': 238}