Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Passing file reference into yaml file for k8
[ Edited ]Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3694     0
I'm writing a yaml file to create a pod. And i have to pass multiple json files into the docker container.
How can i pass these files into the yaml file dynamically?
likithsunny
Labels:
Re: Passing file reference into yaml file for k8
[ Edited ]Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2021 09:38 PM - edited 02-12-2021 04:25 AM
3695     0
you can pass in the from-file argument multiple times to create a ConfigMap from multiple data sources. kubectl get configmap game-config-env-file -o YAML to use in the ConfigMap and <path-to-file> is the location of the data source file.