Configuration
Create a
configmap
namedmy-config
with valueskey1=val1
andkey2=val2
. Check it's values.Create a
configMap
called opt with valuekey5=val5
. Create a newnginx-opt
pod that loads the value from keykey5
in an env variable calledOPTIONS
.Create a
configmap anotherone
with valuesvar6=val6
andvar7=val7.
Load thisconfigmap
as an env variables into anginx-sec
pod.Create a
configMap cmvolume
with valuesvar8=val8
andvar9=val9
. Load this as a volume inside annginx-cm
pod on path/etc/spartaa
. Create the pod and 'ls' into the/etc/spartaa
directory.Create an
nginx-requests
pod with requestscpu=100m, memory=256Mi
and limitscpu=200m, memory=512Mi
.Create a secret called
mysecret
with valuespassword=mypass
and check its yaml.Create an
nginx
pod that mounts the secretmysecret
in a volume on path/etc/foo.
Last updated
Was this helpful?