Central repository for testing and managing adminibar clusters on top of CoreOS.
Expects the awscli to be installed
- run
make launch
to launch cloud formation - add one of the ec2 ips to env eg:
export FLEETCTL_TUNNEL=79.125.36.12
- add aws private key to ssh agent:
ssh-add ~/.ssh/id_rsa
- on the cluster make sure to enable all tcp traffic between instances in the security groups
Single machine CoreOS setup that hosted by Vultr (https://my.vultr.com) that holds:
- private docker registry
- (future) ipxe server?
- (future) build server?
#!ipxe
set base-url http://beta.release.core-os.net/amd64-usr/current
kernel ${base-url}/coreos_production_pxe.vmlinuz sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC891gFIU2UttRxPfVAXupJCKQCrnS2btQYWh3miMWNN9Iu5I6lzblwTVAq9eatvMyld8bdVG/BLZDLNDzN99g0gjK4xwwJN3Tc6DgX2xKCVoiN5YYwaiG4I30ugKesiOWmJKFoIu3RXjIfx0F5nat+CNlhxXmdF6ozWEFkaq1Pr29xmJzmd5kE8ZhPaqYNzp7dpJUtVE7oCuKoX4aFyKCAg/mdJtLYco8yYvIT+77DAAg3S/Jfev2rHOyVCimsHTOPVqMaLW2RK+nWtI4uNGE9aJFxqMV4gH70UmZR6DFNYWmcy11bGALBJgmrgMtLnUVoTmcMA8+UbaWnO0eBntsT advanderveer@Ads-MacBook-Pro.local"
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
- Install to disk using the following user data (cloud config)
#cloud-config
users:
- name: core
coreos-ssh-import-github: advanderveer
curl http://paste.ee/r/QVKWp > /tmp/userdata && sudo coreos-install -d /dev/vda -c /tmp/userdata
- Create custom configuration
(/etc/systemd/system/registry/conf.yml)
prod:
loglevel: warn
storage: s3
s3_access_key: AKIAJXBRB2Y4THKCUCVQ
s3_secret_key: 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
s3_bucket: stepshape-registry
boto_bucket: stepshape-registry
- Install systemd unit/service
(/etc/systemd/system/registry.service)
[Unit]
Description=Docker Registry
Requires=docker.service
After=docker.service
[Service]
ExecStart=/usr/bin/docker run -p 5000:5000 -v /etc/systemd/system/registry:/registry-conf -e SETTINGS_FLAVOR=prod -e DOCKER_REGISTRY_CONFIG=/registry-conf/conf.yml registry
[Install]
WantedBy=multi-user.target
- install and start:
sudo systemctl enable /etc/systemd/system/registry.service
sudo systemctl start registry.service