kubectl 1.37 · Config and secrets

Create a ConfigMap from a file

Store a file's contents as configuration.

kubectl create configmap app-config --from-file=app.properties

Official kubectl 1.37 documentation

More config and secrets commands

All config and secrets commands · kubectl 1.37 cheatsheet

Was this page helpful?