Difference between revisions of "GWS/Current/GWSPEGuide/Upgrade"
(Published) |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{ArticlePEServiceUpgrade |
+ | |ServiceId=11ff3d39-ae2b-4526-b7e5-7dcdf781ef01 | ||
+ | |AddIncluded=Yes | ||
+ | |IncludedServiceUpgradeStrategy={{IncludedServiceUpgradeStrategy | ||
+ | |IncludedServiceId=c2867b76-3cf4-4d72-b8f2-cabf1986f5db | ||
+ | |IncludedServiceUpgradeStrategy=40f069a2-01ae-4027-9aef-13f54bc53613 | ||
+ | }}{{IncludedServiceUpgradeStrategy | ||
+ | |IncludedServiceId=1dd952ea-ff42-44ac-9046-ca5786df98c8 | ||
+ | |IncludedServiceUpgradeStrategy=40f069a2-01ae-4027-9aef-13f54bc53613 | ||
+ | }} | ||
+ | |RollUpdUpgradeExt='''GWS example:''' | ||
+ | |||
+ | <code>helm upgrade -f values.yaml -f versions.yaml gws-services ./gws-services</code> | ||
+ | |||
+ | '''GWS Ingress example:''' | ||
+ | |||
+ | <code>helm upgrade -f values.yaml -f versions.yaml gws-ingress ./gws-ingress</code> | ||
+ | |RollUpdRollbackExt='''GWS Services examples''' | ||
+ | |||
+ | An example using <code>helm rollback</code>: | ||
+ | helm rollback gws-services | ||
+ | An example using <code>helm upgrade</code>: | ||
+ | helm upgrade -f previous-values.yaml -f previous-versions.yaml gws-services ./gws-services | ||
+ | '''GWS Ingress examples''' | ||
+ | |||
+ | An example using <code>helm rollback</code>: | ||
+ | helm rollback gws-ingress | ||
+ | An example using <code>helm upgrade</code>: | ||
+ | helm upgrade -f previous-values.yaml -f previous-versions.yaml gws-ingress ./gws-ingress | ||
+ | |UninstallExt='''GWS example''' | ||
+ | |||
+ | <code>helm uninstall gws-services</code> | ||
+ | |||
+ | '''GWS Ingress example''' | ||
+ | |||
+ | <code>helm uninstall gws-ingress</code> | ||
|Standalone=No | |Standalone=No | ||
− | |DisplayName=Upgrade, rollback, or uninstall GWS | + | |DisplayName=Upgrade, rollback, or uninstall GWS Services |
− | |Context=Learn how to upgrade, rollback or uninstall | + | |Context=Learn how to upgrade, rollback or uninstall GWS Services. |
|ComingSoon=No | |ComingSoon=No | ||
|Section={{Section | |Section={{Section | ||
− | |sectionHeading=Upgrade GWS | + | |sectionHeading=Upgrade GWS services |
|anchor=upgrade | |anchor=upgrade | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext= | + | |structuredtext=GWS services supports a {{Link-AnywhereElse|product=PrivateEdition|version=Current|manual=PEGuide|topic=UpgradStrats|anchor=RollUp|display text=Rolling Update strategy}} to upgrade its services. To get started, {{Link-SomewhereInThisVersion|manual=GWSPEGuide|topic=Configure|anchor=override|display text=Override the Helm chart values}} and {{Link-SomewhereInThisVersion|manual=GWSPEGuide|topic=Configure|anchor=versions|display text=Update the versions file}}. |
Next, run the following command to upgrade:<syntaxhighlight> | Next, run the following command to upgrade:<syntaxhighlight> | ||
Line 15: | Line 50: | ||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
− | |sectionHeading=Rollback GWS | + | |sectionHeading=Rollback GWS services |
|anchor=rollback | |anchor=rollback | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext=To rollback GWS, you can either use the <code>helm rollback</code> command or the <code>helm upgrade</code> command and specify the previous versions and values. | + | |structuredtext=To rollback GWS services, you can either use the <code>helm rollback</code> command or the <code>helm upgrade</code> command and specify the previous versions and values. |
An example using <code>helm rollback</code>:<syntaxhighlight> | An example using <code>helm rollback</code>:<syntaxhighlight> | ||
Line 27: | Line 62: | ||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
− | |sectionHeading=Uninstall GWS | + | |sectionHeading=Uninstall GWS services |
|anchor=uninstall | |anchor=uninstall | ||
|alignment=Vertical | |alignment=Vertical |
Latest revision as of 13:01, February 28, 2023
Contents
Learn how to upgrade, roll back, or uninstall GWS.
Supported upgrade strategies
Genesys Web Services and Applications supports the following upgrade strategies:
Service | Upgrade Strategy | Notes |
---|---|---|
The upgrade or rollback process to follow depends on how you deployed the service initially. Based on the deployment strategy adopted during initial deployment, refer to the corresponding upgrade or rollback section on this page for related instructions.
For a conceptual overview of the upgrade strategies, refer to Upgrade strategies in the Setting up Genesys Multicloud CX Private Edition guide.
Timing
A regular upgrade schedule is necessary to fit within the Genesys policy of supporting N-2 releases, but a particular release might warrant an earlier upgrade (for example, because of a critical security fix).
If the service you are upgrading requires a later version of any third-party services, upgrade the third-party service(s) before you upgrade the private edition service. For the latest supported versions of third-party services, see the Software requirements page in the suite-level guide.
Scheduling considerations
Genesys recommends that you upgrade the services methodically and sequentially: Complete the upgrade for one service and verify that it upgraded successfully before proceeding to upgrade the next service. If necessary, roll back the upgrade and verify successful rollback.
Monitoring
Monitor the upgrade process using standard Kubernetes and Helm metrics, as well as service-specific metrics that can identify failure or successful completion of the upgrade (see Observability in Genesys Web Services and Applications).
Genesys recommends that you create custom alerts for key indicators of failure — for example, an alert that a pod is in pending state for longer than a timeout suitable for your environment. Consider including an alert for the absence of metrics, which is a situation that can occur if the Docker image is not available. Note that Genesys does not provide support for custom alerts that you create in your environment.
Preparatory steps
Ensure that your processes have been set up to enable easy rollback in case an upgrade leads to compatibility or other issues.
Each time you upgrade a service:
- Review the release note to identify changes.
- Ensure that the new package is available for you to deploy in your environment.
- Ensure that your existing <override>-values.yaml file is available and update it if required to implement changes.
Rolling Update
Rolling Update: Upgrade
Execute the following command to upgrade <service>:
helm upgrade --install <service> -f <override>-values.yaml <Helm package> -n <namespace>
Tip: If your review of Helm chart changes (see Preparatory Step 3) identifies that the only update you need to make to your existing <override>-values.yaml file is to update the image version, you can pass the image tag as an argument by using the --set flag in the command:
helm upgrade --install <service> -f <override>-values.yaml <Helm package> --set <service>.image.tag=<new service version>
GWS example:
helm upgrade -f values.yaml -f versions.yaml gws-services ./gws-services
GWS Ingress example:
helm upgrade -f values.yaml -f versions.yaml gws-ingress ./gws-ingress
Rolling Update: Verify the upgrade
Follow usual Kubernetes best practices to verify that the new service version is deployed. See the information about initial deployment for additional functional validation that the service has upgraded successfully.
Rolling Update: Rollback
Execute the following command to roll back the upgrade to the previous version:
helm rollback <service>
or, to roll back to an even earlier version:
helm rollback <service> <revision version>
Alternatively, you can re-install the previous package:
- Revert the image version in the <service>.image.tag parameter in the <override>-values.yaml file. If applicable, also revert any configuration changes you implemented for the new release.
- Execute the following command to roll back the upgrade:
helm upgrade --install <service> -f <override>-values.yaml <old Helm package>
- Tip: You can also directly pass the image tag as an argument by using the --set flag in the command:
helm upgrade --install <service> -f <override>-values.yaml <old Helm package> --set <service>.image.tag=<old service version>
GWS Services examples
An example using helm rollback
:
helm rollback gws-services
An example using helm upgrade
:
helm upgrade -f previous-values.yaml -f previous-versions.yaml gws-services ./gws-services
GWS Ingress examples
An example using helm rollback
:
helm rollback gws-ingress
An example using helm upgrade
:
helm upgrade -f previous-values.yaml -f previous-versions.yaml gws-ingress ./gws-ingress
Rolling Update: Verify the rollback
Verify the rollback in the same way that you verified the upgrade (see Rolling Update: Verify the upgrade).
Uninstall
Execute the following command to uninstall <service>:
helm uninstall <service> -n <namespace>
GWS example
helm uninstall gws-services
GWS Ingress example
helm uninstall gws-ingress