GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CodeEngine/configmaps-env at main · arcadioviewnext/CodeEngine

Expand file tree

/

configmaps-env

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

configmaps-env

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
build
build
 
 
config.go
config.go
 
 
data
data
 
 
file
file
 
 
run
run
 
 

README.md

ConfigMaps as Environment Variables

This sample shows how define and inject a configMap into an application as a set of environment variables. A ConfigMap is a set of key/value pairs. The "key" of the configMap will become the "name" of the environment variable and the corresponding "value" in the configMap will be the "value" of that environment variable.

The application will log (print to stdout) all of its environment variables.

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.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.