我正在关注如何通过Google Cloud SQL Proxy连接到Google Cloud SQL的GKE上运行wordpress的示例:
https://cloud.google.com/sql/docs/mysql/connect-container-engine
不幸的是,我的wordpress pod因崩溃错误而失败,而且从文档中不清楚如何更深入地了解其原因。以下是错误示例:
bash-3.2$ kubectl get pods| egrep wordpress
wordpress-713960421-v4f49 0/2 CrashLoopBackOff 16 20m
(kubectl描述pod ...)
11m 22s 36 kubelet, gke-noon-staging-default- pool-d500b601-dfb6 Warning FailedSync Error syncing pod, skipping: [failed to "StartContainer" for "web" with CrashLoopBackOff: "Back-off 5m0s restarting failed container=web pod=wordpress-713960421-v4f49_default(f64276d2-5660-11e7-a565-42010a9a0023)"
, failed to "StartContainer" for "cloudsql-proxy" with CrashLoopBackOff: "Back-off 5m0s restarting failed container=cloudsql-proxy pod=wordpress-713960421-v4f49_default(f64276d2-5660-11e7- a565-42010a9a0023)"
]
我的问题是:
以下是对部署的描述(kubectl describe wordpress):
pod的描述(kubectl describe):
提前致谢!