Kubernetes Affinity Anti-Affinity Taint Tolerance and Maintenance Eviction

Affinity Official website: https://kubernetes.io/zh/docs/concepts/scheduling-eviction/assign-pod-node/ (1) Node affinity pod.spec.nodeAffinity ●preferredDuringSchedulingIgnoredDuringExecution: soft strategy ●requiredDuringSchedulingIgnoredDuringExecution: hard strategy (2) Pod affinity pod.spec.affinity.podAffinity/podAntiAffinity ●preferredDuringSchedulingIgnoredDuringExecution: soft strategy ●requiredDuringSchedulingIgnoredDuringExecution: hard strategy Simple understanding: Suppose you are a traveler and you plan to travel to a strange city. You can think of yourself as a Pod, and different attractions in the city can […]

Kubernetes Taint and Toleration

Author:rab Directory Preface 1. Taint 1.1 Overview 1.2 View node Taint 1.3 Mark node Taint 1.4 Delete node Taint 2. Toleration Foreword Taint and Toleration in Kubernetes are important concepts for scheduling and managing container workloads, especially in multi-node clusters. They allow you to specify which nodes can host which Pods, and control which nodes […]

Cordon sets the node to be unschedulable, uncordon restores the node to be schedulable, drain is used for maintenance, and taint sets the taint of the updated node.

Foreword Environment: k8s 1.22.15, docker I have been confused about the cordon, drain, and taint commands, so let’s distinguish them. cordon sets the node to be unschedulable The kubectl cordon NODE command sets the node to be unschedulable. It is just that the node is unschedulable. Existing pods will not be evicted, and new pods […]

Code reproduction problem “Nuclei Segmentation with Mixed Points and Masks Selected from Uncertainty”

Code reproduction “Nuclei Segmentation with Mixed Points and Masks Selected from Uncertainty” Question 1 AttributeError: module scipy.misc’ has no attribute imread’, imsave problem Reference blog: https://blog.csdn.net/huang1024rui/article/details/119668502?spm=1001.2014.3001.5506 1.1 Solution to ‘imread’ Solution to AttributeError: module scipy.misc’ has no attribute \’imread’ code show as below: from scipy import misc img = misc.imread(image_path) The error is as follows: […]

k8s resource control (taint and tolerance)

Table of contents One: stain 1.1 The role of stain 1.2 Composition of stains 1.3 Setting, viewing, removing stains 1.4 Example Two: Tolerance 2.1 The role of tolerance 2.2 Example 2.2.1 Set taint on both nodes 2.2.2 Configure tolerance on pod 2.3 Notes Operations on pods when updating node 2.4 Three: Pod startup phase 3.1 […]

Kubernetes Scheduler – Scheduling Affinity – Taint, Tolerance, – Fixed Nodes

Kubernetes Scheduler-Scheduling Instructions Introduction Scheduler is the scheduler of kubernetes. Its main task is to allocate defined pods to the nodes of the cluster. It sounds very simple, but there is a lot to consider: Fairness: How to ensure that each node can be allocated resources Efficient resource utilization: all resources in the cluster are […]

k8s-Taint and Tolerations — use

1. Taint Node affinity, is an attribute (preference or hard requirement) of a Pod that causes the Pod to be attracted to a specific type of node Taint is the opposite, it enables a node to exclude a specific class of pods Taint and Toleration work together to prevent Pods from being assigned to inappropriate […]

Pod taint, tolerance policy, exact match, fuzzy match/Pod priority and preemption, container security

kubernetes Taint and Tolerance Taint strategy Try not to schedule: PreferNoSchedule Not scheduled: NoSchedule Eviction node: NoExecute Manage taint tags # View taint strategy [root@master ~]# kubectl describe nodes|grep Taints Taints: node-role.kubernetes.io/master:NoSchedule Taints: <none> Taints: <none> Taints: <none> Taints: <none> Taints: <none> # node-0001 set taint policy PreferNoSchedule [root@master ~]# kubectl taint node node-0001 k=v1:PreferNoSchedule […]

[kubernetes series] Taints and tolerations of Kubernetes

Overview Node affinity is an attribute (preference or hard requirement) of a pod that causes a pod to be preferentially assigned to a specific class of nodes. Taints do the opposite, enabling nodes to repel a specific class of pods. Taints work together with tolerations to ensure that Pods are not scheduled on inappropriate nodes. […]

CKA test preparation experiment | node taint and pod tolerations

Book source: “CKA/CKAD Test Guide: From Docker to Kubernetes Complete Raiders” Organize the teacher’s course content and experimental notes while studying, and share them with everyone. Any infringement will be deleted. Thank you for your support! Attach a summary post: CKA test preparation experiment | summary The previously created pods are only scheduled to two […]