Code Monkey home page Code Monkey logo

tectonic-torcx's Introduction

tectonic-torcx

A self-contained node-helper to automatically operate torcx on Tectonic machines.

Background

Tectonic needs a specific version of Docker to be installed. Since Docker on Container Linux is managed by torcx, this tool suite keeps the torcx configuration in sync with the cluster environment.

The tool ensures that the correct verison of Docker is in the torcx store for any potential OS versions. In other words, it populates torcx stores for Current and Next OS versions.

Details

This software handles two main cases:

  1. A new node is added to the cluster and needs to be configured (bootstrap)
  2. An existing node is ready to reboot to a new OS version (pre-reboot hook)

1: Bootstrap

  1. Trigger an OS update (optional, default true)
  2. Determine the Kubelet version to install
  3. Determine the correct Docker version
  4. Fetch and configure Docker torcx addons and profile
  5. Set the correct kubelet version
  6. Trigger node reboot (if needed by updates)

2: OS upgrade on a node

  1. Watch for pre-reboot annotation
  2. Determine new OS version
  3. Determine docker version
  4. Fetch correct docker torcx addon
  5. GC unneeded images
  6. Add success annotation

In both cases, it can also determine/update kubelet based on cluster status.

Build

make all to build for all supported architectures.

Execute

This helper is normally run within a container:

docker run \
    --tmpfs /tmp \
    -v /usr/share:/usr/share:ro \
    -v /usr/lib/os-release:/usr/lib/os-release:ro \
    -v /usr/share/ca-certificates/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro \
    -v /var/lib/torcx:/var/lib/torcx \
    -v /run/metadata:/run/metadata:ro \
    -v /run/systemd:/run/systemd \
    -v /run/torcx:/run/torcx:ro \
    -v /var/run/dbus:/var/run/dbus \
    -v /etc/coreos:/etc/coreos:ro \
    -v /etc/torcx:/etc/torcx \
    -v /etc/kubernetes:/etc/kubernetes \
    -v /dev/log:/dev/log \
    quay.io/coreos/tectonic-torcx:latest-dev \
    --verbose=debug

See also

tectonic-torcx's People

Contributors

dvrkps avatar lucab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.