Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Distributing Cloud Foundry sidecars with buildpacks

Distributing Cloud Foundry sidecars with buildpacks

Until recently a running Cloud Foundry app container only ran and monitored a single process, but now we can run additional sidecar processes. In this deck we look at packaging the sidecar software in a buildpack.

Walk thru is at https://gist.github.com/drnic/28ba8d0dc8e91bfdc47e53916d6cdb56

Dr Nic Williams

June 19, 2019
Tweet

More Decks by Dr Nic Williams

Other Decks in Technology

Transcript

  1. Title Text
    Body Level One
    Body Level Two
    Body Level Three
    Body Level Four
    Body Level Five
    Distributing sidecars with
    Buildpacks
    CF CAB meeting June 2019
    Dr Nic Williams @drnic

    View full-size slide

  2. Sidecars
    ./app
    ./config-server -p 5555

    View full-size slide

  3. Sidecars
    ./app
    etcd grpc-proxy start
    etcd etcd etcd

    View full-size slide

  4. Sidecars
    nginx [--port 8080]
    ./app --port 8081

    View full-size slide

  5. via
    cf push
    ./app
    ./config-server -p 5555
    ./config-server uploaded by dev
    How to separate concerns?

    View full-size slide

  6. Who?
    ./app
    etcd grpc-proxy start
    etcd cli curated by etcd team
    Who to distribute etcd sidecar?

    View full-size slide

  7. Buildpack
    ./app
    etcd proxy
    etcd service team own etcd
    Distribute sidecar via buildpack Ɏ
    app team
    etcd service team

    View full-size slide

  8. etcdproxy
    sidecar
    buildpack
    command: start_etcdproxy.sh

    View full-size slide

  9. Install etcd cli
    New "singles" buildpack
    Walk thru
    @drnic
    Package etcd cli Ɲ
    $
    Run etcd proxy as sidecar
    ɑ
    Using CF Dev + local etcd server

    View full-size slide