Difference between revisions of "Kind: ConfigMap"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  apiVersion: v1
 
  apiVersion: v1
 
  kind: ConfigMap
 
  kind: ConfigMap
  metadata:
+
  [[metadata:]]
 
   ...
 
   ...
 
  data:
 
  data:

Revision as of 06:02, 16 August 2022

ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
  ...
data:
  ...
immutable: true


kind: ConfigMap
apiVersion: v1
metadata:
  name: nginx-config
  namespace: nginx-ingress
data:
  proxy-protocol: "True"
  real-ip-header: "proxy_protocol"
  set-real-ip-from: "0.0.0.0/0"
apiVersion: v1
kind: ConfigMap
metadata:
  name: game-demo
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    

Related

See also

Advertising: