小编M H*_*zaq的帖子

nginx 入口控制器类型 nlb 与静态 IP 给出错误“AllocationIdNotFound”

我正在使用静态 ip 创建 nlb 类型的 nginx 入口控制器,但对于静态 ip,我收到此错误AllocationIdNotFound。虽然这个分配id是有效的,并且具有这个id的eip存在于同一区域中。以下是我在 nginx 入口控制器服务中使用的注释

annotations:
      service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
      service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
      service.beta.kubernetes.io/aws-load-balancer-type: nlb
      service.beta.kubernetes.io/aws-load-balancer-subnets: "subnet-xxxxxxxxxx, subnet-xxxxxxxxxx"
      service.beta.kubernetes.io/aws-load-balancer-eip-allocations: "eipalloc-xxxxxxxxxx, eipalloc-xxxxxxxxxx"
Run Code Online (Sandbox Code Playgroud)

如果我注释service.beta.kubernetes.io/aws-load-balancer-eip-allocations注释,负载均衡器将成功创建,但没有 eip。

我在这里做错了什么?

nlb amazon-web-services kubernetes-ingress amazon-eks nginx-ingress

5
推荐指数
1
解决办法
1439
查看次数

无法启动容器:OCI 运行时创建失败:container_linux.go:349

我在 16 GB RAM 上使用 docker CentOS Linux release 7.8.2003 (Core)。我的docker版本是Docker version 19.03.7. Docker-compose 版本是docker-compose version 1.23.2. 我的机器上运行着 30 多个 docker 容器。

一切都很顺利,但我遇到了问题。有时,当我尝试运行容器时,我会收到此错误

ERROR: for container_name  Cannot start service container_name: OCI runtime create failed: container_linux.go:349: 
starting container process caused "process_linux.go:319: getting the final child's pid from pipe caused \"EOF\"": unknown
Run Code Online (Sandbox Code Playgroud)

当我重试 3-5 次运行容器时,容器启动成功。有时我需要重新启动 docker 服务和我的服务器才能使其正常工作。我不知道为什么有时会出现此错误,有时会使用相同的 docker-compose 文件成功创建。

有人可以向我解释一下 docker 这种奇怪的行为吗?是因为我的机器上运行了太多容器还是其他原因?

docker dockerfile docker-compose

3
推荐指数
1
解决办法
1万
查看次数