You will learn:
- What a
ConfigMap
is - How to mount a config map as environment variables
- How to expose a config map as a file
- How to navigate the Kubernetes documentation 😂
- Creating
simple-config
config map - Creating
nginx-config
config map - Mounting whole config map as environment variables
- Mounting whole config map as files
- Deploy
nginx
pod - Mount
nginx-config
to/etc/nginx/nginx.conf
- Add
virtual-host.conf
tonginx-config
config map - Mount virtual-host to
/etc/nginx/conf.d/my-web.conf
- Create a new
content
config map withindex.html
- Mount into
nginx
pod - Add / expose port
81
innginx
pod - Port forward to new virtual host