Hello Adolfo from Portainer here
I’m going to show you how easy it is to deploy Portainer on Azure using the Azure Kubernetes
Services or AKS. The first thing I’m going to do here is to create a resource group.
so we can have more control
of this deployment. I’m going to call it Portainer
AKS (Azure Kubernetes Services) demo and I’m going to use East US
as the preferred region but then that's up to you. You have to pick the one that suits you better.
Review and create and there it is Portainer AKS (Azure Kubernetes Services) demo.
Now, I’m going to open the Kubernetes services in Azure
and create a new Kubernetes cluster so I’m going to add this Kubernetes cluster using
this resource group we just created. Let's call it Portainer AKS (Azure Kubernetes Services) demo
and everything else will be just standard. I’m not going to change anything here.
Let's click on create as soon as the button is available it should be soon.
There you go create and this takes anything between
four to seven minutes so I’m going to fast forward the video.
Okay, so our cluster deployed let's go to the resource.
Check it out let's go to the node pools.
Yeah three nodes.
Everything's alright so now I’m going to deploy Portainer and for that we can open the cloud shell
and the first thing we want to do is to download the credentials
so we can use the Kubectl tool to manage the nodes. So, I type in
this com this set of commands as AKS (Azure Kubernetes Services) credentials the
name of the resource, the name of the cluster and what this does is that it writes the credentials
on the config file under the dot Kube folder so with this we can manage
the nodes. For instance Kubectl get nodes to show me all the three nodes that are running
And there you go, yep. The second thing to do is to add the Portainer repository with Helm so
we do the Helm repo add Portainer and the Portainer link. Let's update our repository with Helm
and finally we start deploying Portainer. The first thing we want to do is to reserve a namespace
for Portainer so with Kubectl we create a namespace called Portainer and with Helm
we install Portainer. So, all these commands will be in the description of the video
also you don't need to write this down.
It's actually let's see one, two, three, four, five commands. It's very simple so the last thing
that I do here is I copy these two lines and run them in the shell this will give me
the IP address and the port where Portainer was deployed
so let's copy this and open it in a new tab
and soon enough we will see Portainer's interface and there we go. Let's finish configuring the
Portainer. The first step is to create the initial administrator user. I like to change this I like to
change the default Admin Username to Joe or whatever name but that's entirely up to you
put in a password twice create the user no I don't do this then let's connect the
Kubernetes environment to Portainer just by clicking on connect that's the second step
and the third and last step is to configure the Kubernetes features on Portainer so for Azure
we might want to include the English controller and in this case for Azure it's Nginx
at least that's the one I i use and configure the storage options. There's a page
on the app Microsoft documentation for Azure that explains the differences and this is
very important between the storage classes so default is the standard SSD storage managed premium
is that Azure premium storage the Azure file is Azure standard storage that creates an
Azure file share and the Azure file premium just like the Azure file uses the Azure premium storage
to create an Azure file share. Make sure you select the one that best suits you I in this case
I would set Azure file which is more than enough in this case in my case at least and click on save
configuration there we go we can see our endpoint with our cluster represented with the respective
total hardware. If I click on the endpoint and go to cluster on the left hand side of the Portainer
menu, we see our three nodes here just like the ones that we saw previously when we typed in the
Kubectl get nodes and there we go! So, I hope you enjoyed this video. Thank you very much.