Skip to content

Instantly share code, notes, and snippets.

View parogui's full-sized avatar

Pablo Rodriguez Guillamon parogui

  • Red Hat
View GitHub Profile
@redmcg
redmcg / kubedf
Last active September 5, 2025 15:25
Bash script to show k8s PVC usage
#!/usr/bin/env bash
NODESAPI=/api/v1/nodes
function getNodes() {
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active December 6, 2025 21:36
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Last update: Nov 2025.

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl ecparam -genkey -name secp384r1 | openssl ec -aes256 -out rootCA.key