{"id":24542755,"url":"https://github.com/andrew-the-drawer/flux-local","last_synced_at":"2025-03-16T06:44:46.385Z","repository":{"id":272279554,"uuid":"916062430","full_name":"andrew-the-drawer/flux-local","owner":"andrew-the-drawer","description":"To experiment with GitOps (FluxCD, ArgoCD) and K8s local","archived":false,"fork":false,"pushed_at":"2025-01-31T11:10:08.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T11:25:18.197Z","etag":null,"topics":["argocd","fluxcd","gitops","k8s","kind","kubernetes"],"latest_commit_sha":null,"homepage":"","language":null,"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/andrew-the-drawer.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":"2025-01-13T11:38:21.000Z","updated_at":"2025-01-31T11:10:11.000Z","dependencies_parsed_at":"2025-01-13T12:42:50.505Z","dependency_job_id":"5171e129-4698-4a76-bc55-e1a7f6e706ed","html_url":"https://github.com/andrew-the-drawer/flux-local","commit_stats":null,"previous_names":["andrew-the-drawer/flux-local"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-the-drawer%2Fflux-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-the-drawer%2Fflux-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-the-drawer%2Fflux-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrew-the-drawer%2Fflux-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrew-the-drawer","download_url":"https://codeload.github.com/andrew-the-drawer/flux-local/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835933,"owners_count":20355611,"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":["argocd","fluxcd","gitops","k8s","kind","kubernetes"],"created_at":"2025-01-22T19:17:37.182Z","updated_at":"2025-03-16T06:44:46.380Z","avatar_url":"https://github.com/andrew-the-drawer.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experimentation with Flux\n\n- Flux: https://fluxcd.io/flux/concepts/\n- Capacitor: https://github.com/gimlet-io/capacitor\n\n## PostgreSQL\n\nWe can deploy postgreSQL cluster with [zalando-operator](https://github.com/zalando/postgres-operator)\n\n```bash\nkind create cluster --name=trung\n```\n\nNote: Sample cluster config is in [k8s-local](https://github.com/andrew-the-drawer/k8s-local/blob/main/kind/cluster.yml)\n\nWe might need to deploy LB with [cloud-provider-kind](https://github.com/kubernetes-sigs/cloud-provider-kind)\n\n```bash\nsudo cloud-provider-kind\n```\n\nThen we deploy Flux to the cluster:\n\n```bash\nflux --context=kind-trung bootstrap git \\\n    --url=ssh://git@\u003chost\u003e/\u003corg\u003e/\u003crepository\u003e \\\n    --branch=main \\\n    --private-key-file=\u003cpath/to/private.key\u003e \\\n    --path trung\n```\n\nPort-forward the `trung-pooler` service (in the `default` namespace) to access to PostgreSQL database\n\n```bash\nkubectl --context=kind-trung port-forward svc/trung-pooler 54321:5432\n```\n\nand access via `postgresql://localhost:54321`\n\n(For the user name and password, please check the K8s cluster secrets in the `default` namepsace)\n\nTo create more cluster via `postgres-operator-ui`, port-forward the service to access it:\n\n```bash\nkubectl --context=kind-trung port-forward svc/postgres-operator-ui 8081:80\n```\n\nand access via http://localhost:8081\n\n# Thanos stack via kube-prometheus\n\nhttps://github.com/prometheus-operator/kube-prometheus\n\nCan expose grafana service","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrew-the-drawer%2Fflux-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrew-the-drawer%2Fflux-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrew-the-drawer%2Fflux-local/lists"}