Question 31

Label a node as app=test and verify

Question 32

Get the memory and CPU usage of all the pods and find out top 3 pods which have the highest usage and put them into the cpuusage.txt file
  • Question 33

    You are tasked with setting up a Kubernetes cluster for a company with a strict security policy. They have two different teams: Development and Operations, with distinct access requirements.
    The Development team needs read-only access to all resources and the ability to create and manage deployments, pods, and services. The Operations team needs full access to all resources, including cluster management, and the ability to perform actions like scaling, rolling updates, and troubleshooting.
    Design a role-based access control (RBAC) configuration using Kubernetes resources (Role, RoleBinding, ClusterRole, ClusterRoleBinding) to grant appropriate access to each team.

    Question 34

    Create a pod as follows:
    * Name: non-persistent-redis
    * container Image: redis
    * Volume with name: cache-control
    * Mount path: /data/redis
    The pod should launch in the staging namespace and the volume must not be persistent.

    Question 35

    Create a NetworkPolicy which denies all ingress traffic