Injecting Configurations from Key/Value Literals
In this lesson, we will go through injecting configurations from key/value literals.
Creating ConfigMap Using Literals
Hopefully, even when our applications need different configs to work in distinct clusters, the differences are limited. Often, they should be limited to only a few key/value entries. In such cases, it might be easier to create ConfigMaps using --from-literal
.
Let’s take a look at an example.
Press + to interact
kubectl create cm my-config \--from-literal=something=else \--from-literal=weather=sunnykubectl get cm my-config -o yaml
The output ...
Access this course and 1400+ top-rated courses and projects.