Giter Club home page Giter Club logo

k3os-hcloud's Introduction

What?

Run k3os on Hetzner Cloud

Why?

Hetzner Cloud is very good value to run test setups, and I love the simplicity and power of k3os. Unfortunatelly right now there is no way to upload your own ISO image or prepared disk image (you would have to ask the support every time). Storing the snapshot itself costs less than 0.02โ‚ฌ a month.

How?

Execute run-all.sh or do the same manually:

  • With the provided user-data file you are going to launch an ubuntu VM
hcloud server create --image ubuntu-18.04 --type cx11 --name k3os-install --user-data-from-file kexec-k3os.userdata
  • This VM will automatically install kexec tools, download k3os kernel+initrd and start the installer with kexec. This will take a few minutes!
  • The installer will ovewrite the disk with k3os, and insert a small config to use the hetzner user-data provider, then shutdown the VM
  • Once the VM is shut down, you take a snapshot - this is the source image for all your k3os VMs
hcloud server create-image --description k3os_install --type snapshot k3os-install
  • Now you can delete the installer VM
hcloud server delete k3os-install
  • Launch k3os VMs from that snapshot, as many as you like.
IMGNAME=$(hcloud image list -o columns=id,description | grep k3os_install | awk '{print $1}')
hcloud server create --image $IMGNAME --type cx11 --name k3os-1 --user-data-from-file k3os-master.userdata

Alternatives?

There is a packer provider for hetzner cloud that also creates customized disk snapshots as a bootable image source.

k3os-hcloud's People

Contributors

lotharbach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mysticaltech

k3os-hcloud's Issues

Very smart

Wow, very smart way of installing k3os, any tips or tools for k3s?

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.