[k8s] ConfigMap
1⃣ ConfigMap 特性
ConfigMap 通常都是用來存放偏向部署面的設定檔,像是資料庫的初始化設定、nginx 設定檔等等
⭐ ConfigMaps are used as environment variables
🔆 how to create
from property file
from literal value
from yaml
🔆 how to use
fetch value of specific key
fetch values of all keys
⭐ ConfigMaps are used as files
🔆 how to create
from yaml
🔆 how to use
- volumes mounted into the pod
- mount volumes into container
resource