apiserver can't access heapster
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Magnum | Status tracked in Rocky | |||||
Queens |
Fix Committed
|
Undecided
|
Spyros Trigazis | |||
Rocky |
Fix Released
|
Undecided
|
Spyros Trigazis |
Bug Description
kubernetes HPA can't work:
---
Warning FailedGetResour
---
the log mean that kube-apiserver can't access heapster, but I cant access heapster on minion node.
---
[root@cl-
^C
[root@cl-
PING 10.100.93.9 (10.100.93.9) 56(84) bytes of data.
^C
--- 10.100.93.9 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6132ms
[root@cl-
{
"metadata": {},
"items": [
{
"metadata": {
"name": "php-apache-
"namespace": "default",
"creationT
},
"timestamp": "2018-03-
"window": "1m0s",
"containers": [
{
"name": "php-apache",
"usage": {
"cpu": "0",
"memory": "14720Ki"
}
}
]
}
]
}
---
So I think the network of cluster has issuse:
If there is no flannel or calico service on master, how kube-apiserver access heapster?
cc @Spyros Trigazis
Changed in magnum: | |
assignee: | nobody → PanFengyun (pan-feng-yun) |
status: | New → In Progress |
I think we should specify hostnetwork=true for heapster. ptct2aceh- 0-lrtdb33taapq- kube-master- uxythaeaxs7e dashboard]# kubectl get hpa php-apache 0% / 20% 1 10 1 18h php-apache2 0% / 20% 1 10 1 18h
I have test it:
[root@cl-
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
php-apache Deployment/
php-apache2 Deployment/
do you agree?