Skip to content

Instantly share code, notes, and snippets.

View shriomtri's full-sized avatar

Shriom shriomtri

View GitHub Profile
@shriomtri
shriomtri / Controlling Access in Kubernetes with RBAC.md
Created July 22, 2024 09:06
Controlling Access in Kubernetes with RBAC

Controlling Access in Kubernetes with RBAC

Introduction

Role-based access control is an important component when it comes to managing a Kubernetes cluster securely. The more users and automated processes there are that need to interface with the Kubernetes API, the more important controlling access becomes. In this lab, you will have the opportunity to practice your skills with the Kubernetes RBAC system by implementing your own RBAC permissions to appropriately limit user access.

Solution

  1. Log in to the lab server using the credentials provided:
@shriomtri
shriomtri / Discovering Pod Resource Usage with Kubernetes Metrics.md
Created July 22, 2024 11:59
Discovering Pod Resource Usage with Kubernetes Metrics

Discovering Pod Resource Usage with Kubernetes Metrics

Introduction

Kubernetes metrics allow you to gain insight into a wide variety of data about your Kubernetes applications. You can use these metrics to gain insight into how your compute resources are being used. In this lab, you will have the opportunity to hone your skills by investigating existing pods running in a Kubernetes cluster to determine which ones are using the most CPU.

Additional Resources

You are working for BeeBox, a company that provides regular shipments of bees to customers. The company is in the process of building a Kubernetes-based infrastructure for some of their software.

@shriomtri
shriomtri / Managing Container Storage with Kubernetes Volumes.md
Created July 31, 2024 11:38
Managing Container Storage with Kubernetes Volumes

Managing Container Storage with Kubernetes Volumes

Introduction

Kubernetes volumes offer a simple way to mount external storage to containers. This lab will test your knowledge of volumes as you provide storage to some containers according to a provided specification. This will allow you to practice what you know about using Kubernetes volumes.

Additional Resources

Your company, BeeBox, is developing some applications that have storage needs beyond the short-lived storage of the container file system. One component, a simple maintenance script, needs to be able to interact with a directory on the host file system. Another needs to be able to share data between two containers in the same Pod.