定位
定位
kubectl describe pod web-x | grep -A4 'Warning'
kubectl get cm app-config -n prod
kubectl get secret app-secret -n prod
kubectl get pod web-x -o jsonpath='{.spec.containers[0].env[*].valueFrom}'典型事件原文:configmap "app-config" not found、could not find key APP_MODE in secret app-secret。