Edit an application
From the menu select Applications, select the application you want to edit, then click Edit this application.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F2361074862-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FfeAm0jOvgCoHfPvfPXxV%252Fuploads%252FzNZxYQmXTzScazZtvBmB%252F2.15-k8s_kubernetes_applications_edit_app.gif%3Falt%3Dmedia%26token%3D9f0a1dab-470a-406c-a2d5-c964f822a85d&width=768&dpr=4&quality=100&sign=8dd289ed&sv=1)
Depending on how the application was deployed, you will either be able to redeploy the application from Git or edit the application's YAML directly.
Method 1: Redeploy from Git
If the application was deployed from a Git repository you can redeploy it from the repository if needed. You will see the repository URL that the application was deployed from, and the file used for the deployment.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F2361074862-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FfeAm0jOvgCoHfPvfPXxV%252Fuploads%252FBcDYijeM9cnNrKjYT7Rg%252F2.15-k8s-applications-edit-git-message.png%3Falt%3Dmedia%26token%3Dddc8b8cc-4e52-462b-80cb-ffc1b982473a&width=768&dpr=4&quality=100&sign=4b7bfc67&sv=1)
You can change the Repository reference if needed, and reconfigure authentication.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F2361074862-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FfeAm0jOvgCoHfPvfPXxV%252Fuploads%252Fmi1Kca98BVdlNncpzrOC%252F2.15-k8s-applications-edit-git-edit.png%3Falt%3Dmedia%26token%3D4d222505-7633-46e7-831a-4df9014399af&width=768&dpr=4&quality=100&sign=65315e0d&sv=1)
If you want to redeploy, click Pull and update application. If you're simply updating the repository settings and don't need to redeploy, click Save settings.
Method 2: Edit manually
If the application was not deployed from a Git repository, you can edit its manifest directly in Portainer.
You can search within the web editor at any time by pressing Ctrl-F
(or Cmd-F
on Mac).
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F2361074862-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FfeAm0jOvgCoHfPvfPXxV%252Fuploads%252FJe2FC2AkU7T2HxZdQgE1%252F2.15-kubernetes_applications_application_edit.png%3Falt%3Dmedia%26token%3D87a95070-5037-46cb-a517-198a77332f14&width=768&dpr=4&quality=100&sign=847be179&sv=1)
Make the required changes then click Update the application.
Last updated