This should be run on all cluster nodes:
(
sudo ufw allow 9100
sudo userdel -rf prometheus
rm -f setup-node-exporter.sh
cat <<EOF > setup-node-exporter.sh
#!/usr/bin/env sh
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Edson Samuel Jr.", | |
"label": "Technology Analyst", | |
"image": "", | |
"email": "[email protected]", | |
"phone": "+5581986434064", | |
"url": "https://mstred.net", | |
"summary": "", |
This should be run on all cluster nodes:
(
sudo ufw allow 9100
sudo userdel -rf prometheus
rm -f setup-node-exporter.sh
cat <<EOF > setup-node-exporter.sh
#!/usr/bin/env sh
Run the setup scripts below on all cluster nodes:
cat <<EOF > setup-docker.sh
#!/usr/bin/env sh
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
# I had to go back and remove CNI bridge and loopback config files to enable communication through Weave Net
sudo mv /etc/cni/net.d/10-bridge.conf /etc/cni/net.d/99-loopback.conf ~
# sudo mv ~/10-bridge.conf ~/99-loopback.conf /etc/cni/net.d
# see https://github.com/weaveworks/weave/issues/3960
# cloud.weave.works was shut down so we need to download the manifest file straight from their repository release url
wget https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml
cat <<EOF > config.yaml | |
--- | |
apiVersion: kubeadm.k8s.io/v1beta2 | |
kind: ClusterConfiguration | |
networking: | |
podSubnet: 10.244.0.0/16 | |
apiServer: | |
extraArgs: | |
service-node-port-range: 8000-31274 | |
EOF |
This procedure is required in order to use VirtualBox in a Fedora installation from a machine using SecureBoot.
It sucks, though... but, this is it. 🤷♂️
# generate MOK (machine owned key)
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=$(whoami)/"
# import MOK into SecureBoot
sudo mokutil --import MOK.der
I hereby claim:
To claim this, I am signing this object:
alias gbrda='git branch | gsed "s/^[^*]/git branch -D/e"' |
apk add --update alpine-sdk cmake libxml2-dev libxslt-dev |
- Boot the computer using the Windows 7/8/8.1/10 installation media. | |
- On the first screen, press Shift+F10 to bring up the command prompt. | |
- Run the following commands at the command prompt. | |
diskpart | |
list disk | |
select disk # Note: select the disk where you want to add the EFI System partition. | |
list partition | |
select partition # Note: select the Windows OS partition (# number) or your data partition. | |
shrink desired=100 |