// Module included in the following assemblies:
//
// assembly-upgrading-enmasse.adoc

[id='upgrading-enmasse-using-template-{context}']
= Upgrading {ProductName} using the release template

.Prerequisites

* A new release of {ProductName}. For more information, see link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#downloading-messaging[Downloading {ProductName}].

.Procedure

. Log in as a service operator:
+
[subs="attributes",options="nowrap"]
----
oc login -u system:admin
----

. Select the project where {ProductName} is installed:
+
[subs="+quotes,attributes",options="nowrap"]
----
oc project _{ProductNamespace}_
----

. Apply the new release template:
+
[subs="+quotes,attributes",options="nowrap"]
----
oc process -f install/templates/{ProductTemplateName} NAMESPACE=_{ProductNamespace}_ | oc apply -f -
----

. Monitor the pods while they are restarted:
+
[subs="attributes",options="nowrap"]
----
oc get pods -w
----
+
The upgrade should cause all pods to be restarted within a couple of minutes.

