This page looks best with JavaScript enabled

How to install Portainer and use it as K3S dashboard in Raspberry Pi CM4

 ·  ☕ 1 min read  ·  🐧 sysadmin

I will walk you through the Portainer installation steps in this article.

  1. Here is a video tutorial; continue reading for a list of written instructions.

Exercises to complete:

  1. Install Portainer on master node
  2. Open URL in the web browser
  3. Delete Portainer if needed

Install Portainer on master node

1
kubectl apply -f https://raw.githubusercontent.com/portainer/k8s/master/deploy/manifests/portainer/portainer.yaml

Display the Portainer dashboard URL

1
curl -vk https://<IP_ADDRESS>:<PORT_NUMBER>

eg.

1
curl -vk https:10.10.0.120:30777

Copy the URL and put it into the address bar into your web browser. Then login to Portainer using login: admin. Generate a password by using a random password generator.

Delete Portainer if needed

1
kubectl delete deployments.apps/portainer -n portainer && kubectl delete service portainer -n portainer && kubectl delete serviceaccount -n portainer portainer-sa-clusteradmin && kubectl delete pvc portainer -n portainer && kubectl delete clusterrolebinding portainer && kubectl delete namespace portainer && rm -f portainer.yaml
Share on

sysadmin
WRITTEN BY
sysadmin
QA & Linux Specialist