kubectl -n kube-system delete pod/poke
kubectl -n kube-system apply -f - <<'EOF'
# see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#pod-v1-core
apiVersion: v1
kind: Pod
metadata:
name: poke
spec:
nodeSelector:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
import urllib3 | |
api_url = 'https://192.168.1.21:8006/api2/json' | |
username = 'root@pam' | |
password = 'PASSWORD' | |
node = 'pve' | |
vm_id = 105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// scrape https://uupdump.net/known.php?q=feature+update+server+operating+system+20348+amd64 | |
// NB there's a better way, using the API, e.g. https://api.uupdump.net/listid.php?search=feature+update+server+operating+system+20348+amd64 | |
// see https://github.com/uup-dump/json-api | |
// see https://github.com/uup-dump/website/blob/master/known.php | |
// see https://github.com/uup-dump/website/blob/master/get.php | |
// each scraped line is a tab separated string with 4 fields alike: | |
// "Feature update to Microsoft server operating system, version 21H2 (20348.643) amd64\tx64\t2022-04-12 17:04:01 UTC\tb8e204fd-4e2b-4722-95d7-aad633ad7379" | |
const updateIdEl = Array.prototype.find.call(document.querySelectorAll('th'), el => el.innerText == "Update ID"); | |
const buildsTableEl = updateIdEl.parentElement.parentElement.parentElement; | |
const builds = buildsTableEl.querySelector('tbody').innerText |
This gist is outdated. Instead, see the repo at https://github.com/rgl/rke2-vagrant.
Does not yet has support for Windows 2022.In the meantime, rke2 added support for Windows 2022.- See https://github.com/rgl/rke2-vagrant
root@pandora:~# kubectl get servers -o yaml
apiVersion: v1
items:
- apiVersion: metal.sidero.dev/v1alpha1
kind: Server
metadata:
creationTimestamp: "2021-07-16T05:05:21Z"
finalizers:
- storage.finalizers.server.k8s.io
This is how I tried to execute talosctl cluster create
in a Ubuntu 20.04 host.
Install ethtool
:
# apt-get install -y ethtool
# ethtool eth1 # with the virtio network interface type
Settings for eth1:
Supported ports: [ ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Find-OpenHandle([string]$Filter = '') { | |
# handle.exe returns all the open files grouped by process as: | |
# ------------------------------------------------------------------------------ | |
# System pid: 4 \<unable to open process> | |
# 720: Section \Win32kCrossSessionGlobals | |
# ------------------------------------------------------------------------------ | |
# svchost.exe pid: 1208 NT AUTHORITY\SYSTEM | |
# 198: File (R-D) C:\Windows\System32\en-US\svchost.exe.mui | |
# the first line has the following fields: | |
# svchost.exe pid: 1208 NT AUTHORITY\SYSTEM |
# see https://github.com/chocolatey/choco/issues/1310
Add-Type -AssemblyName System.Security
Get-ChildItem `
-Path "$env:ChocolateyInstall\.chocolatey" `
-Filter .arguments `
-Recurse `
| ForEach-Object {
$name = $_.Directory.BaseName
$data = [System.Text.Encoding]::UTF8.GetString(
NewerOlder