gpt4 book ai didi

kubernetes - kubelet FailedSync 同步 pod 时出错,跳过 : API error 400

转载 作者:行者123 更新时间:2023-12-02 03:12:04 24 4
gpt4 key购买 nike

我在创建容器时遇到了问题,我使用的是 ubuntu 16.04 操作系统、docker 1.12.1、flannel 0.5.5 和 etcd 数据存储。

sudo systemctl status kubelet.service
● kubelet.service - Kubernetes Kubelet Server
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2016-09-12 14:23:02 EDT; 3h 6min ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Main PID: 15788 (kubelet)
Tasks: 9
Memory: 848.0K
CPU: 815ms
CGroup: /system.slice/kubelet.service
Sep 12 17:19:40 vm3-VirtualBox kubelet[15788]: W0912 17:19:40.585677 15788 container_manager_linux.go:278] [ContainerManager] Failed to ensure state of "/docke
Sep 12 17:20:40 vm3-VirtualBox kubelet[15788]: W0912 17:20:40.615756 15788 container_manager_linux.go:278] [ContainerManager] Failed to ensure state of "/docke
Sep 12 17:21:40 vm3-VirtualBox kubelet[15788]: W0912 17:21:40.624172 15788
Sep 12 17:23:40 vm3-VirtualBox kubelet[15788]: W0912 17:23:40.657396 15788 container_manager_linux.go:278] [ContainerManager] Failed to ensure state of "/docker
belet[15788]: W0912 16:47:40.051784 15788 container_manager_linux.go:278] [ContainerManager] Failed to ensure state of "/docke
Sep 12 16:48:06 vm3-VirtualBox sudo[19448]: pam_unix(sudo:session): session closed for user root
Sep 12 16:48:40 vm3-VirtualBox kubelet[15788]: W0912 16:48:40.073855 15788 container_manager_linux.go:278] [ContainerManager] Failed to ensure state of "/docke

主节点

kubectl describe pods my-first-nginx-a9bgy

Replication Controllers: my-first-nginx (1/1 replicas created)
Containers:
my-first-nginx:
Container ID:
Image: nginx
Image ID:
State: Waiting
Reason: ContainerCreating

1m 1m 1 {kubelet implicitly required container POD Created Created with docker id 9fc5d67d3921
1m 1m 1 {kubelet implicitly required container POD Failed Failed to start with docker id 9fc5d67d3921 with error: API error (400): {"message":"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}
{kubelet } implicitly required container POD Created Created with docker id f55e2b6538b5
1m 6s 10 {kubelet FailedSync Error syncing pod, skipping: API error (400): {"messag
"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}

我是否需要在/lib/systemd/system/docker.service 或/etc/默认/ docker 。是否有任何解决方法,我在几篇文章中读到 kubernetes 在最新的 docker 版本中存在一些问题。

在此方面的任何帮助和建议将不胜感激。

最佳答案

HostConfig 在 docker v1.12 中被弃用。库伯内斯 made a corresponding switch在 v1.2 中弃用 HostConfig,因此您需要更新版本 (v1.2+) kubernetes 才能与 docker v1.12 一起使用。

另一个警告是只有即将发布的 kubernetes 1.4 版本声称与 docker v1.12 兼容。所有旧版本的 kubernetes 都没有针对 docker v1.12 进行测试。您最好使用旧版本的 docker,或者干脆切换到 kubernetes v1.4 beta。

关于kubernetes - kubelet FailedSync 同步 pod 时出错,跳过 : API error 400,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39461231/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com