logo

Beyond Cluster-Admin: Getting Started with Kubernetes Users and Permissions

Authors:   Tiffany Jernigan


Summary

The presentation discusses Kubernetes security and demonstrates how to create and manage roles and permissions.
  • The speaker demonstrates how to create and manage roles and permissions in Kubernetes
  • The speaker emphasizes the importance of not giving cluster admin permissions
  • The speaker shows how to use 'kubectl' commands to manage roles and permissions
  • The speaker encourages attendees to provide feedback on the presentation
The speaker shares a demo of creating and scaling a deployment using a role with limited permissions, highlighting the importance of properly managing roles and permissions in Kubernetes.

Abstract

We've all done it: working on our Kubernetes clusters with "cluster-admin" access, the infamous equivalent of "root". It makes sense when we're just getting started and learning about Pods, Deployments, and Services and we're the only one accessing the clusters anyway; but soon enough, we have entire teams of devs and ops and CI/CD pipelines that require access to our precious clusters and namespaces. Are we going to YOLO and give them our admin certificate, token, or whatever else we use to authenticate? Hopefully not! In this talk, we're going to look at how to implement users and permissions on a new Kubernetes cluster. First, we'll review various ways to provision users, including certificates and tokens. We'll see examples showing how to provision users in both managed and self-hosted clusters, since the strategies tend to differ significantly. Then, we'll see how to leverage RBAC to give fine-grained permissions to these users. We'll put emphasis on repeatability, seeing each time how to script and/or generate YAML manifests to automate these tasks.

Materials:

Tags: