{"id":21437384,"url":"https://github.com/cotyhamilton/gitops","last_synced_at":"2026-01-03T21:07:45.651Z","repository":{"id":55766563,"uuid":"487707567","full_name":"cotyhamilton/gitops","owner":"cotyhamilton","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-11T03:30:57.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T09:41:53.870Z","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/cotyhamilton.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}},"created_at":"2022-05-02T03:42:10.000Z","updated_at":"2022-05-02T03:42:17.000Z","dependencies_parsed_at":"2022-08-15T06:50:44.227Z","dependency_job_id":null,"html_url":"https://github.com/cotyhamilton/gitops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotyhamilton%2Fgitops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotyhamilton%2Fgitops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotyhamilton%2Fgitops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cotyhamilton%2Fgitops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cotyhamilton","download_url":"https://codeload.github.com/cotyhamilton/gitops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243946248,"owners_count":20373014,"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":"2024-11-23T00:19:26.347Z","updated_at":"2026-01-03T21:07:45.615Z","avatar_url":"https://github.com/cotyhamilton.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitops\n\n⚠️ wip\n\nExample of using packer, ansible, and terraform together to build a highly available k3s cluster on digitalocean\n\n---\n## Optional\nUse the helper setenv.sh script to set environment variables for packer and terraform.\n\nCopy the .env.example to .env and fill out the values\n\n```sh\nsource ./setenv.sh\n```\n\n---\n## Prerequisites\n- DigitalOcean Account with following resources (see `terraform/data.tf`)\n    - ssh key\n    - domain\n    - wildcard ssl cert for domain\n        - personal preference to use an external cert and configure the load balancer to terminate ssl connections instead of using cert manager with LE inside the cluster and risk hitting the rate limits, especially while testing and iterating.\n\n---\n## Usage\n```sh\n# build the image with packer, save the image id to use in terraform\npacker build packer\n\n# deploy cluster with terraform\ncd terraform\nterraform apply\n\n# print kubeconfig\nterraform output --raw kubeconfig\n\n# or save\nterraform output --raw kubeconfig \u003e ~/.kube/config\n\n# verify\nkubectl get nodes\n\n# install example apps\n\ncd ../apps\n\n# install a blank nginx webserver\n# update example-website.values.yaml with the correct host for ingress\nhelm install example-website example-website --values example-website.values.yaml\n\n# install a pod info webserver\n# udpate k8s-info.values.yaml with the correct host for ingress\nhelm install k8s-info k8s-info --values k8s-info.values.yaml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcotyhamilton%2Fgitops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcotyhamilton%2Fgitops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcotyhamilton%2Fgitops/lists"}