RancherOS metadata provider for AWS EC2
1.7K
Intended to use with Autoscaling.
#cloud-config
rancher:
services:
aws-metadata:
image: deadroot/rancheros-ec2-metadata
command: -m -t 'com.' -l 'com.environment:ENVIRONMENT'
privileged: true
labels:
io.rancher.os.after: network
io.rancher.os.scope: system
io.rancher.os.reloadconfig: 'true'
io.rancher.os.createonly: 'false'
volumes:
- /usr/bin/ros:/bin/ros:ro
- /var/lib/rancher/conf:/var/lib/rancher/conf:rw
-m - put AWS metadata to the Rancher environment vars. Metadata supported:
-t [prefix] - load EC2 instance tags starting with prefix and add them as labels to docker daemon options-l label:variablename - add variablename variable to RancherOS environment that contains value of label tag. May be used multiple times-l label:config.path - add value of label tag to config.path RancherOS config path. Works when config.path has . inside.Content type
Image
Digest
Size
27.1 MB
Last updated
about 10 years ago
docker pull deadroot/rancheros-ec2-metadata