Kubernetes ConfigMap Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 27: Line 27:
     color.bad=yellow
     color.bad=yellow
     allow.textmode=true     
     allow.textmode=true     
[[#binaryData | binaryData]]:
[[#immutable| immutable]]: true|false
</font>
</font>


=Elements=
=Elements=
==<tt>data</tt>==
==<tt>data</tt>==

Revision as of 17:49, 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    
 binaryData:
 immutable: true|false

Elements

data