Skip to content

squareops/terraform-kubernetes-rancher

Repository files navigation

RANCHER

squareops_avatar

SquareOps Technologies Your DevOps Partner for Accelerating cloud journey.


This module provides a Terraform configuration for deploying Rancher on a Kubernetes cluster. Rancher is a powerful open-source platform for managing Kubernetes clusters and containerized applications. With this module, you can easily deploy Rancher on your Kubernetes cluster with just a few lines of code. Features
  1. Quick and easy deployment of Rancher on Kubernetes
  2. Configuration options for customizing Rancher installation
  3. Automatic generation of Kubernetes resources
  4. Support for deploying Rancher on a single node or multiple nodes

Supported Versions Table:

Rancher Helm Chart Version K8s supported version (EKS, AKS & GKE)
2.7.0 1.23,1.24
2.7.2 1.23,1.24,1.25,1.26
2.8.2 1.23,1.24,1.25,1.26,1.27

Important Notes:

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.

Usage Example

module "rancher" {
  source         = "squareops/rancher/kubernetes"
  rancher_config = {
    email    = "[email protected]"
    hostname = ""
    values_yaml = ""
  }
}

IAM Permissions

The required IAM permissions to create resources from this module can be found here

Requirements

No requirements.

Providers

Name Version
helm n/a
kubernetes n/a
random n/a

Modules

No modules.

Resources

Name Type
helm_release.rancher resource
kubernetes_limit_range_v1.rancher_limit resource
kubernetes_namespace.cattle_system resource
kubernetes_resource_quota_v1.rancher_resource_quota resource
random_password.rancher_password resource
kubernetes_secret.rancher_password data source

Inputs

Name Description Type Default Required
chart_version Version of the Rancher chart that will be used to deploy Rancher application. string "2.8.2" no
create_resource_limit Whether enable or disble the resource limit For cattle-system namespace bool false no
create_resource_quota Whether enable or disble the resource quota For cattle-system namespace bool false no
namespace Name of the Kubernetes namespace where the Rancher deployment will be deployed. string "cattle-system" no
rancher_config Specify the configuration settings for Rancher including the hostname,email, and custom YAML values. any
{
"email": "",
"hostname": "",
"values_yaml": ""
}
no
rancher_resource_limit Specify the configuration settings for Rancher resources limits including cpu, mem, pvc storage for Pods and Container. any
{
"container_max_cpu": "1000m",
"container_max_mem": "3132Mi",
"container_min_cpu": "5m",
"container_min_mem": "50Mi",
"pod_max_cpu": "1000m",
"pod_max_mem": "4000Mi",
"pod_min_cpu": "5m",
"pod_min_mem": "50Mi",
"pvc_max_storage": "200G",
"pvc_min_storage": "24M"
}
no
rancher_resource_quota Specify the configuration settings for Rancher resources quota in a namespace. any
{
"no_of_pods": 10,
"no_of_services": 5
}
no

Outputs

Name Description
rancher Rancher_Info

Contribution & Issue Reporting

To report an issue with a project:

  1. Check the repository's issue tracker on GitHub
  2. Search to see if the issue has already been reported
  3. 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.

License

Apache License, Version 2.0, January 2004 (http://www.apache.org/licenses/).

Support Us

To support a GitHub project by liking it, you can follow these steps:

  1. Visit the repository: Navigate to the GitHub repository.

  2. 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.

  3. 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.

Who we are

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.

  1. We are an AWS Advanced consulting partner which reflects our deep expertise in AWS Cloud and helping 100+ clients over the last 5 years.
  2. Expertise in Kubernetes and overall container solution helps companies expedite their journey by 10X.
  3. Infrastructure Automation is a key component to the success of our Clients and our Expertise helps deliver the same in the shortest time.
  4. DevSecOps as a service to implement security within the overall DevOps process and helping companies deploy securely and at speed.
  5. Platform engineering which supports scalable,Cost efficient infrastructure that supports rapid development, testing, and deployment.
  6. 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.