This is insane
You can learn Kubernetes troubleshooting by playing a series of games.
- Each game is one incident
- run commands
- check logs
- check dashboard
- diagnose the issue
- provide a fix
- move on to the next problem
It's called snowOps.
No signups, no payment, just free.
Came across this on Reddit, not a paid post.
Go check it out, link in the comment:
In an interview, I was asked to design an AI agent for Kubernetes incident response.
I started with three goals:
- Reduce noise. Filter known non-actionable alerts before they wake someone up.
- Reduce MTTR. The agent does the repeat work (events, logs, metrics, runbooks) and hands over a diagnosis.
- Auto-resolve simple, low-risk issues. Everything else needs human approval.
>> Step 1: The alert
Prometheus Alertmanager fires the alert. Email and PagerDuty stay as they are. The agent is an addition, not a replacement.
>> Step 2: Getting the alert to the agent
SNS sends the alert to SQS for buffering, retries and a dead letter queue. I add deduplication so one incident does not start 50 runs, and idempotency because SQS can deliver twice.
>> Step 3: Triggering the agent
A Lambda checks the alert comes from an approved source and environment. If not, it stops. Because of Lambda time limits, it stays a thin trigger and the agent workflow runs on AgentCore.
>> Step 4: Giving the agent tools
Three read-only MCP servers: EKS, Grafana, CloudWatch. Every call goes through a gateway with OIDC auth. The agent never holds cluster credentials.
>> Step 5: Investigation
The agent reads the environment, cluster and service from the alert. Then it:
- Pulls events and log tails from EKS, including previous container logs for crash loops.
- Checks Grafana metrics 10 minutes before and after the alert.
- Checks CloudWatch only if it needs more signals.
>> Step 6: Knowledge base
A Bedrock knowledge base holds troubleshooting playbooks and a rulebook mapping events to recommendations. No matching playbook? The agent says so instead of guessing.
>> Step 7: Deciding the action
- Known noise is suppressed by rules.
- Alerts needing a human go to Slack and PagerDuty with the diagnosis.
- A small list of known-safe actions runs automatically.
- Everything else waits for approval.
>> Step 8: Guardrails
- No deleting deployments, StatefulSets or secrets.
- Pod deletion only when healthy replicas exist.
- Approved environments and triggers only.
- Logs are untrusted input. They are data, never instructions.
>> Step 9: Cost and execution limits
- A small model triages first. Only unclear incidents reach a larger model.
- Token budget per run, plus hourly and daily limits.
- Trimmed tool output: error lines, metric summaries, top 3 knowledge base results.
- Max 3 retries per tool call, never on permission errors.
- 10 seconds per tool call, 5 minutes per investigation, max 10 tool calls.
The SQS visibility timeout must exceed the run limit, or a second agent starts mid-investigation. When any limit hits, the agent stops, shares what it found as incomplete, and notifies a human.
>> Step 10: Proving it works
I replay past incidents and compare the diagnosis with the human root cause. I track accuracy, pages avoided, time to diagnosis and cost per investigation. If accuracy is low, the agent stays advisory.
Building the agent is the easy part.
Deciding what it must never do is the real engineering challenge.
I watched this video of PM Modi ask in his trademark patronising-cringe style
"how can our daughters speak such language?"
Sir, they are not 'your' daughters.
People are not your 'children'.
You are not the father of this nation.
Your job is governance and you are failing.
I have had many embarassing moments as a young adult, but nearly nothing as an adult, except this person as the leader of my country. Any true empathetic educated leader would listen to the students, overhaul the medical education exams, improve the curriculum, stop spreading pseudoscience into schools, colleges and institutes, remove the incompetent minister, compensate families of students who died by suicide. Seriously, no one really cares about these silly social media metrics, dumdums.
Sachin Tendulkar has finally spoken on the student protests, and I had to read his note twice: once as a fan and once as an editor. The fan was disappointed, but the editor realised that this was a textbook specimen of the kind of writing that George Orwell warned about in his essay “Politics and the English Language”.
The essay was written in 1946, but it might well have been written yesterday about this very statement. Orwell’s point was that when people want to hide something, they stop using plain words and reach instead for the passive voice, for fog, for phrases that sound like they mean something while meaning nothing at all.
Consider the line, where students are disappointed that “their hard work hasn’t been rewarded”. Rewarded by whom, and denied by whom? There was a paper leak, which means somebody leaked it, some institution failed to prevent it, and an official presides over that institution. Yet none of them appears in the statement, and neither does the leak itself. A crime with identifiable custodians has been turned into something that simply happened to lakhs of children through nobody's fault.
Then comes the list of those who must set things right: parents, teachers, friends, relatives, schools and administrators. If you read that list again slowly, you will notice it covers everyone in India except the people the students are actually protesting against, which is to say the NTA, the education ministry and the government. When everyone is responsible, nobody is, and that is not an accident of drafting. It was engineered to deflect blame.
There is also a quiet sentence buried in the middle. “A society which prioritises outcomes over effort will seek shortcuts over meritocracy” is a line about those who take shortcuts, meaning the cheat. So a note on protests around paper leaks ends up gently lecturing the leaked-upon about honesty. His father’s lovely lesson—that failure is okay but cheating is not—is again aimed squarely at individuals, while the scandal and protests right now are about institutions that failed them.
The rest of the statement is what Orwell called ready-made strips of words, glued together. Full of dreams and energy, fuel to our success, safeguard their aspirations. Nobody can disagree with any of it, which is precisely the point, for this is prose engineered so that no one in power will find a single sentence to object to.
What an actual position would have looked like is a single sentence in the active voice: The government must find and punish those who leaked the paper, and fix the system that allowed it. He wrote 160+ words to avoid writing that one.
Here’s Orwell’s full essay for those interested:
https://t.co/VlPoJdOcDG
Sachin Tendulkar has finally spoken on the student protests, and I had to read his note twice: once as a fan and once as an editor. The fan was disappointed, but the editor realised that this was a textbook specimen of the kind of writing that George Orwell warned about in his essay “Politics and the English Language”.
The essay was written in 1946, but it might well have been written yesterday about this very statement. Orwell’s point was that when people want to hide something, they stop using plain words and reach instead for the passive voice, for fog, for phrases that sound like they mean something while meaning nothing at all.
Consider the line, where students are disappointed that “their hard work hasn’t been rewarded”. Rewarded by whom, and denied by whom? There was a paper leak, which means somebody leaked it, some institution failed to prevent it, and an official presides over that institution. Yet none of them appears in the statement, and neither does the leak itself. A crime with identifiable custodians has been turned into something that simply happened to lakhs of children through nobody's fault.
Then comes the list of those who must set things right: parents, teachers, friends, relatives, schools and administrators. If you read that list again slowly, you will notice it covers everyone in India except the people the students are actually protesting against, which is to say the NTA, the education ministry and the government. When everyone is responsible, nobody is, and that is not an accident of drafting. It was engineered to deflect blame.
There is also a quiet sentence buried in the middle. “A society which prioritises outcomes over effort will seek shortcuts over meritocracy” is a line about those who take shortcuts, meaning the cheat. So a note on protests around paper leaks ends up gently lecturing the leaked-upon about honesty. His father’s lovely lesson—that failure is okay but cheating is not—is again aimed squarely at individuals, while the scandal and protests right now are about institutions that failed them.
The rest of the statement is what Orwell called ready-made strips of words, glued together. Full of dreams and energy, fuel to our success, safeguard their aspirations. Nobody can disagree with any of it, which is precisely the point, for this is prose engineered so that no one in power will find a single sentence to object to.
What an actual position would have looked like is a single sentence in the active voice: The government must find and punish those who leaked the paper, and fix the system that allowed it. He wrote 160+ words to avoid writing that one.
Here’s Orwell’s full essay for those interested:
https://t.co/VlPoJdOcDG
New blackboard lecture w @reinerpope
How do chips actually work – starting with basic logic gates, and working up to why GPUs, TPUs, FPGAs, and the human brain each look the way they do.
0:00:00 – Building a multiply-accumulate from logic gates
0:16:20 – Muxes and the cost of data movement
0:25:59 – How systolic arrays work
0:39:00 – Clock cycles and pipeline registers
0:51:40 – FPGAs vs ASICs
1:03:14 – Cache vs scratchpad
1:07:16 – Why CPU cores are much bigger than GPU cores
1:11:49 – Brains vs chips
1:15:22 – A GPU is just a bunch of tiny TPUs
Look up Dwarkesh Podcast on YouTube/Spotify/etc to watch. Enjoy!
Boris Cherny created Claude Code. he thinks IDEs are dead by end of year.
This is a 28-minute masterclass on how Anthropic uses it internally.
I wrote 5 pipelines you can sell with it. none of them are coding.
🚨 This is the best way to learn how LLMs work.
Interactive. 3D. Step-by-step.
Covers:
→ Embedding
→ Layer Norm
→ Self-Attention
→ MLP
→ Transformer layers
→ Softmax
→ Output
Stop reading papers. Start seeing.
Link in comments.
Save this immediately.
one of the biggest realizations I've had working on Claude Code is that you fundamentally have to design agents for prompt caching first, almost every feature touches on it somehow
I wrote this in a day but it's the culmination of months of learnings, hope you enjoy it
Caught up with my ex-student Euan Ong at Anthropic, and I was embarrassed to reveal I haven't read his now legendary essay on CS career advice.
In case I'm not the last person who hasn't read it, it's a glimpse into an extraordinarily productive mind: https://t.co/yOzEeCFxzX
If you've still not yet started tinkering with at least making your first API call to an OpenAI compatible endpoint, and yet you have been wondering how things like OpenClaw work, I have written something for you
Most of it is very simple 🤷♂️
https://t.co/B7wazoHX1j
If you have no idea how to set up OpenClaw, start here.
Then use Larry's viral skill to market your product and earn money.
(Free one shot integration clawhub skill dropping soon)
Then live happily ever after with a new AI best friend.