mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-05 00:16:39 +00:00
858 B
858 B
Exercise — ConfigMaps
-
In this exercise, we will use a ConfigMap to store static assets
-
While there are some circumstances where this can be useful ...
-
... It is generally not a good idea!
-
Once you've read that warning, check the next slide for instructions :)
Exercise — ConfigMaps
This will use the wordsmith app.
We want to store the static files (served by web) in a ConfigMap.
-
Transform the
staticdirectory into a ConfigMap.(https://github.com/jpetazzo/wordsmith/tree/master/web/static)
-
Find out where that
staticdirectory is located inweb.(for instance, by using
kubectl execto investigate) -
Update the definition of the
webDeployment to use the ConfigMap.(note: fonts and images will be broken; that's OK)
-
Make a minor change in the ConfigMap (e.g. change the text color)