Start United States USA — software Alexa and Kubernetes: Deploying the Alexa Skill on Google Kubernetes Engine (IX)

Alexa and Kubernetes: Deploying the Alexa Skill on Google Kubernetes Engine (IX)

272
0
TEILEN

In this last article in my installment, I will teach you how to automatically deploy an Alexa Skill to Google Kubernetes Engine using Terraform.
Join the DZone community and get the full member experience. Now, we have everything prepared and ready to go to a Kubernetes Cluster in a cloud provider. It is a fact that creating a cluster in any cloud provider manually is a difficult task. Moreover, if we want to automate this deployment, we need something that helps us in this tedious task. In this article, we will see how to create a Kubernetes Cluster and all of its required objects, deploying our Alexa Skill with Terraform using Google Kubernetes Engine. Here, you have the technologies used in this project: Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers, as well as custom in-house solutions. Configuration files describe to Terraform the components needed to run a single application or your entire datacenter. Terraform generates an execution plan describing what it will do to reach the desired state and, then, executes it to build the described infrastructure. As the configuration changes, Terraform is able to determine what changed and create incremental execution plans that can be applied. The infrastructure Terraform can manage includes low-level components, such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. After the brief overview of Terraform, I am going to explain all the terraform files and its objects that we are going to use to deploy the cluster and our Alexa Skill. You can find all the files related to this deployment in terraform/gke folder. A provider is responsible for understanding API interactions and exposing resources. Most of the available providers correspond to one cloud or on-premises infrastructure platform and offers resource types that correspond to each of the features of that platform.

Continue reading...