Everyone can contribute! Learn DevOps and Cloud Native in our cafe ☕


Technology is moving fast in the DevOps and Cloud Native community.

Join the conversation and add your thoughts, tips, experiences, stories.

"Everyone Can Contribute" is inspired by GitLab's mission.

40. #EveryoneCanContribute cafe: Terraform and Helm Registries in GitLab


Niclas Mietz walks us through a Terraform module with Civocloud deployments, published to the GitLab registry. Philip Welz takes over.

Reminder: GitLab Commit Virtual happens next week. Register now!

Recording

Enjoy the session! 🦊


Highlights

The civo-k3s repository provides a minimal set of Terraform modules to provision a Civo Cloud Kubernetes cluster learned last week. Niclas creates the .gitlab-ci.yml configuration for Terraform, and uses additional scripts and jobs to package and push the Terraform module to the GitLab registy. An example module will invoke the runtime test in examples/main.tf.

Recommended for beginners: Start with 2 Git repositories, one as “producer” of the module, and one “consumer” which tests and installs the module. Refactor the Infrastructure code later into a monorepo when applicable.

Philip took over in the same repository, using the podtato head demo with a Helm chart. It got packaged, pushed to the GitLab Helm repository, and the application gets deployed using the helm cli command.

Insights


Date published: July 28, 2021

Tags: Terraform, Gitlab, Helm, Kubernetes