SquareOps Technologies Your DevOps Partner for Accelerating cloud journey.
This module allows you to run Jenkins inside a cluster, providing improved availability and scalability, which can help manage the deployment, scaling, and configuration of Jenkins. To use this module, you will need to ensure that your cluster is set up correctly, with shared storage for data persistence and load balancing configured to distribute requests across nodes. Monitoring and logging tools should be used to keep track of Jenkins' health and performance inside the cluster, and to identify any issues that may arise.
This module is compatible with EKS, AKS & GKE which is great news for users deploying the module on an AWS, Azure & GCP cloud. Review the module's documentation, meet specific configuration requirements, and test thoroughly after deployment to ensure everything works as expected.
Jenkins Helm Chart Version | K8s supported version (EKS, AKS & GKE) |
---|---|
4.2.15 | 1.23,1.24,1.25,1.26,1.27 |
4.5.0 | 1.23,1.24,1.25,1.26,1.27 |
5.2.2 | 1.23,1.24,1.25,1.26,1.27,1.28,1.29,1.30 |
5.4.2 | 1.23,1.24,1.25,1.26,1.27,1.28,1.29,1.30 |
module "jenkins" {
source = "squareops/jenkins/kubernetes"
version = "2.2.2"
jenkins_config = {
hostname = "jenkins.squareops.in"
values_yaml = file("./helm/values.yaml")
storage_class_name = "infra-service-sc"
jenkins_volume_size = "10Gi"
enable_backup = true # true for enable backup
backup_schedule = "0 6 * * *" # Set Cron for the job
service_account = kubernetes_service_account.sa_jenkins.metadata[0].name # service account name
backup_bucket_name = module.s3_bucket_jenkins_backup.s3_bucket_id # s3 bucket name
restore_backup = true # true for restore the backup
backup_restore_date = "2024-07-18" # Date of backup
}
}
- Refer AWS examples for more details.
- Refer Azure examples for more details.
- Refer GCP examples for more details.
The required IAM permissions to create resources from this module can be found here
This repository provides a method for backing up and restoring Jenkins using S3 storage.
Usage
To enable backup, set the enable_backup variable to true. Backups will be automatically stored in the configured S3 bucket.
To restore a backup, set the restore_backup variable to true. This will initiate the restoration process from the latest backup available in the S3 bucket.
Important Notes
- Ensure to restart the Jenkins service after performing a restore to apply the restored configuration and data.
- Backup and restore functionality relies on proper configuration of S3 credentials and bucket permissions.
No requirements.
Name | Version |
---|---|
aws | n/a |
helm | n/a |
kubernetes | n/a |
time | n/a |
No modules.
Name | Type |
---|---|
aws_iam_role.jenkins_backup_role | resource |
helm_release.jenkins | resource |
kubernetes_cron_job_v1.jenkins_backup_cron | resource |
kubernetes_namespace.jenkins | resource |
kubernetes_pod.jenkins_restore | resource |
kubernetes_service_account.sa_jenkins | resource |
time_sleep.wait_120_sec | resource |
aws_caller_identity.current | data source |
kubernetes_secret.jenkins | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
chart_version | Version of the Jenkins chart that will be used to deploy Jenkins application. | string |
"5.4.2" |
no |
jenkins_config | Specify the configuration settings for Jenkins, including the hostname, storage options, and custom YAML values. | any |
{ |
no |
namespace | Name of the Kubernetes namespace where the Jenkins deployment will be deployed. | string |
"jenkins" |
no |
Name | Description |
---|---|
jenkins | Jenkins_Info |
To report an issue with a project:
- Check the repository's issue tracker on GitHub
- Search to see if the issue has already been reported
- If you can't find an answer to your question in the documentation or issue tracker, you can ask a question by creating a new issue. Be sure to provide enough context and details so others can understand your problem.
Apache License, Version 2.0, January 2004 (http://www.apache.org/licenses/).
To support a GitHub project by liking it, you can follow these steps:
-
Visit the repository: Navigate to the GitHub repository.
-
Click the "Star" button: On the repository page, you'll see a "Star" button in the upper right corner. Clicking on it will star the repository, indicating your support for the project.
-
Optionally, you can also leave a comment on the repository or open an issue to give feedback or suggest changes.
Starring a repository on GitHub is a simple way to show your support and appreciation for the project. It also helps to increase the visibility of the project and make it more discoverable to others.
We believe that the key to success in the digital age is the ability to deliver value quickly and reliably. That’s why we offer a comprehensive range of DevOps & Cloud services designed to help your organization optimize its systems & Processes for speed and agility.
- We are an AWS Advanced consulting partner which reflects our deep expertise in AWS Cloud and helping 100+ clients over the last 5 years.
- Expertise in Kubernetes and overall container solution helps companies expedite their journey by 10X.
- Infrastructure Automation is a key component to the success of our Clients and our Expertise helps deliver the same in the shortest time.
- DevSecOps as a service to implement security within the overall DevOps process and helping companies deploy securely and at speed.
- Platform engineering which supports scalable,Cost efficient infrastructure that supports rapid development, testing, and deployment.
- 24*7 SRE service to help you Monitor the state of your infrastructure and eradicate any issue within the SLA.
We provide support on all of our projects, no matter how small or large they may be.
To find more information about our company, visit squareops.com, follow us on Linkedin, or fill out a job application. If you have any questions or would like assistance with your cloud strategy and implementation, please don't hesitate to contact us.