Display messages in Kubernetes via pod names.
Creates pods whose names spell out your message. View with kubectl get pods or in k9s to see your message displayed as a list of pods.
- Multi-line messages (newlines create separate pods)
- Header/footer framing with decorative zeros
- Word-boundary splitting
- k9s-compatible (58 char max per pod)
- Optional "crashloop" intensity for visual effects in k9s
# One-liner install
kubectl apply -f https://motd.howcoldismy.beer/install.yaml# Install the kubectl plugin
curl -Lo ~/.local/bin/kubectl-motd https://raw.githubusercontent.com/robindiddams/motd-operator/main/hack/kubectl-motd
chmod +x ~/.local/bin/kubectl-motd
# Set a message
kubectl motd Hello World- Go 1.24+
- kubectl
- Access to a Kubernetes cluster
make installmake runkubectl apply -f config/samples/
# or use the kubectl plugin
kubectl motd Hello Worldkubectl delete motd --all
make uninstallInstall the kubectl motd plugin for easy message updates:
# Install
curl -Lo ~/.local/bin/kubectl-motd https://raw.githubusercontent.com/robindiddams/motd-operator/main/hack/kubectl-motd
chmod +x ~/.local/bin/kubectl-motd
# Usage
kubectl motd Hello World # Auto-detects existing Motd
kubectl motd -n my-namespace Hello World # Specific namespace
echo -e "Line 1\nLine 2" | kubectl motd # Multi-line from stdin
kubectl motd --help # Show helpapiVersion: motd.howcoldismy.beer/v1alpha1
kind: Motd
metadata:
name: my-message
spec:
message: "Hello World"
intensity: "" # "crashloop" makes pods crash (red in k9s)Messages are encoded as pod names:
00-00-00-00-00-00-00-message-of-the-day-00-00-00-00-00-00 (header)
01-hello-world (message)
02-second-line-here
99-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 (footer)
- Line numbers start at 01 (00 is header, 99 is footer)
- Words stay intact across pods
- Each pod max 58 chars (k9s display limit)
# Build and push
docker build -t ghcr.io/robindiddams/motd-operator:latest .
docker push ghcr.io/robindiddams/motd-operator:latest
# Generate install.yaml
make build-installer IMG=ghcr.io/robindiddams/motd-operator:latest
# Deploy to cluster
kubectl apply -f dist/install.yamlApache 2.0
