Question 46

Check the image version in pod without the describe command

Question 47

List all the events sorted by timestamp and put them into file.log and verify
  • Question 48

    Create 2 nginx image pods in which one of them is labelled with env=prod and another one labelled with env=dev and verify the same.

    Question 49

    You are tasked with setting up fine-grained access control for a Kubernetes cluster running a microservices application. You need to ensure that developers can only access the resources related to their specific microservices while preventing them from accessing or modifying other services' resources. Define RBAC roles and permissions to achieve this, including details of the resources, verbs, and namespaces involved. Consider the following:

    Question 50

    List pod logs named "frontend" and search for the pattern "started" and write it to a file "/opt/error-logs" See the solution below.