This guide walks through deploying Portainer Community Edition (CE) on Kubernetes using the DigitalOcean Marketplace. You can deploy to an existing cluster or create a new one with Portainer preinstalled.
Option 1: Deploy to an existing Kubernetes cluster
Step 1: Open the DigitalOcean Marketplace
- Log in to the DigitalOcean control panel.
- From the left menu, select Marketplace.
- In the search bar, type Portainer.
- Select Portainer Community Edition.

Step 2: Install Portainer on your cluster
- Click Install App.
- Select the Kubernetes cluster where you want to deploy Portainer.
- Click Install.
You can monitor installation progress at the bottom of the Kubernetes cluster page.

Step 3: Install the Kubernetes Metrics Server
Portainer requires the Kubernetes Metrics Server for resource monitoring.
- Return to the Marketplace.
- Search for Kubernetes Metrics Server.
- Click Install.
- Select the same cluster where Portainer was installed.
- Complete the installation.

Step 4: Retrieve the Load Balancer IP
- In the Digital Ocean left menu, click Networking.
- Select Load Balancers.
- Locate the load balancer created during deployment.
- Copy the assigned public IP address.

Step 5: Access the Portainer UI
Open a new browser tab and enter:
http://<LOAD_BALANCER_IP>:9000
Replace <LOAD_BALANCER_IP> with the IP address from the previous step.
Step 6: Complete Initial Portainer Setup
When Portainer loads:
- Create the initial administrator account.
- Connect Portainer to the Kubernetes cluster.
- Set up the cluster to:
- Allow users to use external load balancer
- Enable features using metrics API
- Use do-block-storage as a storage option
- Click Save configuration.

Portainer is now deployed and connected to your cluster.
Option 2: Deploy a New Kubernetes Cluster with Portainer Preinstalled
If you do not already have a Kubernetes cluster, you can create one during deployment.
Step 1: Open the Digital Ocean Marketplace
- Log in to DigitalOcean.
- Click Marketplace in the left hand menu.
- Search for Portainer Community Edition.
- Click Install App.

Step 2: Create a New Cluster
- Select Create a new cluster.
- Configure:
- Region
- Kubernetes version
- Node pool size and type
- Cluster name
- Complete the cluster creation process.
The cluster will be provisioned with Portainer CE preinstalled.

Step 3: Install the Metrics Server
After the cluster is ready:
- Install Kubernetes Metrics Server from the Marketplace.
- Ensure you select the newly created cluster.

Step 4: Access Portainer
- Go to Networking → Load Balancers.
- Copy the public IP address.
- Access Portainer at:
http://<LOAD_BALANCER_IP>:9000
- When the UI loads:
- Create the initial administrator account.
- Connect Portainer to the Kubernetes cluster.
- Set up the cluster to:
- Allow users to use external load balancer.
- Enable features using metrics API
- Use do-block-storage as a storage option
-
You should now have access to the Endpoint of your cluster:



