Kubernetes ConfigMap Operations

From NovaOrdis Knowledge Base
Revision as of 21:54, 22 October 2019 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search

External

Internal

Inspecting a ConfigMap

kubectl get cm <name> -o yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: example
  ...
data:
  color: red
  shape: square

Create a ConfigMap with CLI

Specify Key/Value Pairs on Command Line

kubectl create configmap example --from-literal=color=red --from-literal=shape=square