This is a wrapper around LXC which can be used as a drop-in container runtime replacement for use by CRI-O.
For the installation of the runtime see INSTALL.md
For the installation and initialization of a kubernetes cluster see K8S.md
package main | |
import ( | |
"github.com/go-git/go-git/v5" | |
"github.com/go-git/go-git/v5/plumbing/object" | |
"io/ioutil" | |
"path/filepath" | |
"time" | |
) |
#!/bin/sh | |
# enable debug logging | |
set -x | |
# abort if subshell command exits non-zero | |
set -e | |
. $(dirname $(readlink -f $0))/utils.sh | |
CRIO_LXC_BUILD_DEPS="musl musl-tools libc6-dev pkg-config git wget make ca-certificates" | |
install_cni() { |
package main | |
import ( | |
"github.com/google/gopacket" | |
//"github.com/google/gopacket/layers" | |
"flag" | |
"fmt" | |
"github.com/google/gopacket/pcap" | |
) |
package main | |
import ( | |
qrcode "github.com/skip2/go-qrcode" | |
"io/ioutil" | |
"os" | |
) | |
func main() { | |
/* |
#!/bin/sh | |
# Save me too .git/hooks/prepare-commit-msg and make me executable | |
# Thanks goes to https://stackoverflow.com/questions/15015894/git-add-signed-off-by-line-using-format-signoff-not-working | |
NAME=$(git config user.name) | |
EMAIL=$(git config user.email) | |
if [ -z "$NAME" ]; then | |
echo "empty git config user.name" | |
exit 1 |
# use `csh -s /bin/bash` to change default shell to /bin/bash | |
# get back history as it should work | |
export SHELL_SESSION_HISTORY=0 | |
# silence warning that zsh is now the default shell | |
export BASH_SILENCE_DEPRECATION_WARNING=1 |
#!/bin/sh | |
echo "[truncate runtime logfiles]" | |
rm -rf /var/log/crio-lxc/* | |
touch /var/log/crio-lxc/crio-lxc.log | |
echo > /var/log/calico/cni/cni.log | |
dmesg -C | |
echo "------------------" | |
echo |
This is a wrapper around LXC which can be used as a drop-in container runtime replacement for use by CRI-O.
For the installation of the runtime see INSTALL.md
For the installation and initialization of a kubernetes cluster see K8S.md
# Note: This dropin only works with kubeadm and kubelet v1.11+ | |
[Service] | |
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf" | |
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" | |
# This is a file that "kubeadm init" and "kubeadm join" generate at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically | |
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env | |
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use | |
# the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file. | |
EnvironmentFile=-/etc/default/kubelet | |
ExecStart= |