DMCA.com Protection Status Trending Topics About Devops: Config Map from Files

Thursday, 3 June 2021

Config Map from Files

 create 3 files

echo "file1" > test1.properties

echo "file2" > test2.properties

echo "file3" > test3.properties




kubectl create cm cm5 --from-file=properties/




 $ kubectl describe cm cm5

Name:         cm5

Namespace:    default

Labels:       <none>

Annotations:  <none>


Data

====

test1.properties:

----

file1


test2.properties:

----

file2


test3.properties:

----

file3


Events:  <none>

No comments: