每周阅读(3/4/2019)

2019-03-11  本文已影响3人  Jeff

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"
上一篇 下一篇

猜你喜欢

热点阅读