Log into Portainer and connect to the Kubernetes endpoint where Portainer is installed. From the menu select Applications then select Advanced Deployment. Select the portainer namespace then select Web Editor:
Paste the contents of the YAML file then click Deploy. Portainer will process the manifest and should return you to the login page once the upgrade is complete.
Option 2: Via the command line
If you prefer to use the command line to upgrade, you can do so using kubectl commands:
Log into the control node of your Kubernetes cluster and run the following command: