Home
|
Tutorials
|
Articles
|
Videos
|
Products
|
Tools
|
Search
Interviews
|
Open Source
|
Tag Cloud
|
Follow Us
|
Bookmark
|
Contact
In Browser
StumbleUpon
del.icio.us
Google
Google Buzz
reddit
LinkedIn
Facebook
Twitter
Linkedin
E-Mail
Home
Tutorials
Articles
Search Tutorials
Products
Authors
Submit a Tutorial
Report a Bug
Interview FAQ
Subscribe
Container Management
>
Kubernetes
> How to create Kubernetes ConfigMap from Files
How to create Kubernetes ConfigMap from Files
Author:
Venkata Sudhakar
The below example shows how to create
Kubernetes ConfigMap
from a file.
$ cat example-cfg.yml kind: ConfigMap apiVersion: v1 metadata: name: example-configmap data: # Configuration values can be set as key-value properties database: mysql username: abcd connection.url: jdbc:mysql://localhost:3306/bethecoder # Or set as complete file contents (even JSON!) keys: | aws.access.key=AAAAAAAAAA aws.secret.key=BBBBBBBBBB $ kubectl apply -f example-cfg.yml configmap/example-configmap created
Home
|
Tutorials
|
Random Tutorial
|
Articles
|
Videos
|
Search
|
Google Search
|
Products
|
Student Projects
|
Open Source
Tools
|
Tips And Tricks
|
How to Fix
|
Tag Cloud
|
Share
|
Disclaimer
|
Privacy
|
Contact
|
Login
Send your comments, suggestions or queries regarding this site to
[email protected]
.
Copyright © 2008-2024. All rights reserved.