Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alilotfi23/jenkins-terraform-k8s
- Owner: alilotfi23
- Created: 2023-09-20T08:47:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T08:13:23.000Z (3 months ago)
- Last Synced: 2024-11-22T23:09:39.980Z (3 months ago)
- Topics: jenkins, jenkins-pipeline, jenkinsfile, kubernetes, kubernetes-deployment, kubernetes-service, terraform
- Language: HCL
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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