apt install lm-sensors
open file
nano /usr/share/perl5/PVE/API2/Nodes.pm
$ kubectl apply -f - <<EOF
<-- insert YAML content here -->
EOF
OR
$ cat file.yaml | kubectl apply -f -
# Tested with nut 2.7.4_2 from homebrew | |
# Configure OSX Energy Saver UPS tab for the UPS | |
#install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#install network ups tools | |
brew install nut | |
# Set permissions on state dirs to allow running as daemon | |
sudo mkdir -p /usr/local/var/state/ups/ |
#!/bin/bash | |
# curl -s https://gist.githubusercontent.com/ilude/457f2ef2e59d2bff8bb88b976464bb91/raw/cluster_create_setup.sh?$(date +%s) > ~/bin/setup_cluster.sh; chmod +x ~/bin/setup_cluster.sh; setup_cluster.sh | |
echo "begin cluster_create_setup.sh" | |
export CREATE_TEMPLATE=1 #false | |
while test $# -gt 0; do | |
case "$1" in | |
--template) | |
export CREATE_TEMPLATE=0 #true |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from decimal import Decimal | |
from datetime import datetime | |
try: | |
import requests | |
import simplejson as json |
# Please follow https://gist.github.com/MakiseKurisu/3a44918bccf3383c0b5ccf362f429c8b first to set up rootfs | |
# Assuming rootfs on /dev/sdb2, and adding /dev/sda to the RAID-1 configuration | |
# Remove existing Proxmox installation and LVM Thin storage | |
pvesm remove local-lvm | |
vgremove pve -y | |
# Set up partition table | |
(echo g; echo n; echo ''; echo ''; echo '+512M'; echo t; echo 1; echo n; echo ''; echo ''; echo ''; echo w) | fdisk /dev/sda |