Pod 容忍节点异常时间调整## Pod 容忍节点异常时间调整 ### 1. 原理说明 Kubernetes 集群节点处于异常状态之后需要有一个等待时间,才会对节点上的 Pod 进行驱逐。那么针对部分关键业务,是否可以调整这个时间,便于在节点发生异常时及时将 Pod 驱逐并在别的健康节点上重建? 要解决这个问题,我们首先要了解 Kubernetes 在节点异常时驱逐 Pod 的机制。 在 Kubernetes 1.13 这两个 feature gate,节点及其上 Pod 的生命周期管理将通过节点的 Condition 和 Taint 来进行,Kubernetes 会不断地检查所有节点状态,设置对应的 Condition,根据 Condition 为节点设置对应的 Taint,再根据 Taint 来驱逐节点上的 Pod。 同时在创建 Pod 时会默认为 Pod 添加相应的 tolerationSeconds 参数,指定当节点出现异常(如 参数,指定当节点出现异常(如 NotReady)时 Pod 还将在这个节点上运行多长的时间。 那么,节点发生异常到 Pod 被驱逐的时间,就取决于两个参数:1. 节点实际异常到被判断为不健康的时间;2. Pod 对节点不健康的容忍时间。 Kubernetes 集群中默认节点实际异常到被判断为不健康的时间为 40s, Pod 对节点 NotReady 的容忍时间为 5min, 也就是说, 节点实际异常0 码力 | 4 页 | 104.64 KB | 2 年前3
高效智能运维[云+社区技术沙龙第29期] - 腾讯云提高K8S集群资源利用率实践庄鹏锐 腾讯云高级工程师 ## 资源利用率分析 Node节点资源碎片 Pod Resource(requests)配置不合理 WorkLoad/HPA 副本数设置不合理 业务空闲时间 ## 解决方案 ## Pod 压缩 ## HPA ## 动态调度 Node 超卖 VPA 碎片处理 ## Pod 资源压缩  3rd Monitor Api Server HPA Object Queue Deploy and manage prometheus cluster Collect metrics Pod Pod Pod Node Exporters Prometheus-Operator 3rd jpg) - 动态调整Container Cgroup • requets 和 limit 比例设置 • Resource Range设置 - CheckPoint对象timeout时间 • Pod对象更新时间 • 资源合法性校验 ## THANKS 等  Result: Not Applicable configuration is passed in as arguments at container run time. #### 1.1.2 Ensure that the API server pod specification file ownership is set to root:root (Scored) Result: Not Applicable Remediation: RKE0 码力 | 54 页 | 447.77 KB | 2 年前3
Rancher Hardening Guide v2.3.5specific service account is assigned to the pod. Where access to the Kubernetes API from a pod is required, a specific service account should be created for that pod, and rights granted to that service account 9-rancher1-1" enable_network_policy: true default_pod_security_policy_template_id: "restricted" services: etcd: uid: 52034 gid: 52034 kube-api: pod_security_policy: true secrets_encryption_config: weave_node: "" weave_cni: "" pod_infra_container: "" ingress: "" ingress_backend: "" metrics_server: "" windows_pod_infra_container: "" ssh_key_path:0 码力 | 21 页 | 191.56 KB | 2 年前3
Rancher Hardening Guide v2.4requires a private IP to be provided when registering the custom nodes. • When setting the default_pod_security_policy_template_id: to restricted Rancher creates RoleBindings and ClusterRoleBindings on specific service account is assigned to the pod. Where access to the Kubernetes API from a pod is required, a specific service account should be created for that pod, and rights granted to that service account 9-rancher1-1" enable_network_policy: true default_pod_security_policy_template_id: "restricted" services: etcd: uid: 52034 gid: 52034 kube-api: pod_security_policy: true secrets_encryption_config:0 码力 | 22 页 | 197.27 KB | 2 年前3
OpenShift Container Platform 4.9 节点本文提供有关在集群中配置和管理节点、Pod和容器的说明。它还提供有关配置Pod调度和放置、使用作业(job)和 DaemonSet来自动执行操作,以及确保集群保持高效性的其他任务信息。 ## 目录 第1章 节点概述 ..... 9 1.1. 关于节点 ..... 9 读取操作 ..... 9 管理操作 ..... 10 增强操作 ..... 10 1.2. 关于 POD ..... 10 12 第2章 使用 POD ..... 13 2.1. 使用 POD ..... 13 2.1.1. 了解 pod ..... 13 2.1.2. pod 配置示例 ..... 13 2.1.3. 其他资源 ..... 16 2.2. 查看 POD ..... 16 2.2.1. 关于 pod ..... 16 2.2.2. 查看项目中的 pod ..... 16 2.3. 查看 pod 用量统计 ..... 17 2.2.4. 查看资源日志 ..... 17 2.3. 为 POD 配置 OPENSHIFT CONTAINER PLATFORM 集群 ..... 18 2.3.1. 配置 pod 重启后的行为 ..... 19 2.3.2. 限制可供 pod 使用的带宽 ..... 20 2.3.3. 了解如何使用 pod 中断预算来指定必须在线的0 码力 | 374 页 | 3.80 MB | 2 年前3
websockets Documentation
Release 4.00 码力 | 48 页 | 224.70 KB | 2 年前3
Fast and small C++0 码力 | 17 页 | 790.91 KB | 1 年前3
Django Q Documentation
Release 0.2.20 码力 | 25 页 | 188.69 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Pod节点Kubernetes容忍时长驱逐机制Node节点资源碎片Pod Resource(requests)配置不合理WorkLoad/HPA 副本数设置不合理业务空闲时间Pod 压缩JavaScriptECMAScriptDOMBOM代码压缩RancherCIS BenchmarkRBACPod Security PolicyNetwork PolicyOpenShift Container Platform污点与容限websockets版本4.0压缩协议状态异步迭代器Small String Optimizationconstexprtemplatestruct压缩对联结任务队列多进程计划任务加密压缩Redis













