Question 21
Create a Kubernetes secret asfollows:
* Name: super-secret
* password: bob
Create a pod namedpod-secrets-via-file Image, which mounts a secret namedsuper-secretat
/secrets.
Create a second pod namedpod-secrets-via-env Image, which exportspasswordas CONFIDENTIAL
* Name: super-secret
* password: bob
Create a pod namedpod-secrets-via-file Image, which mounts a secret namedsuper-secretat
/secrets.
Create a second pod namedpod-secrets-via-env Image, which exportspasswordas CONFIDENTIAL
Question 22
Watch the job that runs 10 times one by one and verify 10 pods are created and delete those after it's completed
Question 23
List pod logs named "frontend" and search for the pattern "started" and write it to a file "/opt/error-logs"
Question 24
Allow traffic from all the pods in "web" namespace and from pods
with label "type=monitoring" to the pods matching label "app: db"
with label "type=monitoring" to the pods matching label "app: db"
Question 25
Create a deployment named "myapp" that having 2 replicas with
nginx image and expose deployment as service named "myservice"
nginx image and expose deployment as service named "myservice"



