{"id":36530898,"url":"https://github.com/taboola/consul2calico","last_synced_at":"2026-01-12T03:01:15.908Z","repository":{"id":45132042,"uuid":"437926636","full_name":"taboola/consul2calico","owner":"taboola","description":"Sync Consul registry to Calico GlobalNetworkSet","archived":false,"fork":false,"pushed_at":"2022-01-06T10:43:43.000Z","size":414,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-06-19T06:46:22.106Z","etag":null,"topics":["calico","consul","networkpolicy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/taboola.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}},"created_at":"2021-12-13T15:31:45.000Z","updated_at":"2024-03-27T22:23:54.000Z","dependencies_parsed_at":"2022-09-26T21:40:39.512Z","dependency_job_id":null,"html_url":"https://github.com/taboola/consul2calico","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/taboola/consul2calico","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taboola%2Fconsul2calico","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taboola%2Fconsul2calico/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taboola%2Fconsul2calico/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taboola%2Fconsul2calico/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taboola","download_url":"https://codeload.github.com/taboola/consul2calico/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taboola%2Fconsul2calico/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["calico","consul","networkpolicy"],"created_at":"2026-01-12T03:00:46.813Z","updated_at":"2026-01-12T03:01:15.892Z","avatar_url":"https://github.com/taboola.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/taboola/consul2calico)](https://goreportcard.com/report/github.com/taboola/consul2calico)\n\n# Consul Calico Sync\n\n\u003ccenter\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/taboola/consul2calico/196fababb3d390a51814a7b0bb76a8f4b977e3f7/docs/design/high-lvl.svg\" width=\"800\" height=\"600\"\u003e\n\u003c/center\u003e\n\n## Overview\n\nThis project will sync/configure calico network policies based on consul KV state.\n\nIt will allow ingress/egress traffic from nodes registered in consul to deployments running on kubernetes .\n\nWhenever a node is added to the Hostgroup / rebuilt / changes ip , this project will dynamically change the corresponding calico GlobalNetworkSet.\n\n\n## Getting Started Running with Helm\n\n1. Create ETCD secret: \n\n    ``` bash\n    kubectl create secret generic etcd-cert \\\n    --from-file=etcd-ca.crt=./etcd-ca.crt.txt \\\n    --from-file=etcd.crt=./etcd.crt.txt \\\n    --from-file=etcd.key=./etcd.key.txt \n    ```\n\n2. Build docker image :\n    \n    ``` bash\n    docker build -t consul-calico-sync:0.0.1 .\n    ```\n\n3. Push to local repository :\n\n    ``` bash\n    docker push  http://local-repo:8080/consul-calico-sync:0.0.1 .\n    ```\n\n4. Change image in values.yaml\n\n    ``` bash\n    # The name (and tag) of the Docker image for consul2calico sync.\n    image:\n    repository: http://local-repo:8080/consul-calico-sync\n    pullPolicy: Always\n    tag: 0.0.1\n    ```\n\n5. Install chart \n\n    ``` bash\n    helm install -n consul-calico-sync -c ./charts/ --namespace namespace\n    ```\n\n\n## How to run tests :\n\nDefaults configured for tests :\n    ```\n    CALICO_SYNC_INTERVAL=2s\n    CALICO_REMOVE_GRACE_TIME=30m\n    ```\n\n- With logs :\n    ``` bash\n    go test  ./...\n    ```\n\n- Without logs :\n    ``` bash\n    go test  ./... -v\n    ```\n\n\n## Future releases\n\n- Add support for  Kubernetes API datastore . (Currently this project support Calico deployments with etcd as datastore)\n- Add support for consul TLS .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaboola%2Fconsul2calico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaboola%2Fconsul2calico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaboola%2Fconsul2calico/lists"}