I've recently set up a Kubernetes cluster in a lab environment, and I'm looking for advice on additional security measures to take. I understand that vanilla Kubernetes doesn't provide many built-in security features, so I'm curious about what real-world experienced users recommend. For instance, I've been considering network policies since they can help prevent lateral movement between pods during a breach, but I would love to hear about any other best practices or tools you think I should look into.
1 Answer
Vanilla Kubernetes really lacks strong security layers, so you'll need to implement those yourself. Starting with network policies is great! Also, consider tools like Kyverno, SELinux, or AppArmor based on your OS. Don't forget about Role-Based Access Control (RBAC) for users, and avoid running pods with privileged access unless absolutely necessary. There's a wealth of resources and blogs out there that can help you get started.

I've heard about Kyverno but haven't looked into it deeply. I'll definitely check it out, thanks for the heads-up!