{"id":28378676,"url":"https://github.com/env0/k8s-modules","last_synced_at":"2025-06-25T13:32:52.132Z","repository":{"id":43744747,"uuid":"440165798","full_name":"env0/k8s-modules","owner":"env0","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-23T12:45:15.000Z","size":102,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-18T09:56:58.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/env0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T12:39:57.000Z","updated_at":"2025-02-23T08:59:27.000Z","dependencies_parsed_at":"2023-02-09T22:45:53.832Z","dependency_job_id":"d344828d-8866-417f-bbea-915ffa3ea7f5","html_url":"https://github.com/env0/k8s-modules","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/env0/k8s-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fk8s-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fk8s-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fk8s-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fk8s-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/env0","download_url":"https://codeload.github.com/env0/k8s-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fk8s-modules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261883073,"owners_count":23224428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T02:07:04.912Z","updated_at":"2025-06-25T13:32:52.122Z","avatar_url":"https://github.com/env0.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-modules\nThis repository contains live examples for creation of kubernetes cluster which can run env0 deployments.\nyou can take those examples and use them as-is or fork the repo and adjust for yourself.\n\nYou can, of course, mix and match according to your own needs.\n\n### AWS \n#### Creating a full-blown cluster installation\nIf you'd like to create a cluster from scratch, including a VPC and an EFS for storage, you can simply use the `aws` root folder as a module.\n```terraform\n// cluster.tf\nmodule \"my-cluster\" {\n  source = \"github.com/env0/k8s-modules//aws\"\n\n  region       = var.region\n  cluster_name = var.cluster_name\n}\n``` \n#### Partial installation\nYou can also just pick out the parts necessary for your installation.\nCheck the `versions.tf` of submodule to know which providers are needed, check the `providers.tf` file of the root module to know how to configure them.\n \nFor example, only create a EFS CSI driver for storage:\n```terraform\n// csi-driver.tf\nmodule \"csi-driver\" {\n  source = \"github.com/env0/k8s-modules//aws/csi-driver\"\n\n  cluster_name = \"eks_corporation_prod\"\n  efs_id = var.efs_id\n}\n```\n\n#### Alternative Log Storage\nYou can store the deployment logs on your own cloud provider, for supported cloud providers. See `log-storage/README.md` for more details\n### Installing the env0 agent\nIf you'd like, you can also install the env0 agent using terraform.\nMake sure you fill out \n* `var.env0_values` according to the values provided to you by env0\n* `var.customer_values` according to your features [optional configuration](https://docs.env0.com/docs/self-hosted-kubernetes-agent#customoptional-configuration) \n```terraform\n// agent.tf\nresource \"helm_release\" \"agent\" {\n  depends_on       = [module.my-cluster] // add all necessary dependencies here \n  name             = \"env0-agent\"\n  namespace        = \"env0-agent\"\n  chart            = \"env0-agent\"\n  create_namespace = true\n  repository       = \"https://env0.github.io/self-hosted\"\n  timeout          = 600\n  values           = [\n    yamlencode(merge(jsondecode(var.env0_values), jsondecode(var.customer_values)))\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenv0%2Fk8s-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenv0%2Fk8s-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenv0%2Fk8s-modules/lists"}