{"id":18151044,"url":"https://github.com/nglehuy/oci-iac","last_synced_at":"2026-04-24T16:06:18.769Z","repository":{"id":260220379,"uuid":"860488175","full_name":"nglehuy/oci-iac","owner":"nglehuy","description":"Infrastructure as Code using Terraform to deploy kubernetes cluster on custom OCI cloud VMs","archived":false,"fork":false,"pushed_at":"2025-09-21T07:41:10.000Z","size":4784,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T09:24:07.596Z","etag":null,"topics":["ansible","kubespray","terraform"],"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/nglehuy.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-09-20T14:26:18.000Z","updated_at":"2025-09-21T07:41:14.000Z","dependencies_parsed_at":"2024-11-18T14:51:17.975Z","dependency_job_id":"4392fb36-7464-492b-bedc-128add9e1736","html_url":"https://github.com/nglehuy/oci-iac","commit_stats":null,"previous_names":["nglehuy/oci-iac"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nglehuy/oci-iac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nglehuy%2Foci-iac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nglehuy%2Foci-iac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nglehuy%2Foci-iac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nglehuy%2Foci-iac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nglehuy","download_url":"https://codeload.github.com/nglehuy/oci-iac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nglehuy%2Foci-iac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ansible","kubespray","terraform"],"created_at":"2024-11-02T01:06:13.632Z","updated_at":"2026-04-24T16:06:18.725Z","avatar_url":"https://github.com/nglehuy.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"- [OCI IaC (Infrastructure as Code)](#oci-iac-infrastructure-as-code)\n    - [Documentation](#documentation)\n    - [Installation](#installation)\n      - [1. Install Terraform](#1-install-terraform)\n      - [2. Install Python Environment](#2-install-python-environment)\n      - [3. Install K8s Cluster](#3-install-k8s-cluster)\n      - [3. Install Apps](#3-install-apps)\n    - [References](#references)\n      - [1. OCI + K8s](#1-oci--k8s)\n      - [2. Metallb + Ingress Nginx](#2-metallb--ingress-nginx)\n      - [3. Cert-Manager](#3-cert-manager)\n      - [4. Prometheus](#4-prometheus)\n\n# OCI IaC (Infrastructure as Code)\n\nThis repository contains infrastructure code for deploying kubernetes cluster on Oracle Cloud VMs\n\nThis is written in [Terraform](https://www.terraform.io/) with custom python scripts.\n\nThis uses the [Oracle Cloud Infrastructure (OCI)](https://www.oracle.com/cloud/) provider.\n\n### Documentation\n\n- [k8s docs](./docs/k8s.md)\n\n### Installation\n\n#### 1. Install Terraform\n\n```bash\nbrew tap hashicorp/tap\nbrew install terraform\n```\n\n#### 2. Install Python Environment\n\nMake sure the `.venv` is created and activated on every terminal session.\n\n```bash\npython3.12 -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt -r requirements.dev.txt\n```\n\n#### 3. Install K8s Cluster\n\n```bash\ncd k8s\nterraform init -reconfigure -upgrade\nterraform apply\n```\n\n#### 3. Install Apps\n\n```bash\n# cert-manager\ncd apps/common\nterraform init -reconfigure -upgrade\nterraform apply\n\n# prometheus\ncd apps/prometheus\nterraform init -reconfigure -upgrade\nterraform apply\n```\n\n### References\n\n#### 1. OCI + K8s\n- [https://docs.oracle.com/en/learn/oci-oke-multicluster-k8s-terraform/index.html#task-25-create-an-api-key-in-the-oci-console-and-add-the-public-key-to-your-oci-account](https://docs.oracle.com/en/learn/oci-oke-multicluster-k8s-terraform/index.html#task-25-create-an-api-key-in-the-oci-console-and-add-the-public-key-to-your-oci-account)\n- [https://olav.ninja/deploying-kubernetes-cluster-on-proxmox-part-2](https://olav.ninja/deploying-kubernetes-cluster-on-proxmox-part-2)\n\n#### 2. Metallb + Ingress Nginx\n- [https://nvtienanh.info/blog/cai-dat-metallb-va-ingress-nginx-tren-bare-metal-kubernetes-cluster](https://nvtienanh.info/blog/cai-dat-metallb-va-ingress-nginx-tren-bare-metal-kubernetes-cluster#metallb--ingress-nginx)\n\n#### 3. Cert-Manager\n- [https://cert-manager.io/docs/tutorials/acme/nginx-ingress/](https://cert-manager.io/docs/tutorials/acme/nginx-ingress/)\n\n#### 4. Prometheus\n- [https://github.com/prometheus-community/helm-charts/issues/1255#issuecomment-2038475024](https://github.com/prometheus-community/helm-charts/issues/1255#issuecomment-2038475024)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnglehuy%2Foci-iac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnglehuy%2Foci-iac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnglehuy%2Foci-iac/lists"}