Kubectl update configMap

前端 未结 3 481
说谎
说谎 2021-02-12 10:07

I am using the following command to create a configMap.

kubectl create configmap test --from-file=./application.properties --from-file=./mongo.properties --from-         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 10:53

    Another option is actually you can use this command:

    kubectl create configmap some-config --from-file=some-key=some-config.yaml -n some-namespace -o yaml --dry-run | kubectl apply -f - 
    

    Refer to Github issue: Support updating config map and secret with --from-file

提交回复
热议问题