Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Core Tech
Google Cloud Platform icon
Labs

Securing Kubernetes API and Network Policies for CKS

In this lab, you will use Minikube in a Kubernetes environment to practice securing API access with RBAC, enforcing network policies using Cilium CNI, and enabling TLS encryption for NGINX services with a self-signed certificate. A preconfigured Minikube cluster will be provided, along with pre-downloaded Docker images (NGINX and Cilium) on an Ubuntu server. You will deploy and configure an NGINX server, RBAC policies, network restrictions, and test pods to apply security best practices in a controlled Kubernetes environment.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Aug 05, 2025
Duration
1h 15m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Getting Started in the Lab Environment

    Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!

  2. Challenge

    Enforcing Secure API Access with Kubernetes RBAC Policies

    In this challenge, you will configure and enforce Role-Based Access Control (RBAC) policies to restrict access to the Kubernetes API. You will work within a dedicated namespace to enhance resource isolation and security. By the end of this lab, you will have hands-on experience creating namespaces, service accounts, roles, and role bindings, as well as testing RBAC permissions to strengthen Kubernetes security.

  3. Challenge

    Implement and Verify Network Policies for Restricting Pod-to-Pod Communication

    You will manage communication between Pods in Kubernetes using network policies with Minikube and Cilium. In this challenge, you will learn how to control and restrict traffic between Pods based on security requirements. By implementing network policies, you will ensure that only authorized Pods communicate, strengthening the security of your Kubernetes setup and preventing unauthorized access.

    With Cilium, you will gain advanced security and visibility over Pod-to-Pod traffic, making your network faster and more secure.

  4. Challenge

    Securing Nginx Server with HTTPS (TLS) on Minikube

    In this challenge, you will deploy an Nginx server on Minikube, expose it over HTTPS using TLS encryption, and configure an Ingress resource to manage secure communications. The goal is to understand how to enable secure communication between Kubernetes components and services using encryption techniques such as TLS.

  5. Challenge

    The Last Challenge

    Welcome to the final challenge! This is your last chance to experiment in the environment. Clicking Finish Lab will end this little world that flittered into existence just for you.

About the author

Shikhar is a professional system administrator and consultant that has a particular interest in all things related to Linux administration, shell scripting, cloud, Ansible, and automation. He loves making complex technical topics easy to understand. He is an AWS Certified Solutions Architect Associate. He has utilized his IT skills in many Fortune 500 companies. Shikhar has been teaching since 2015 and provides onsite and online training on many IT subjects.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight