Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

DEPRECATED - cloudposse no longer uses fleet for scheduling (moved to k8s)

Notifications You must be signed in to change notification settings

cloudposse-archives/fleet-units

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fleet Unit Templates

This is a collection of Fleet unit files as m4 templates.

Background

Fleet units are a great way to bootstrap a cluster with backing services or more advanced cluster managers like Kubernetes. The problem with units is that they are not very re-usuable if you need to co-deploy N versions for different tennants. Using m4 we can generalize & parameterize fleet units to make them more re-usable.

Sample Usage

/usr/bin/m4 -DDOCKER_VOLUME={{/vol/replicated/assets/:/var/www/html}} \
            -DRSYNC_USERNAME={{nobody}} \
            -DRSYNC_PASSWORD={{super-secret}} \
            -DRSYNC_VOLUME={{/var/www/html/}} \
            -DRSYNC_NAME={{%i}} \
            -DRSYNC_READ_ONLY={{true}} \
            -DRSYNC_TIMEOUT={{60}} \
            -DRSYNC_MAX_CONNECTIONS={{10}} \
            -DFLEET_MACHINE_OF={{durable-storage}} \
            -DDNS_SERVICE_NAME={{rsync/rsyncd}} \
            -DDNS_SERVICE_ID={{assets/%m}} \
            -DDOCKER_NAME={{rsyncd_assets}} \
                /fleet-units/rsyncd.service.m4  > /fleet-units/rsyncd.service

Best Practices

  • Use Restart=always in [Service] declarations for services
  • Use EnvironmentFile=/etc/environment to access environment including $COREOS_PRIVATE_IPV4

About

DEPRECATED - cloudposse no longer uses fleet for scheduling (moved to k8s)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages