Question 1

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

Question 2

Create a persistent volume with name app-data, of capacity 2Gi and access mode ReadWriteMany. The type of volume is hostPath and its location is /srv/app-data.

Question 3

Create a file called "config.txt" with two values key1=value1
and key2=value2. Then create a configmap named "keyvalcfgmap" andread data from the file "config.txt" and verify that configmap is created correctly
  • Question 4

    Add a taint to node "worker-2" with effect as "NoSchedule" and
    list the node with taint effect as "NoSchedule"
  • Question 5

    Change the label for one of the pod to env=uat and list all the pods to verify