Git Product home page Git Product logo

ignition's Introduction

ignition

This container hosts an http server that will generate ignition files for a Fedora CoreOS deployment.

Features

  • Hostname is generated based on PHP code written in customizations file
  • SSH access is granted to the SSH key provided. User is core
  • SSH access can also be granted using CA server to sign the SSH key
  • A second drive is configured to store the container images and ephemeral storage
  • Zincati can be configured to point to a fleet lock server so nodes can be drained before rebooting and only 1 node can reboot at a time. https://github.com/JasonN3/kubernetes_reboot_manager is available as a fleet lock server that will run within kubernetes
  • Some customizations to improve Kubernetes runtime
  • Automatic installation of kubeadm and kubelet

Usage

  1. As root, launch the container on a system
podman -d --network host --volume ignition:/var/www/html/fcos/configs/customizations ghcr.io/jasonn3/ignition:latest
  1. Edit the cusomizations
vi $(podman volume mount ignition)/customizations.php

There is an iPXE script available at http://_your_server_/fcos/fcos.ipxe.php. You can configure DHCP to boot in to iPXE and chain to the script or you can build a custom iPXE ISO with an embedded script.
http://_your_server_/boot/ipxe.iso and http://_your_server_/boot/undionly.kpxe are also available as boot options. They will still use DHCP to find the initial ipxe script.

To build a custom iPXE ISO, please follow iPXE's instructions available here. Whether you are building your own image or using a pre-built image, make sure that HTTPS is an enabled protocol. HTTPS is used when downloading the images from Fedora Project's website.

Enabling HTTPS before building

This command can be run after cd ipxe/src and before running make

sed -i 's/\#undef\sDOWNLOAD_PROTO_HTTPS/\#define DOWNLOAD_PROTO_HTTPS/' config/general.h

Embedding an iPXE script

cat << EOF > script.ipxe
#!ipxe

dhcp
chain http://_your_server_/fcos/fcos.ipxe.php
EOF

make bin/ipxe.iso EMBED=script.ipxe

Once the OS is deployed. Kubernetes can be installed by following the instructions available here

ignition's People

Contributors

jasonn3 avatar

Watchers

 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.