Skip to content
Industrial IoT and Edge

Portainer is your solution to securely deploy software containers across your fleet of Edge devices.

Industrial IoT and Edge
Business Edition Pricing

Portainer Business offers flexible licensing options for enterprises, including server plus per-node licensing. With features like 9x5 support and customer success, it caters to the unique needs of businesses.
Community Supported Options

Portainer Business provides Community Supported Options for Home & Student use and organizations with a minimal container footprint. Purchase can be made conveniently via Credit Card.
blog-banner
Adolfo DelorenzoApril 3, 20211 min read

Deploy Applications on Kubernetes with Portainer - Stateless, Stateful or Daemon

 Deploying applications on Kubernetes can be done using at least 3 methods, Stateless, Stateful or Daemon. With Portainer it is very easy to deploy applications regardless of the method. Let's check how.
 

Stateless

  1. The Create application option from Portainer by default will deploy applications as a Stateless/Deployment type that you can edit and scale up or down. Under Deployment make sure to select the Replicated option selected:
  2. You can go back to the application after it is deployed to increase/reduce the amount of instances.
  3. It's that simple!
  • If your application requires persistence, the amount of Instance count will be set to 1 to avoid data loss:

Stateful

  1. The difference from the method above is that a Stateful application, that necessarily requires persistence on the Data access policy has to be selected as Isolated:
  2. This is enough to deploy applications with a StatefulSet method.

DaemonSet

  1. To deploy applications as DaemonSets all you need to do is select a Global deployment method so the pods are copied on every node of the Kubernetes cluster:
    .
  2. This will ensure that your application is deployed as a Daemon.

As you can see with Portainer it's extremely easy to deploy applications as Stateless, Stateful and as Daemon.

You can see a video walkthrough of this here:

COMMENTS

Related articles