Kubernetes ConfigMap Manifest: Difference between revisions
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]]: | [[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]]: | ||
... | ... | ||
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 | |||
</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