- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我最近开始使用 kubernetes。我遇到了FailedScheduling <unknown> default-scheduler 0/1 nodes are available: 1 node(s) were unschedulable
并且不确定发生了什么。
是不是因为我的节点上没有足够的资源用于新的 pod,我需要增加它?不过,它看起来还没有使用 100% 的内存或 CPU。
这是我的 pod kubectl describe pods plex-kube-plex-986cc6d98-lwns7 --namespace plex
Name: plex-kube-plex-986cc6d98-lwns7
Namespace: plex
Priority: 0
Node: <none>
Labels: app=kube-plex
pod-template-hash=986cc6d98
release=plex
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: ReplicaSet/plex-kube-plex-986cc6d98
Init Containers:
kube-plex-install:
Image: quay.io/munnerz/kube-plex:latest
Port: <none>
Host Port: <none>
Command:
cp
/kube-plex
/shared/kube-plex
Environment: <none>
Mounts:
/shared from shared (rw)
/var/run/secrets/kubernetes.io/serviceaccount from plex-kube-plex-token-txkbn (ro)
Containers:
plex:
Image: plexinc/pms-docker:1.16.0.1226-7eb2c8f6f
Ports: 32400/TCP, 32400/TCP, 32443/TCP
Host Ports: 0/TCP, 0/TCP, 0/TCP
Liveness: http-get http://:32400/identity delay=10s timeout=10s period=10s #success=1 #failure=3
Readiness: http-get http://:32400/identity delay=15s timeout=5s period=10s #success=1 #failure=3
Environment:
TZ: Europe/London
PLEX_CLAIM: [claim-PooPBMsbyEjyigT-_hec]
PMS_INTERNAL_ADDRESS: http://plex-kube-plex:32400
PMS_IMAGE: plexinc/pms-docker:1.16.0.1226-7eb2c8f6f
KUBE_NAMESPACE: plex (v1:metadata.namespace)
TRANSCODE_PVC: plex-kube-plex-transcode
DATA_PVC: plex-kube-plex-data
CONFIG_PVC: plex-kube-plex-config
Mounts:
/config from config (rw)
/data from data (rw)
/shared from shared (rw)
/transcode from transcode (rw)
/var/run/secrets/kubernetes.io/serviceaccount from plex-kube-plex-token-txkbn (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
data:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: plex-kube-plex-data
ReadOnly: false
config:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: plex-kube-plex-config
ReadOnly: false
transcode:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
shared:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
plex-kube-plex-token-txkbn:
Type: Secret (a volume populated by a Secret)
SecretName: plex-kube-plex-token-txkbn
Optional: false
QoS Class: BestEffort
Node-Selectors: beta.kubernetes.io/arch=amd64
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling <unknown> default-scheduler 0/1 nodes are available: 1 node(s) were unschedulable.
Warning FailedScheduling <unknown> default-scheduler 0/1 nodes are available: 1 node(s) were unschedulable.
kubectl describe node minikube --namespace plex
Name: minikube
Roles: master
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/os=linux
kubernetes.io/arch=amd64
kubernetes.io/hostname=minikube
kubernetes.io/os=linux
minikube.k8s.io/commit=93af9c1e43cab9618e301bc9fa720c63d5efa393
minikube.k8s.io/name=minikube
minikube.k8s.io/updated_at=2020_05_03T16_34_44_0700
minikube.k8s.io/version=v1.9.2
node-role.kubernetes.io/master=
Annotations: kubeadm.alpha.kubernetes.io/cri-socket: /var/run/dockershim.sock
node.alpha.kubernetes.io/ttl: 0
volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp: Sun, 03 May 2020 16:34:38 +1000
Taints: node.kubernetes.io/unschedulable:NoSchedule
Unschedulable: true
Lease:
HolderIdentity: minikube
AcquireTime: <unset>
RenewTime: Thu, 18 Jun 2020 18:02:37 +1000
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
MemoryPressure False Thu, 18 Jun 2020 18:01:11 +1000 Sun, 03 May 2020 16:34:33 +1000 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure False Thu, 18 Jun 2020 18:01:11 +1000 Sun, 03 May 2020 16:34:33 +1000 KubeletHasNoDiskPressure kubelet has no disk pressure
PIDPressure False Thu, 18 Jun 2020 18:01:11 +1000 Sun, 03 May 2020 16:34:33 +1000 KubeletHasSufficientPID kubelet has sufficient PID available
Ready True Thu, 18 Jun 2020 18:01:11 +1000 Sun, 03 May 2020 16:34:58 +1000 KubeletReady kubelet is posting ready status
Addresses:
InternalIP: 172.17.0.2
Hostname: minikube
Capacity:
cpu: 4
ephemeral-storage: 120997584Ki
hugepages-1Gi: 0
hugepages-2Mi: 0
memory: 8037176Ki
pods: 110
Allocatable:
cpu: 4
ephemeral-storage: 120997584Ki
hugepages-1Gi: 0
hugepages-2Mi: 0
memory: 8037176Ki
pods: 110
System Info:
Machine ID: 21e345365a7e45a8ad5560eb273be8e5
System UUID: 4b9e17f2-ea81-436d-bff9-1db34db18512
Boot ID: 6d7e3f0c-ce11-4860-a479-2d6dbfd72779
Kernel Version: 4.15.0-101-generic
OS Image: Ubuntu 19.10
Operating System: linux
Architecture: amd64
Container Runtime Version: docker://19.3.2
Kubelet Version: v1.18.0
Kube-Proxy Version: v1.18.0
PodCIDR: 10.244.0.0/24
PodCIDRs: 10.244.0.0/24
Non-terminated Pods: (11 in total)
Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits AGE
--------- ---- ------------ ---------- --------------- ------------- ---
kube-system coredns-66bff467f8-4psrb 100m (2%) 0 (0%) 70Mi (0%) 170Mi (2%) 46d
kube-system coredns-66bff467f8-jgpgh 100m (2%) 0 (0%) 70Mi (0%) 170Mi (2%) 46d
kube-system etcd-minikube 0 (0%) 0 (0%) 0 (0%) 0 (0%) 46d
kube-system kindnet-jzf4m 100m (2%) 100m (2%) 50Mi (0%) 50Mi (0%) 46d
kube-system kube-apiserver-minikube 250m (6%) 0 (0%) 0 (0%) 0 (0%) 46d
kube-system kube-controller-manager-minikube 200m (5%) 0 (0%) 0 (0%) 0 (0%) 46d
kube-system kube-proxy-hffcf 0 (0%) 0 (0%) 0 (0%) 0 (0%) 46d
kube-system kube-scheduler-minikube 100m (2%) 0 (0%) 0 (0%) 0 (0%) 46d
kube-system storage-provisioner 0 (0%) 0 (0%) 0 (0%) 0 (0%) 46d
kubernetes-dashboard dashboard-metrics-scraper-84bfdf55ff-2jc84 0 (0%) 0 (0%) 0 (0%) 0 (0%) 43d
kubernetes-dashboard kubernetes-dashboard-bc446cc64-kfk8z 0 (0%) 0 (0%) 0 (0%) 0 (0%) 43d
Allocated resources:
(Total limits may be over 100 percent, i.e., overcommitted.)
Resource Requests Limits
-------- -------- ------
cpu 850m (21%) 100m (2%)
memory 190Mi (2%) 390Mi (4%)
ephemeral-storage 0 (0%) 0 (0%)
hugepages-1Gi 0 (0%) 0 (0%)
hugepages-2Mi 0 (0%) 0 (0%)
Events: <none>
最佳答案
这是因为节点被标记为 Unschedulable:true
它有污点 node.kubernetes.io/unschedulable:NoSchedule
您可以删除该污点并尝试
kubectl taint node minikube node.kubernetes.io/unschedulable:NoSchedule-
关于kubernetes - FailedScheduling <unknown> 默认调度程序 0/1 节点可用 : 1 node(s) were unschedulable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62445985/
这是我的代码 14 20 {"Confirm Email"} 21 在第 17 行我得到错误 Type '{ pathname: string; user: { em
这是我的代码 14 20 {"Confirm Email"} 21 在第 17 行我得到错误 Type '{ pathname: string; user: { em
这个问题已经有答案了: How do I compare strings in Java? (23 个回答) 已关闭 8 年前。 为什么 KeyEvent.getKeyText(0).substrin
我正在尝试 Rust 的新 wasm32-unknown-unknown 目标,我在调用数学函数(例如 sin、cos、exp、atan2)时遇到问题。 cargo .toml: [package]
当我为 spring-boot 创建启动项目时,我在 pom 文件中收到此错误。这只是为了创建一个基本的 Spring Boot 项目 Project build error: Invalid pac
我已经订阅了我想要传输的数据。但不知何故它不起作用。我收到此错误: The property pipe is not available for type "OperatorFunction" 这是我
运行以下查询时。select * from surgerys where to_char(dt_surgery ,'DD-MM-YYYY' ) = to_char('12-02-2012','DD-M
我在运行存储过程时遇到以下异常: com.microsoft.sqlserver.jdbc.SQLServerException:不支持从 UNKNOWN 到 UNKNOWN 的转换。 过程定义如下:
我尝试运行以下代码。顺便说一句,我对 python 和 sklearn 都是新手。 import pandas as pd import numpy as np from sklearn.linear
我已经阅读了关于未知类型的官方文档,但我很难真正理解它是如何工作的。 人们可以在文档中读到:“在没有首先断言或缩小到更具体的类型之前,不允许对未知进行任何操作。” 但如果我有这个功能: const f
我正在尝试在Mac OS中设置Hadoop 2.6.0 我正在关注这篇文章: http://hadoop.apache.org/docs/r2.4.0/hadoop-project-dist/hado
配置 Nexus docker 注册表和代理“dockerhub-proxy”后,如下所述: https://help.sonatype.com/repomanager3/formats/docker
我收到此错误 - “ValueError:未知标签类型:'unknown'” 我已经在网上搜索但无法摆脱这个错误,顺便说一句,我是 python 的新手:) 我的数据有 5 行 22 列,最后一列是标
使用 SHA256 摘要标识符 拉取图像失败 最佳答案 不幸的是,这是 DockerHub 删除 Docker 1.9 守护进程的向后兼容性的副作用。当使用 Docker 1.10 推送图像时,较旧的
我是 postgresql 的新手,正在尝试使用全文搜索 to_tsvector但是我遇到了错误。 SQL 和错误 SELECT to_tsvector('english', 'The quick b
每当我这样做时 npm run watch ,第一次编译工作正常 - 但经过几次编译后,我最终会得到这个错误: 95% emitting unnamed compat pluginError: UNK
在一个新的 Angular 应用程序中,我收到以下错误:Error from chokidar : Error: UNKNOWN: unknown error, watch我已经删除并重新安装 nod
使用 Typescipt 4.x.x 我写了一些代码来实现其他语言 Elm/Rust/Haskell 中常用的 Maybe/Option 类型。 我想写一个可以接受映射类型的通用函数 type MyM
const submitted = useSelector((state) => state.post.submitted) 对于上面的状态。我得到错误: (参数)状态:未知对象的类型为“未知”。 这
我正在尝试将多架构 docker 镜像推送到 docker hub 并遇到错误(在 https://github.com/docker/distribution/issues/3100 处打开了 do
我是一名优秀的程序员,十分优秀!