Skip to content

monder/alb-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alb-register

Go Report Card license GitHub tag

An ACI that register current instance in AWS Application Load Balancer

Images

Signed ACIs for linux-arm64 are available at monder.cc/alb-register with versions matching git tags.

Usage

rkt run \
   --insecure-options=image \
   docker://app \
   monder.cc/alb-register:v0.1.0 \
   --
   arn:aws:elasticloadbalancing:eu-west-1:123456789:targetgroup/name1/1234567890
   --port=444
   arn:aws:elasticloadbalancing:eu-west-1:123456789:targetgroup/name2/1234567890
   arn:aws:elasticloadbalancing:eu-west-1:123456789:targetgroup/name3/1234567890
   --port=33

The script above will launch app and a sidekick in the same pod. The sidekick will register current instance in ALB in 3 target groups:

  • arn:aws:elasticloadbalancing:eu-west-1:123456789:targetgroup/name1/1234567890 on port 444.
  • arn:aws:elasticloadbalancing:eu-west-1:123456789:targetgroup/name2/1234567890 on default port for that target group.
  • arn:aws:elasticloadbalancing:eu-west-1:123456789:targetgroup/name3/1234567890 on port 33.

License

MIT