Portainer for Kubernetes

Portainer is an open-source tool for Building and Managing docker environments with ease. It has been really popular among the techies for dealing with docker containers and already is a big name there.

Good news is Portainer CE 2.0 includes support for kubernetes as well and we are going to discuss about it in this article.

Below are it's features

  • Portainer makes operating container platforms easy.

  • It provides a simple, click-to-configure interface which removes all of the unnecessary complexity and negates the need for users to learn complex syntax

  • Portainer users can now deploy and manage notoriously complicated applications on a Kubernetes platform, quickly and easily

  • Users no longer need to know how to write YAML or understand the Kubernetes CLI or API.

Installation and general walk through

Lab Setup:

  • We already have a 3 node Kubernetes cluster running.

  • We will now install arkade , which is a software to install packages for kubernetes.

[root@node1 ~]# time curl -sLS https://dl.get-arkade.dev | sudo sh
Downloading package https://github.com/alexellis/arkade/releases/download/0.6.10/arkade as /tmp/arkade
Download complete.
Running with sufficient permissions to attempt to move arkade to /usr/local/bin
New version of arkade installed to /usr/local/bin
Creating alias 'ark' for 'arkade'.
sh: line 172: arkade: command not found
real 0m30.659s
user 0m0.229s
sys 0m0.216s

  • Make sure that arkade is installed successfully

  • Using arkade , now we will install portainer

[root@node1 ~]# time arkade install portainer
Using kubeconfig: /root/.kube/config
Node architecture: "amd64"
= Portainer has been installed  =
# Open the UI:
kubectl port-forward -n portainer svc/portainer 9000:9000 &
# Or access via NodePort on http://node-ip:30777
Find out more at https://www.portainer.io/
Thanks for using arkade!
real 0m1.221s
user 0m0.353s
sys 0m0.197s
[root@node1 ~]#

  • Now create a user and login to Portainer console

  • Select Kubernetes option

Once selected, it will automatically detect the kubeconfig file and our cluster will be visible like below.

Once we click on the icon, we will see the workloads on our cluster.

Clicking on the specific type of workload will provide more details about it.

So this is a quick way of managing and visualizing the kubernetes cluster with portainer.

It also allows us to create kubernetes objects by providing yaml files.

If metric server is installed on the cluster then it can also show us cluster resource utilization.

So do you like it ? Let us know in the comments


592 views0 comments

Recent Posts

See All