Add an application
From the menu select Applications then click Add application.
Complete the required information, using the table below as a guide.
Give the application a descriptive name.
Enter the name (and optionally the tag) of the image that will be used to deploy the application.
Select the namespace where the application will reside. If you need to add a new namespace, go here.
Portainer can automatically bundle multiple applications inside a stack. Enter the name of a new stack, select an existing stack from the list, or leave empty to use the application name.
Environment variables
Define any environment variables for the application.
Select any configuration files you have previously created to make available to the application.
Persisting data
Define any persistent folders within the application and whether these are new or existing volumes, as well as the size of the volume and storage location.
Data access policy
You have two options when specifying how data will be used across instances:
Isolated: Each instance of the application will use its own data.
Shared: All application instances will use the same data.
Resource reservations
Define the amount of memory and CPU available to the application.
Choose how you want to deploy the application inside the cluster. Options are:
Replicated: Run one or multiple instances on this container.
Global: Deploy an instance of this container on each cluster node.
Instance count
Define the number of instances of the application to run.
Placement rules
Define which placement rules must be followed by the nodes where the application is deployed to. Placement rules are based on node labels.
Placement policy
Select which policy to associate with the placement rules. Options are:
Mandatory: The application will only be scheduled on nodes that follow all rules.
Preferred: If possible, the application will be scheduled on nodes that follow all rules.
Publishing the application
Select how you want to publish the application. Options are:
Internal: Internal communications inside the cluster only.
Cluster: Publish via a port on all cluster nodes.
Published ports
Define the published ports for the application. Only applicable if you selected the Cluster publishing method.
When you have finished, click Deploy application.
Last modified 1mo ago
Copy link
Edit on GitHub