
k8s
aduncmj
这个作者很懒,什么都没留下…
展开
-
k8s pod status nodelost pending
解决办法:使用kubectl get node检查从节点是否加入master,若没有,使用kubeadm join指令加入,应该能解决。原创 2021-08-30 15:13:20 · 364 阅读 · 0 评论 -
CNI及其在K8S中的应用
参考:CNI:容器网络接口从零开始入门 K8s | 理解 CNI 和 CNI 插件CNI - Container Network Interface(容器网络接口)CNI和CNMCNI(Conteinre Network Interface) 是 google 和 CoreOS 主导制定的容器网络标准,旨在为容器平台提供网络的标准化。不同的容器平台(比如目前的 kubernetes、mesos 和 rkt)能够通过相同的接口调用不同的网络组件。CNI由一组用于配置 Linux 容器的网络接口.原创 2020-12-18 15:24:45 · 483 阅读 · 0 评论 -
K8s宣布弃用Docker的背后及其相关技术(容器运行时、CRI、OCI)
K8s宣布弃用Docker,千万别慌! 容器运行时从docker到containerd的迁移原创 2020-12-18 11:23:53 · 507 阅读 · 1 评论 -
k8s暂时停掉/挂起pod
可以在删除pod的时候删掉pod对应的镜像。原创 2020-12-17 09:45:49 · 2868 阅读 · 0 评论 -
kubeadm init:couldn‘t initialize a Kubernetes cluster
Unfortunately, an error has occurred: timed out waiting for the conditionThis error is likely caused by: - The kubelet is not running - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)If you are原创 2020-12-05 12:59:26 · 3539 阅读 · 0 评论 -
反复出现:The connection to the server x..x:6443 was refused - did you specify the right host or
在所有节点重启kubelet试试:sudo systemctl restart kubelet.service原创 2020-10-12 16:09:56 · 8436 阅读 · 1 评论 -
Failed to create pod sandbox: open /run/systemd/resolve/resolv.conf: no such file or directory
将master上对应目录/run/systemd/resolve/resolv.conf文件复制一份到子节点上即可。如还不行,可试下如下方法:1、首先kubectl -n kube-system edit configmap coredns2、然后注释掉loop3、最后kubectl -n kube-system delete pod -l k8s-app=kube-dns...原创 2020-09-29 10:56:04 · 5174 阅读 · 2 评论 -
controller-manager Unhealthy Get “http://127.0.0.1:10252/healthz“: dial tcp 127.0.0.1:10252: conne
参考:https://blog.youkuaiyun.com/cymm_liu/article/details/108458197问题:controller-manager Unhealthy Get “http://127.0.0.1:10252/healthz”: dial tcp 127.0.0.1:10252: connect: connection refusedscheduler Unhealthy Get “http://127.0.0.1:10251/heal原创 2020-09-24 14:39:16 · 8295 阅读 · 1 评论 -
kubeadm not found
可能是字符编码问题。可以手动输入试一下,不要直接复制原创 2020-09-23 17:07:17 · 1838 阅读 · 0 评论 -
k8s删除pod
需要通过删除Deployment来彻底删除pod首先获取相应Deployment:kubectl get deployment -n <namespace>然后根据name执行删除命令:kubectl delete deployment <name> -n <namespace>如果pod是通过DaemonSet安装的,只需将上述命令的Deploym...原创 2020-04-19 13:24:19 · 394 阅读 · 0 评论 -
部署kubernetes(k8s)、dashboard ui及插件metrics server
1 Kubernetes概念Kubernetes(常简称为K8s)是用于自动部署、扩展和管理“容器化(containerized)应用程序”的开源系统。[3]该系统由Google设计并捐赠给Cloud Native Computing Foundation(今属Linux基金会)来使用。它旨在提供“跨主机集群的自动部署、扩展以及运行应用程序容器的平台”。[4] 它支持一系列容器工具, 包括Do...原创 2020-03-27 21:53:42 · 700 阅读 · 0 评论 -
error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s
error:error validating data: ValidationError(Deployment.spec): missing required field “selector” in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with ...原创 2020-05-07 14:52:04 · 7398 阅读 · 0 评论 -
k8s拉取镜像失败问题解决办法
解决从k8s.gcr.io/gcr.io/quay.io等地址拉取镜像失败问题Kubernetes:如何解决从k8s.gcr.io拉取镜像失败问题原创 2020-04-19 23:31:54 · 4335 阅读 · 0 评论