卡点2:Warning FailedScheduling default-scheduler 0/2 nodes are available: 2 Insufficient cpu.
部署pod时出现一直处于pending的状态,通过describe发现如下:
提示CPU 资源不够,我们可以通过如下命令确认节点的资源情况
kubectl describe node
可以看到节点CPU已经分配了94%,可以将本次部署的pod 所需的资源降低,看能否部署成功,可以在线编辑yaml
kubectl get statefulset -n sentry
kubectl edit statefulset -n sentry sentry-sentry-postgresql
搜索下cpu的参数设置,将所需的cpu资源下调,我是从250m下调到50m,最终pod也能启动成功