{"id":18363424,"url":"https://github.com/stuttgart-things/flux2-cluster-bootstrap","last_synced_at":"2025-04-10T06:49:40.491Z","repository":{"id":214990083,"uuid":"737847297","full_name":"stuttgart-things/flux2-cluster-bootstrap","owner":"stuttgart-things","description":"terraform module for bootstrapping kubernetes clusters w/ flux2","archived":false,"fork":false,"pushed_at":"2025-02-25T23:31:20.000Z","size":64,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-26T00:25:53.679Z","etag":null,"topics":["flux","gitops","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-01-01T18:00:41.000Z","updated_at":"2025-01-19T14:17:10.000Z","dependencies_parsed_at":"2024-01-01T19:24:39.538Z","dependency_job_id":"aedcdffb-a366-425b-ae61-114705fcab8b","html_url":"https://github.com/stuttgart-things/flux2-cluster-bootstrap","commit_stats":null,"previous_names":["stuttgart-things/flux2-cluster-bootstrap"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fflux2-cluster-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fflux2-cluster-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fflux2-cluster-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fflux2-cluster-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/flux2-cluster-bootstrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173850,"owners_count":21059595,"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":["flux","gitops","k8s","kubernetes"],"created_at":"2024-11-05T23:06:28.663Z","updated_at":"2025-04-10T06:49:40.453Z","avatar_url":"https://github.com/stuttgart-things.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flux2-cluster-bootstrap\nterraform module for bootstrapping kubernetes clusters w/ flux2\n\n## BOOTSTRAP CLUSTER W/ GITHUB\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eFLUX BOOSTRAP\u003c/b\u003e\u003c/summary\u003e\n\n```hcl\nmodule \"bootstrap-app1\" {\n  source            = \"github.com/stuttgart-things/flux2-cluster-bootstrap\"\n  kubeconfig_path   = \"/home/sthings/.kube/app1\"\n  github_token      = var.github_token\n  github_repository = \"stuttgart-things\"\n  github_org        = \"stuttgart-things\"\n  target_path       = \"clusters/labul/pve/app1\"\n}\n\nvariable \"github_token\" { type= string }\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eFLUX BOOSTRAP + SECRET\u003c/b\u003e\u003c/summary\u003e\n\n```hcl\nmodule \"bootstrap-app1\" {\n  source            = \"github.com/stuttgart-things/flux2-cluster-bootstrap\"\n  kubeconfig_path   = \"/home/sthings/.kube/app1\"\n  github_token      = var.github_token\n  github_repository = \"stuttgart-things\"\n  github_org        = \"stuttgart-things\"\n  target_path       = \"clusters/labul/pve/app1\"\n  secrets = [\n    {\n      name = \"sops-age\"\n      namespace = \"flux-system\"\n      kvs = {\n        \"age.agekey\" = \"AGE-SECRET-KEY\"\n      }\n    },\n  ]\n}\n\nvariable \"github_token\" { type= string }\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eFLUX BOOSTRAP + ADDITIONAL MANIFESTS \u0026 KUSTOMIZATION PATCH\u003c/b\u003e\u003c/summary\u003e\n\n```hcl\nmodule \"bootstrap-app1\" {\n  source            = \"github.com/stuttgart-things/flux2-cluster-bootstrap\"\n  kubeconfig_path   = \"/home/sthings/.kube/app1\"\n  github_token      = var.github_token\n  github_repository = \"stuttgart-things\"\n  github_org        = \"stuttgart-things\"\n  target_path       = \"clusters/labul/pve/app1\"\n  additional_manifests = [\n    {\n      content = \u003c\u003c-EOT\n      ---\n      apiVersion: v1\n      kind: ConfigMap\n      metadata:\n        name: ca-pemstore\n        namespace: flux-system\n      data:\n        labul-pve.crt: |-\n          -----BEGIN CERTIFICATE-----\n      EOT\n    },\n  ]\n\n  kustomization_patches = \u003c\u003c-EOT\n  ---\n  apiVersion: kustomize.config.k8s.io/v1beta1\n  kind: Kustomization\n  resources:\n    - gotk-components.yaml\n    - gotk-sync.yaml\n  patches:\n    - patch: |\n        - op: add\n          path: /spec/decryption\n          value:\n            provider: sops\n            secretRef:\n              name: sops-age\n      target:\n        kind: Kustomization\n        name: flux-system\n    - patch: |\n        - op: add\n          path: /spec/template/spec/volumes/-\n          value:\n            name: ca-pemstore\n            configMap:\n              name: ca-pemstore\n      target:\n        kind: Deployment\n        name: source-controller\n  EOT\n}\n\nvariable \"github_token\" { type= string }\n```\n\n\u003c/details\u003e\n\n## EXECUTION\n\n```bash\nexport TF_VAR_github_token=$GITHUB_TOKEN\nterraform init\nterraform plan\nterraform apply\n```\n\n## LICENSE\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eAPACHE 2.0\u003c/b\u003e\u003c/summary\u003e\n\nCopyright 2023 patrick hermann.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\u003c/details\u003e\n\nAuthor Information\n------------------\nPatrick Hermann, stuttgart-things 01/2024\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fflux2-cluster-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fflux2-cluster-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fflux2-cluster-bootstrap/lists"}