Via Helm
- Create a namespace for portainer
kubectl create namespace portainer
- Add the portainer helm repository
helm repo add portainer https://portainer.github.io/k8s
- Install the portainer helm chart
helm update
helm install -n portainer portainer portainer/portainer
- To access the portainer dashboard, run the following command
kubectl -n portainer port-forward svc/portainer 9000:9000
Dashboard will be available at http://localhost:9000. Preview