kubectl create configmap -h
kubectl create cm cmfromdir --from-file=conf/
kubectl create cm cmfromfile --from-file=conf/redis.conf
kubectl create cm cmspecialname --from-file=game-conf=game.conf
kubectl create cm cmspecialname2 --from-file=game-conf=game.conf --from-file=redis-conf=redis.conf kubectl create cm gameenvcm --from-env-file=game.conf
kubectl create cm envfromliteral --from-literal=level=INFO--from-literal=PASSWORD=redis123 kubectl create -f cm.yaml
标签:configmap,file,cm,kubectl,--,创建,create,几种,conf
From: https://www.cnblogs.com/chuyiwang/p/17221993.html