kubectl create configmap

From wikieduonline
Revision as of 07:55, 9 September 2022 by Cry (talk | contribs) (→‎Creating from command line)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating from command line[edit]

kubectl create configmap yourspecial-config --from-literal=special.how=very --from-literal=special.type=charm
apiVersion: v1
kind: ConfigMap
metadata:
  creationTimestamp: 2016-02-18T19:14:38Z
  name: special-config
  namespace: default
  resourceVersion: "651"
  uid: dadce046-d673-11e5-8cd0-68f728db1985
data:
  special.how: very
  special.type: charm

Related[edit]

See also[edit]

Advertising: