Configuration
Create a
configmapnamedmy-configwith valueskey1=val1andkey2=val2. Check it's values.Create a
configMapcalled opt with valuekey5=val5. Create a newnginx-optpod that loads the value from keykey5in an env variable calledOPTIONS.Create a
configmap anotheronewith valuesvar6=val6andvar7=val7.Load thisconfigmapas an env variables into anginx-secpod.Create a
configMap cmvolumewith valuesvar8=val8andvar9=val9. Load this as a volume inside annginx-cmpod on path/etc/spartaa. Create the pod and 'ls' into the/etc/spartaadirectory.Create an
nginx-requestspod with requestscpu=100m, memory=256Miand limitscpu=200m, memory=512Mi.Create a secret called
mysecretwith valuespassword=mypassand check its yaml.Create an
nginxpod that mounts the secretmysecretin a volume on path/etc/foo.
Last updated
Was this helpful?