Configuration

  1. Create a configmap named my-config with values key1=val1 and key2=val2. Check it's values.

  2. Create a configMap called opt with value key5=val5. Create a new nginx-opt pod that loads the value from key key5 in an env variable called OPTIONS.

  3. Create a configmap anotherone with values var6=val6 and var7=val7. Load this configmap as an env variables into a nginx-sec pod.

  4. Create a configMap cmvolume with values var8=val8 and var9=val9. Load this as a volume inside an nginx-cm pod on path /etc/spartaa. Create the pod and 'ls' into the /etc/spartaa directory.

  5. Create an nginx-requests pod with requests cpu=100m, memory=256Mi and limits cpu=200m, memory=512Mi.

  6. Create a secret called mysecret with values password=mypass and check its yaml.

  7. Create an nginx pod that mounts the secret mysecret in a volume on path /etc/foo.

Last updated

Was this helpful?