我\xe2\x80\x99m 在使用 terraform 在 AWS EKS 上预置节点组时出现错误。\n错误:等待 EKS 节点组 (xxx) 创建时出错:NodeCreationFailure: Unhealthy nodes in the kubernetes cluster.
我去了控制台并检查了节点。有一条消息\xe2\x80\x9cruntime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker network plugin is not ready: cni config uninitialized\xe2\x80\x9d。
我有 5 个私有子网并通过 NAT 连接到 Internet。
\n有人能给我一些关于如何调试这个的提示吗?
\n这是我的环境的一些详细信息。
\nKubernetes version: 1.18\nPlatform version: eks.3\nAMI type: AL2_x86_64\nAMI release version: 1.18.9-20201211\nInstance types: m5.xlarge\nRun Code Online (Sandbox Code Playgroud)\n集群中设置了三个工作负载。
\ncoredns, STATUS (2 Desired, 0 Available, 0 Ready)\naws-node STATUS (5 Desired, 5 Scheduled, 0 Available, 0 Ready) …Run Code Online (Sandbox Code Playgroud) amazon-web-services kubernetes terraform-provider-aws amazon-eks
我正在将 CDK 堆栈从 0.30.0 移植到 0.39.0。我的 AWS 账户有一个预定义的 VPC,我只需将其导入堆栈即可。相同的子网在 0.30.0 中工作正常,但在 0.39.0 中收到错误消息:
“此 VPC 中没有‘公共’子网。请使用不同的 VPC 子网选择。”
我的堆栈中有一个 VPC 和 3 个子网。我还有一个通往 dynamodb 和 s3 的网关。
有人遇到过这个问题吗?
我尝试删除除导入 VPC 之外的所有其他代码。
在 0.30.0 中,我使用这些行并且没有问题。
vpc = ec2.VpcNetwork.import(this, 'myvpc', {
vpcId: 'vpc-xxxxxxxxxxxxxxxx',
availabilityZones: ['ap-southeast-2a','ap-southeast-2b','ap-southeast-2c'],
privateSubnetIds: ['subnet-xxxxxxxxxxxx', 'subnet-xxxxxxxxxxxx', 'subnet-xxxxxxxxxxxx']
});
Run Code Online (Sandbox Code Playgroud)
在0.39.0中,我将其更改为:
vpc = ec2.Vpc.fromVpcAttributes(this, 'myvpc', {
vpcId: "vpc-xxxxxxxxxxxxxxxx",
availabilityZones: ['ap-southeast-2a','ap-southeast-2b','ap-southeast-2c'],
privateSubnetIds: ['subnet-xxxxxxxxxxxx', 'subnet-xxxxxxxxxxxx', 'subnet-xxxxxxxxxxxx']
});
Run Code Online (Sandbox Code Playgroud) 我想设置我的环境并仅在必要时根据存储库中是否有使用 LFS 的文件安装 git-lfs 。
有没有一种轻量、快速、简单的方法来检查呢?
CONAN_PKG::spdlog 使用 CMake 生成构建配置时未找到。
我使用的conan包是spdlog/1.3.1@bincrafters/stable。我有一个 CMake 可执行目标,它引用了一个 conan 包spdlog。我收到此错误消息:
[build] CMake Error at src/apps/ResultObserver/CMakeLists.txt:10 (ADD_EXECUTABLE):
[build] Target "ResultObserver" links to target "CONAN_PKG::spdlog" but the target
[build] was not found. Perhaps a find_package() call is missing for an IMPORTED
[build] target, or an ALIAS target is missing?
Run Code Online (Sandbox Code Playgroud)
我的 CMakeLists.txt 中有这些行。
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
ADD_EXECUTABLE(ResultObserver src/ResultObserver.cpp)
TARGET_LINK_LIBRARIES(ResultObserver CONAN_PKG::spdlog)
Run Code Online (Sandbox Code Playgroud)
另外,安装conan包后,会在build目录下生成conanbuildinfo.cmake文件。
我检查了文件内部。它包含这些行。
add_library(CONAN_PKG::spdlog INTERFACE IMPORTED)
# Property INTERFACE_LINK_FLAGS do not work, necessary to add to …Run Code Online (Sandbox Code Playgroud)