Helpful utilities
Handy scripts and shell snippets to make your life easier when working with Edera. Nothing fancy—just stuff that works.
Apply RuntimeClass without a YAML file
edera_k8s_apply_runtimeclass() {
cat <<EOF | kubectl apply -f -
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: edera
handler: edera
EOF
}
Quick check: are all of the Edera daemons active?
On your node run:
systemctl list-units --type=service | grep protect
Expected outcome:
protect-cri.service loaded active running Edera Protect CRI
protect-daemon.service loaded active running Edera Protect Daemon
protect-network.service loaded active running Edera Protect Networking Daemon
protect-orchestrator.service loaded active running Edera Protect Orchestrator Daemon
protect-preinit.service loaded active exited Edera Protect Pre-Initialization
protect-storage.service loaded active running Edera Protect Storage Daemon
SSH into a Tailscale node
This is a helpful script if you are using Tailscale to ssh
edera_tailscale_ssh_to_node() {
NODE_NAME=$(kubectl get nodes --no-headers | awk '{print $1}' | cut -d'.' -f1)
if [[ -n "$NODE_NAME" ]]; then
ssh root@"$NODE_NAME"
else
echo "No nodes found or unable to extract the node name."
fi
}
More tools coming soon
We’re collecting common tools and scripts here. Have one to contribute? Let us know.
Last updated on