K8s Lab 把当前仓库文档整理成一个可阅读的网页站点

Repository Reading Site

control-plane-with-toleration.yaml

manifests/03-scheduling/control-plane-with-toleration.yaml

Text Assetmanifests/03-scheduling/control-plane-with-toleration.yaml388 B2026年4月9日 17:44查看原始内容
apiVersion: v1
kind: Pod
metadata:
  name: cp-only-with-toleration
  namespace: learn-k8s
  labels:
    lesson: scheduling
spec:
  nodeSelector:
    kubernetes.io/hostname: us480851516617a
  tolerations:
  - key: node-role.kubernetes.io/control-plane
    operator: Exists
    effect: NoSchedule
  containers:
  - name: main
    image: busybox:1.36
    command: ["sh", "-c", "sleep 3600"]