在将新部署部署到我们的 GKE 集群时,pod 已创建但失败并显示以下错误:
Failed create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:319: getting the final child's pid from pipe caused \"read init-p: connection reset by peer\"": unknown
Run Code Online (Sandbox Code Playgroud)
集群完全没有加载,有足够的空闲磁盘、内存和CPU。
在 pod/cluster 日志中没有发现其他问题。
我们使用 Python 从特定 G Suite 托管域中获取所有用户,但在完成以下教程并授予服务帐户所需的所有访问权限后,以下代码段仍会生成“未授权访问此资源/api:
import json
from google.oauth2 import service_account
from googleapiclient.discovery import build
SCOPES = ['https://www.googleapis.com/auth/admin.directory.user.readonly']
credentials = service_account.Credentials.from_service_account_file("/path/to/file.json", scopes=SCOPES)
service = build('admin', 'directory_v1', credentials=credentials)
Run Code Online (Sandbox Code Playgroud) kubernetes ×1