Skip to content

Instantly share code, notes, and snippets.

View t-lo's full-sized avatar

Thilo Fromm t-lo

View GitHub Profile
#!/bin/bash
#
# Merge coreos-overlay and portage-stable submodules into scripts.
# From: https://x3ro.de/integrating-a-submodule-into-the-parent-repository/
#
# This commit contains the patch for scripts, ci-automation etc. to remove submodules.
git_ref_for_cherrypicking="c5b00016a13e1d4f7a52caae94c137572e3c0498"
@t-lo
t-lo / flatcar-on-firecracker.sh
Created November 9, 2021 10:59
Script to set up Flatcar to run on firecracker. Run in an empty directory to download all components, then run ./start-flatcar.sh to run Flatcar on Firecracker.
#!/bin/bash
set -eu
function get_firecracker() {
rm -f firecracker-v0.24.6-x86_64.tgz firectl-v0.1.0
rm -rf release-*/*
wget https://github.com/firecracker-microvm/firecracker/releases/download/v0.24.6/firecracker-v0.24.6-x86_64.tgz
wget https://firectl-release.s3.amazonaws.com/firectl-v0.1.0
@t-lo
t-lo / Booting-Flatcar-on-firecracker.md
Last active May 30, 2023 21:59
Booting Flatcar on firecracker

Step-by-step instructions to boot Flatcar on Firecracker.

Get Firecracker and firectl

Check for the latest versions on https://github.com/firecracker-microvm/firecracker/releases and https://github.com/firecracker-microvm/firectl/releases ; for our example we'll go with 0.24.6 and 0.1.0.

wget https://github.com/firecracker-microvm/firecracker/releases/download/v0.24.6/firecracker-v0.24.6-x86_64.tgz
wget https://firectl-release.s3.amazonaws.com/firectl-v0.1.0
tar xzf firecracker-v0.24.6-x86_64.tgz
mv release-*/* .
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
istio-injection: disabled
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata: