begleybrothers / ignite.chef Goto Github PK
View Code? Open in Web Editor NEWChef Library Cookbook to install Weaveworks Ingite
License: Other
Chef Library Cookbook to install Weaveworks Ingite
License: Other
Add resources:
ignite_clean
: Kill all running Firecracker micro-VM's and clean all VM images.ignite_clean_cni
: Remove all CNI network settings.Use case:
These resources can be run before the install recipes when the host machine is not a pristine environment. Example, developer laptop and desktop machines.
These are based on the scripts posted by @stealthybox here on Slack.
For posterity the scripts are:
~/Repos/ignite-scratch
❯ cat ignite-clean.sh
#!/usr/bin/env bash
set -x
set -o pipefailignite="${ignite:-"sudo ./bin/ignite"}"
docker="${docker:-"docker"}"
ctr="${ctr:-"sudo ctr"}"
iptables="${iptables:-"sudo iptables"}"${ignite} vm ls -q | xargs -n1 ${ignite} vm rm -f${docker} ps | grep ignite- | awk '{print $1}' | xargs ${docker} rm -f
# stop containerd tasks
sudo pkill -9 firecracker
# sudo pkill -9 containerd-shim; # harms other containers
${ctr} -n firecracker c ls -q | xargs ${ctr} -n firecracker c delete${ignite} vm ls -q | xargs -n1 ${ignite} vm rm -f
sudo dmsetup remove_all${iptables} -S -t nat \
| grep ignite \
| sed "s/^-A/${iptables} -t nat -D/" \
| bash -x
sudo rm /etc/cni/net.d/10-ignite.conflist
sudo ifconfig cni0 down
sudo ip link delete cni0
sudo ifconfig ignite0 down
sudo ip link delete ignite0
and
~/Repos/ignite-scratch
❯ cat iptables-clean-cni-ignite.sh
#!/usr/bin/env bash
set -o pipefailiptables="${iptables:-"sudo iptables"}"for t in filter nat mangle raw security; do
echo "# $t"
$iptables -S -t "$t" \
| grep -i -E 'cni|ignite|10\.42\.0|172\.18\.0' \
| tac \
| sed "s/^-N/$iptables -t $t -X/" \
| sed "s/^-A/$iptables -t $t -D/" \
| bash -x
done
When upstream resolves weaveworks/ignite/issues/546 we can remove this stub - even if we decide to support docker installation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.