kubectl create configmap from file
kubectl -n sre delete configmap genshin-alert-config
kubectl -n sre create configmap genshin-alert-config --from-file=./config.json
注意--from-file=./config.json
里面的./
kubectl -n sre delete configmap genshin-alert-config
kubectl -n sre create configmap genshin-alert-config --from-file=./config.json
注意--from-file=./config.json
里面的./