Cisco publishes an Installation and Upgrade Guide which covers the process in step-by-step detail. Please reference it here.
TLDR version - upgrade secondary, make sure it registers to primary then upgrade primary
Getting Started
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: