init
This commit is contained in:
12
taints/commands
Normal file
12
taints/commands
Normal file
@ -0,0 +1,12 @@
|
||||
kubectl taint nodes minikube demo=student:NoSchedule
|
||||
|
||||
minikube start --nodes 3 --keep-context=true -p scheduling
|
||||
|
||||
kubectl taint nodes m02 key=reserved:NoSchedule
|
||||
|
||||
|
||||
kubectl drain m02 --ignore-daemonsets --delete-emptydir-data
|
||||
|
||||
kubectl uncordon nodes m02
|
||||
|
||||
minikube delete -p scheduling
|
||||
14
taints/pod.yaml
Normal file
14
taints/pod.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: mypod
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx
|
||||
resources: {}
|
||||
tolerations:
|
||||
- key: "demo"
|
||||
operator: "Equal"
|
||||
value: "student"
|
||||
effect: "NoSchedule"
|
||||
Reference in New Issue
Block a user