Kubernetes ConfigMap Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
<font size=-1>
<font size=-1>
  [[Kubernetes_Manifests#apiVersion|apiVersion]]: v1
  [[Kubernetes_Manifests#apiVersion|apiVersion]]: v1
  [[Kubernetes_Manifests#kind|kind]]: Secret
  [[Kubernetes_Manifests#kind|kind]]: ConfigMap
  [[Kubernetes_Manifest_Metadata#Overview|metadata]]:
  [[Kubernetes_Manifest_Metadata#Overview|metadata]]:
   [[Kubernetes_Manifest_Metadata#name|name]]: blue
   [[Kubernetes_Manifest_Metadata#name|name]]: blue
Line 14: Line 14:
   [[Kubernetes_Manifest_Metadata#annotations|annotations]]:
   [[Kubernetes_Manifest_Metadata#annotations|annotations]]:
     ...
     ...
  [[#type|type]]: Opaque
  data:
[[#data|data]]:
  # property-like keys; each key maps to a simple value
   shape: c3F1YXJl
  player_initial_lives: "3"
   size: bGFyZ2U=
   ui_properties_file_name: "user-interface.properties"
[[#stringData|stringData]]:
 
   color: red
  # file-like keys
   game.properties: |
    enemy.types=aliens,monsters
    player.maximum-lives=5   
  user-interface.properties: |
    color.good=purple
    color.bad=yellow
    allow.textmode=true    
</font>
</font>



Revision as of 17:43, 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
  player_initial_lives: "3"
  ui_properties_file_name: "user-interface.properties"
  # file-like keys
  game.properties: |
    enemy.types=aliens,monsters
    player.maximum-lives=5    
  user-interface.properties: |
    color.good=purple
    color.bad=yellow
    allow.textmode=true    

Elements

type

data

stringData