Code Monkey home page Code Monkey logo

k0s-nix's Introduction

k0s-nix Flake

This repository contains a Nix Flake which provides the necessary utilities to use k0s inside of a NixOS system.

Status - EXPERIMENTAL

The implementation is in its early phase. It is possible to use and make work (with a few manual twists) for early inspection.

Contributions

Both contributions and forks are welcome, also if this should ever reach a state which could be integrated upstream into Nixpkgs then I would happy archive this Flake for it.

Usage

Build the test system configuration

nix build .#nixosConfigurations.test.config.system.build.toplevel

Inspect the result in ./result.

Token handling to join the cluster

k0s uses a token to join the cluster. The token has to be placed into /etc/k0s/k0stoken (configurable via services.k0s.tokenFile), otherwise the service will not start.

After the join the content is not needed anymore an the file can be emptied.

Providing the token has to be done either manually or by your favorite automation tooling.

Known limitations

  • k0s is currently included as a binary. It would be better to replicate the build process so that it would be built from sources.

Development and alternatives

Check out the folder docs. It contains further notes about thoughts and internals.

Credit

Contact

Pointers

Projects and Documentation

Other attempts to bring k0s to NixOS

k0s-nix's People

Contributors

johbo avatar otavio 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.