Build Your Own AI Assistant Part 1 - Creating the Assistant
116820 Views
Is the new Raspberry Pi AI Kit better than Google Coral?
114678 Views
Control Arduino with Python using Firmata / PyFirmata
87081 Views
How to Map with LiDAR - using a Raspberry Pi Zero 2W, RPLidar and Rviz
57314 Views
Creating a Supercomputer with a Raspberry Pi 5 Cluster and Docker Swarm!
53588 Views
Node-Red Automation, MQTT, NodeMCU & MicroPython
52067 Views
Podman vs Docker
MicroPython Robotics
Bottango and Isaaca
LidarBot
Snaszy NAS a 3D printed NAS for Raspberry Pi
Waveshare CM5 boards
Running K3s on Raspberry Pi
0h 36m
From Docker to Podman
0h 28m
MicroPython Robotics Projects with the Raspberry Pi Pico
0h 24m
Bottango Basics
0h 22m
Mini-Rack 3D Design Tutorial
0h 20m
Using the Raspberry Pi Pico's Built-in Temperature Sensor
Learn Linux from the basics to advanced topics.
Learn how to use a Raspberry Pi Pico
Learn MicroPython the best language for MicroControllers
Learn Docker, the leading containerization platform. Docker is used to build, ship, and run applications in a consistent and reliable manner, making it a popular choice for DevOps and cloud-native development.
Learn how to build SMARS robots, starting with the 3D Printing the model, Designing SMARS and Programming SMARS
Learn how to build robots, starting with the basics, then move on to learning Python and MicroPython for microcontrollers, finally learn how to make things with Fusion 360.
Learn Python, the most popular programming language in the world. Python is used in many different areas, including Web Development, Data Science, Machine Learning, Robotics and more.
Learn how to create robots in 3D, using Fusion 360 and FreeCAD. The models can be printed out using a 3d printer and then assembled into a physical robot.
Learn how to create Databases in Python, with SQLite3 and Redis.
KevsRobots Learning Platform
80% Percent Complete
By Kevin McAleer, 3 Minutes
Page last updated May 24, 2025
Kubernetes is powerful — but it’s also complex and needs to be properly secured, even in small or home lab clusters like K3s on Raspberry Pi.
This lesson will walk you through essential security best practices, including RBAC, secrets, TLS, and attack surface reduction.
RBAC controls who can do what in your cluster.
Create a read-only role and binding:
apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: default name: read-only rules: - apiGroups: [""] resources: ["pods", "services"] verbs: ["get", "list"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: read-only-binding namespace: default subjects: - kind: User name: devuser apiGroup: rbac.authorization.k8s.io roleRef: kind: Role name: read-only apiGroup: rbac.authorization.k8s.io
Apply it with kubectl apply -f.
kubectl apply -f
🔐 Use service accounts and OIDC for tighter control.
Use Secret resources to manage credentials, API tokens, or sensitive configs.
Secret
apiVersion: v1 kind: Secret metadata: name: my-secret type: Opaque data: username: dXNlcg== password: c2VjdXJlcGFzcw==
To create secrets from literal values:
kubectl create secret generic my-secret \ --from-literal=username=user \ --from-literal=password=securepass
Secrets are base64-encoded, not encrypted. For stronger security, use sealed-secrets or Vault.
If you use Traefik or another ingress controller, enable TLS for encrypted connections:
Example with cert-manager and Traefik:
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.13.0/cert-manager.yaml
Then create an Ingress resource with tls: and a Certificate resource.
Ingress
tls:
Certificate
6443
Remove unused components using --disable flags during K3s install:
--disable
INSTALL_K3S_EXEC="--disable servicelb --disable traefik --disable metrics-server"
Use kubectl auth can-i to check RBAC rules:
kubectl auth can-i
kubectl auth can-i create deployments --as devuser
You now know how to:
Next up: Final Project
< Previous Next >
You can use the arrows ← → on your keyboard to navigate between lessons.
← →