Skip to main content

Use ConfigMaps and Secrets

ocne ocne2 lab tutorial ocne-k8s
Table of Contents

Links

🌙 Lab

🗒 Tutorial

Details

A key advantage of containers is knowing your software executes on any computer without problems. Many applications use environment variables to control the application’s runtime behavior, such as an API Key or environment variables. They may be hard-coded into a container, but doing so makes switching environments between a Production and Development environment difficult. Kubernetes addresses this by moving the application’s configuration into an object called a ConfigMap comprised of a series of key-value pairs injected into the application’s environment at runtime. The application then consumes these transparently as though they were environment values in their runtime environment.

Objectives

In this tutorial, you’ll learn how to:

  • Use ConfigMaps and Secrets

Prerequisites

  • Installation of Oracle Cloud Native Environment
    • a single control and worker node