Kubeless on Azure Container Services
Azure Container Services (ACS) is a built-in service offered by Microsoft Azure platform to natively support complex container-based environments. By design, ACS supports Kubernetes as the main Docker containers orchestrator in its context. To know more about ACS, please, follow this link.
Kubeless provides a native way to execute serverless functions on top of Kubernetes cluster so, ACS could become an ideal environment to run Kubeless on top of it.
This tutorial describes the entire process to install and execute Kubeless on top of Azure Container Services using Kubernetes.
2. Creating an ACS Kubernetes cluster
In order to get Kubeless up and running on top of ACS of course you'll need an ACS Kubernetes cluster. Fortunately, Microsoft already did a great job documenting the entire process to accomplish that. You can reach out that documentation following this link.
Important notes regarding the cluster creation itself
The Microsoft's tutorial mentioned before creates a new cluster using Azure CLI 2.0. In order to get the things done in that way, you'll need to install this CLI. This link describes the process to do that in your environment.
In the same document the property
--generate-ssh-keyswas used to generate the required SSH keys to the cluster deployment. If you would like to create your own keys, please use
--ssh-key-valuepassing the path to your SSH pub file.
ACS deploys at least one virtual machine to act as "master" and at least one virtual machine to act as "agent". If you'd like to access the master (where kubectl, docker and another stuff resides) for some reason, the usage of your own SSH keys is strongly recommended.
3. Installing "Kubeless-Controller"
Assuming that the Kubernetes cluster is up and running on top of ACS, its time to install kubeless-controller on master VM. To accomplish, please, follow the steps described on Kubeless documentation, available here.
4. Installing "Kubeless Client CLI"
Kubeless-Controller is the agent in charge to manage the requests from Kubernetes cluster side. The same way, there's an agent in charge to manage the occurrences from the client side (for instance: register a new function to be executed, call an existing function, etc.). This way, you'll need to install de Kubeless CLI.
Currently there's two different ways to accomplish that: manually (generating binaries manually) or in a automatized way (using a pre-compiled package provided by Bitnami). Follow the installation instructions in order to set it up as well.
5. Usage and initial tests
Please follow Kubeless oficial documentation, available here.