Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alilotfi23/jenkins-terraform-k8s

Deployment on Kubernetes Cluster using Jenkins CI/CD and Terraform
https://github.com/alilotfi23/jenkins-terraform-k8s

jenkins jenkins-pipeline jenkinsfile kubernetes kubernetes-deployment kubernetes-service terraform

Last synced: 14 days ago
JSON representation

Deployment on Kubernetes Cluster using Jenkins CI/CD and Terraform

Awesome Lists containing this project

README

        

# jenkins-terraform-k8s
Deployment on Kubernetes Cluster using Jenkins CI/CD and Terraform
## BluePrint
![Untitled Diagram drawio](https://github.com/user-attachments/assets/61f396da-c7be-4c48-a661-b521a9af8b7c)

## Terraform provider file
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
## terraform versions file
Stick to a provider version that ensures there are no breaking changes.
## terrafprm main file
main.tf will contain the main set of configurations for your module.
# run terraform code
Install provider

```shell
terraform init
```
The Terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure

```shell
terraform plan
```
The terraform apply command is used to apply the changes required to reach the desired state of the configuration
```shell
terraform apply
```
## jenkinsfile
The Jenkins pipeline run terraform (init, fmt, validate) before applying the command