Kubernetes ConfigMap Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
  data:
  data:
   <font color=teal># property-like keys; each key maps to a simple value</font>
   <font color=teal># property-like keys; each key maps to a simple value</font>
   player_initial_lives: "3"
   quantity: "3"
   ui_properties_file_name: "user-interface.properties"
   file_name: "somefile.properties"
   
   
   <font color=teal># file-like keys</font>
   <font color=teal># file-like keys</font>
   game.properties: |
   game.properties: |
     enemy.types=aliens,monsters
     shape=square
     player.maximum-lives=5     
     strength=5     
   user-interface.properties: |
   somefile.properties: |
     color.good=purple
     color.good=purple
     color.bad=yellow
     color.bad=yellow

Revision as of 17:47, 2 March 2022

External

Internal

Example

apiVersion: v1
kind: ConfigMap
metadata:
  name: blue
  labels:
    color: blue
  annotations:
    ...
data:
  # property-like keys; each key maps to a simple value
  quantity: "3"
  file_name: "somefile.properties"

  # file-like keys
  game.properties: |
    shape=square
    strength=5    
  somefile.properties: |
    color.good=purple
    color.bad=yellow
    allow.textmode=true    

Elements

type

data

stringData