{"id":16818500,"url":"https://github.com/loshz/elasticipd","last_synced_at":"2025-04-11T02:42:55.786Z","repository":{"id":56520889,"uuid":"133136490","full_name":"loshz/elasticipd","owner":"loshz","description":"AWS Elastic IP association daemon","archived":false,"fork":false,"pushed_at":"2024-03-26T14:52:25.000Z","size":781,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-16T03:11:40.923Z","etag":null,"topics":["aws","ec2","elasticip","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loshz.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":"2018-05-12T10:37:14.000Z","updated_at":"2022-03-14T17:52:51.000Z","dependencies_parsed_at":"2024-03-26T15:51:10.819Z","dependency_job_id":"a9f61687-0bbb-4c01-8db3-a1591a2d0b98","html_url":"https://github.com/loshz/elasticipd","commit_stats":{"total_commits":40,"total_committers":4,"mean_commits":10.0,"dds":0.35,"last_synced_commit":"16f70f8c43e3a5311d55e18fb10c8d151e62be25"},"previous_names":["syscll/elasticipd","danbondd/elasticipd"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loshz%2Felasticipd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loshz%2Felasticipd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loshz%2Felasticipd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loshz%2Felasticipd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loshz","download_url":"https://codeload.github.com/loshz/elasticipd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239488487,"owners_count":19647217,"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":["aws","ec2","elasticip","k8s","kubernetes"],"created_at":"2024-10-13T10:50:17.200Z","updated_at":"2025-02-18T14:30:54.049Z","avatar_url":"https://github.com/loshz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elasticipd\n[![Build Status](https://github.com/loshz/elasticipd/workflows/ci/badge.svg)](https://github.com/loshz/elasticipd/actions) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![ghcr.io](https://img.shields.io/badge/container-ghcr.io-red)](https://github.com/users/loshz/packages/container/package/elasticipd)\n\nAs it is now common practice to run applications on top of a container-orchestration platforms, such as Kubernetes, there is no guarantee that a service will always run on the same host. This can cause problems when a service requiring a public IP address gets rescheduled.\n`elasticipd` automatically associates an [Elastic IP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) address to the AWS EC2 instance running this service. It is designed to run as a sidecar container alongisde a service that requires a public IP address.\n\n## Usage\nAs `elasticipd` is currently configured to use AWS [Instance Roles](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html), the host will need to have and EC2 Policy with at least the following actions: `DescribeInstances`, `DescribeInstanceAttribute`, `AssociateAddress` and `DisassociateAddress`.\n\nThe service is configured by setting the following command line flags:\n```\nUsage of elasticipd:\n  -elastic-ip string\n        Elastic IP address to associate\n  -interval string\n        Attempt association every interval (default \"30s\")\n  -port int\n        Local HTTP server port (default 8081)\n  -reassoc\n        Allow Elastic IP to be reassociated without failure (default true)\n  -region string\n        AWS region hosting the Elastic IP and EC2 instance\n  -retries int\n        Maximum number of association retries before fatally exiting (default 3)\n```\n\n### Kubernetes\nA simple multi-container Pod spec:\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  name: public-service\nspec:\n  containers:\n  - name: public-service\n    image: public-service\n  - name: elasticipd\n    image: ghcr.io/loshz/elasticipd:v2.3.0\n    command: [\"elasticipd\"]\n    args: [\n        \"-elastic-ip=\u003celastic_ip\u003e\",\n        \"-region=us-west-2\",\n        \"-interval=10s\"\n    ]\n    ports:\n    - containerPort: 8081\n      name: local-http\n    livenessProbe:\n      httpGet:\n        path: /healthz\n        port: local-http\n      initialDelaySeconds: 3\n      periodSeconds: 3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floshz%2Felasticipd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floshz%2Felasticipd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floshz%2Felasticipd/lists"}