Deploying Jenkins(JCasC) on Kubernetes with Helm and Terraform.
A provider in Terraform is a plugin that enables interaction with an API. This includes Cloud providers and Software-as-a-service providers. The providers are specified in the Terraform configuration code. They tell Terraform which services it
Stick to a provider version that ensures there are no breaking changes.
main.tf will contain the main set of configurations for your module.
Install provider
terraform init
The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure
terraform plan
The terraform apply command is used to apply the changes required to reach the desired state of the configuration
terraform apply
Helm is a tool that automates Kubernetes applications' creation, packaging, configuration, and deployment by combining your configuration files into a single reusable package.
All Helm-packed applications have associated values.yaml file which dictates the configuration of an application.
The Jenkins Configuration as Code (JCasC) feature defines Jenkins configuration parameters in a human-readable YAML file that can be stored as source code.