| Node | Address | Peer |
|---|---|---|
| wvr-a | 10.0.11.110 |
wvr-b |
| wvr-a | 10.0.11.131 |
wvr-c |
| wvr-b | 10.0.11.111 |
wvr-a |
| wvr-b | 10.0.11.120 |
wvr-c |
| wvr-c | 10.0.11.121 |
wvr-b |
| wvr-c | 10.0.11.130 |
wvr-a |
So, I ended up making a custom resource specifically for the ApplySet, but actually getting it to work is tricky.
So, unlike with ConfigMaps and Secrets, kubectl cannot create the custom resource.
This file contains hidden or 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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "grafana", | |
| "uid": "-- Grafana --" | |
| }, | |
| "enable": true, |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| while IFS= read -r -d '' file; do | |
| if jxlinfo "$file" | grep -iq lossless; then | |
| echo "Image $file is lossless" | |
| cjxl --container=1 "$file" "$file" | |
| echo "Finished conversion" | |
| fi | |
| done < <(find . -type f -iname "*.jxl" -size +20M -print0) |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| while IFS= read -r -d '' file; do | |
| echo "Processing: $file" | |
| magick mogrify -format jxl "$file" | |
| out="${file%.*}.jxl" | |
| if [[ "${file,,}" == *".nef" ]]; then |
This file contains hidden or 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
| func DeduplicateSlice[T cmp.Ordered](in []T) []T { | |
| slices.Sort(in) | |
| out := in[:0] | |
| for i := 0; i < len(in); i++ { | |
| var n int | |
| for j := i + 1; j < len(in); j++ { | |
| if in[i] != in[j] { | |
| break |
The OS SSD died on my kubernetes/rook/ceph cluster which left the cluster with catastrophic monitor store loss. The process for recovering from just OSDs is not well documented, especially not when combined with rook and cephfs with multiple data pools. The last of which may never have been done before.
I am writing this document after the fact, so I may be missing some things, or they may be out of order. I will try my best though as I think it could be helpful.
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "path" | |
| "github.com/aws/aws-sdk-go/aws" |
This file contains hidden or 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
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_VICTORIAMETRICS", | |
| "label": "VictoriaMetrics", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "prometheus", | |
| "pluginName": "Prometheus" | |
| } |
This file contains hidden or 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
| // You can edit this code! | |
| // Click here and start typing. | |
| package main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/base64" | |
| "fmt" | |
| "strings" | |
| ) |
NewerOlder