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| #!/usr/bin/env sh | |
| { | |
| sudo dnf update -y | |
| sudo dnf groupinstall "Development Tools" -y | |
| sudo dnf install zsh -y | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| } | |
| { | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo >> ~/.zshrc |
| # Enable operating system container-related features (requires restart) | |
| Enable-WindowsOptionalFeature -Online -FeatureName containers -All | |
| Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All | |
| # Download and extract Docker binaries | |
| $dockerBinariesIndex = (Invoke-WebRequest "https://download.docker.com/win/static/stable/x86_64") | |
| $dockerLatestVersion = ($dockerBinariesIndex.Links[$dockerBinariesIndex.Links.Count - 1]).innerText | |
| Invoke-WebRequest "https://download.docker.com/win/static/stable/x86_64/$dockerLatestVersion" -OutFile "$Env:TEMP\$dockerLatestVersion" | |
| Expand-Archive "$Env:TEMP\$dockerLatestVersion" -DestinationPath $Env:ProgramFiles -Force | |
| Remove-Item "$Env:TEMP\$dockerLatestVersion" |
| { | |
| "$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 shRun 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.derI hereby claim:
To claim this, I am signing this object:
| alias gbrda='git branch | gsed "s/^[^*]/git branch -D/e"' |