-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daemonset is trying to schedule on master #29108
Comments
@davidopp PTAL |
Ok, dns was bad example: % kubectl get pods
default reverse-proxy-1e5jp 1/1 Running 0 5h
default reverse-proxy-8ubrr 0/1 ContainerCreating 0 5h
default reverse-proxy-lgfrh 1/1 Running 0 5h
default squid-dmvsj 1/1 Running 0 5h
default squid-k4yin 0/1 ContainerCreating 0 5h
default squid-ldfxx 1/1 Running 0 5h % kubectl describe pod/reverse-proxy-8ubrr pod/squid-k4yin
Name: reverse-proxy-8ubrr
Namespace: default
Node: ip-172-20-119-184.us-west-1.compute.internal/172.20.119.184
Start Time: Mon, 18 Jul 2016 14:04:24 +0200
Labels: name=reverse-proxy
Status: Pending
IP:
Controllers: DaemonSet/reverse-proxy
Containers:
reverse-proxy:
Container ID:
Image: my-company/kubernetes-reverseproxy
Image ID:
Port: 80/TCP
QoS Tier:
cpu: BestEffort
memory: BestEffort
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment Variables:
ETCD: 172.20.119.184:4001
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
default-token-cxdw7:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-cxdw7
Events:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
5h 3s 1950 {kubelet ip-172-20-119-184.us-west-1.compute.internal} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "POD" with RunContainerError: "runContainer: Error response from daemon: no available IPv4 addresses on this network's address pools: bridge (b355fd5c937ecebce956807ba588550f33589ff04ff2458f5593f2caa03af76a)"
Name: squid-k4yin
Namespace: default
Node: ip-172-20-119-184.us-west-1.compute.internal/172.20.119.184
Start Time: Mon, 18 Jul 2016 14:00:48 +0200
Labels: name=squid
Status: Pending
IP:
Controllers: DaemonSet/squid
Containers:
squid:
Container ID:
Image: sameersbn/squid:3.3.8-15
Image ID:
Port: 3128/TCP
QoS Tier:
cpu: BestEffort
memory: BestEffort
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment Variables:
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
default-token-cxdw7:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-cxdw7
Events:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
5h 3s 1954 {kubelet ip-172-20-119-184.us-west-1.compute.internal} Warning FailedSync Error syncing pod, skipping: failed to "StartContainer" for "POD" with RunContainerError: "runContainer: Error response from daemon: no available IPv4 addresses on this network's address pools: bridge (b355fd5c937ecebce956807ba588550f33589ff04ff2458f5593f2caa03af76a)" 3x squid and 3x reverse proxy, but only 2 minions and 1 master. % kubectl get nodes NAME STATUS AGE
ip-172-20-110-246.us-west-1.compute.internal Ready 5h
ip-172-20-119-184.us-west-1.compute.internal Ready,SchedulingDisabled 5h
ip-172-20-91-250.us-west-1.compute.internal Ready 5h |
This is working as intended, see #28356 Regular pods will not schedule on master but DaemonSet pods do. We'll make this behavior selectable at the pod level soon (probably not for 1.4 though). For now, you need to not have the master node's kubelet register with the master if you don't want pods to schedule there. See the issue I mentioned for more details. cc/ @mikedanese |
DaemonSets now already respects taints and tolerations. You can register a taint for your master with a kubelet flag |
For example:
The text was updated successfully, but these errors were encountered: