configmaps-vol

command
v0.0.0-...-5ffd849 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

ConfigMaps as Volumes

This sample shows how define and inject a configMap into an application as a volume. A ConfigMap is a set of key/value pairs. The "key" of the configMap will become the "name" of the file on disk and the corresponding "value" in the configMap will be the contents of the file.

The application will log (print to stdout) all of the values from the configMap.

Note: the same basic logic will work for Batch Jobs as well.


As noted in the main README, this sample has two pieces:

  • a build script which will build the container image(s) used
  • a run script which deploys resources that use those images

The main purpose of this example is the run script, but the build script is included for complete educational (and reuse) purposes.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL