Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (25 loc) · 634 Bytes

CreateConfigMagForApp.md

File metadata and controls

28 lines (25 loc) · 634 Bytes
title description
How To: create a config map
Guide on how to create a config map

Create a config map

  1. Resources -> Config Maps -> Create Config Map
  2. Add Config Map to application

Mount the config map

YAML file should look like this (Caddyfile example):

         volumeMounts:
            - mountPath: /etc/Caddyfile
              name: test-caddy-conf
              subPath: Caddyfile
     volumes:
        - configMap:
            defaultMode: 420
            items:
              - key: Caddyfile
                path: Caddyfile
            name: caddy-conf
          name: test-caddy-conf