k8s 源码分析
要深入理解 k8s,还是要对源码和运作机制有所了解,这本书还在创作中,可以跟踪看看。
技术面试的应该与不应该
面试如何做?该考察什么?重点在于:
- 沟通能力
- 思考和主动学习能力
- 基础知识和经验
- 对自己的定位和明确认知
Making Sense of Taints and Tolerations in Kubernetes
这篇把 Taints 和 Tolerations 解释的很清楚了,taint 对象是 node,tolerations 是 pod。
kubectl taint nodes host1 key1=value1:NoSchedule
kubectl taint nodes host1 key1=value1:NoExecute
kubectl taint nodes host1 key2=value2:NoSchedule
apiVersion: v1
kind: Pod
metadata:
name: pod-2
labels:
security: s1
spec:
containers:
- name: bear
image: supergiantkir/animals:bear
tolerations:
- key: "key1"
operator: "Equal"
value: "value1"
effect: "NoSchedule"
- key: "key1"
operator: "Equal"
value: "value1"
effect: "NoExecute"
- NoSchedule:不要调度
- NoExecute:如果有 pod 在跑,驱除
- PreferNoSchedule:倾向于不调度