-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
"portmap" plugin lost #890
Comments
I have this issue as well. Fixed by downloading portmap to /opt/cni/bin |
…template from https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml requires portmap. Because flannel requires but kubernetes-cni does not install, it needs to be manually copied to /opt/cni/bin/portmap If portmap is not in place the symptom is the kube-dns will be stuck in CreatingContainer. This additional task should be temp until either flannel no longer requires portmap or kubernetes-cni installs by default.
Sounds like there are two workarounds.
AFAIK we don't package CNI plugins into the flannel image. Maybe we should update the docs? Sorry for the breakage, the portmap plugin is used for hostPort support |
@osoriano Thanks for the summary. IIUC this is only a problem for people using the kube-flannel.yml from master. It would be great to find a way to stop people from doing that! And it would also be great if flannel had a better way of ensuring that the CNI plugins it needs are installed on the host, maybe https://github.com/coreos/flannel-cni could be updated to install the portmap plugin |
https://github.com/coreos/flannel-cni already install the portmap plugin and is used by |
+1, just ran into this |
I have used |
|
@klausenbusk after I discovered that |
The 0.9.1 kube-flannel.yml is used, but hostPort still cannot work. Enviroment: CentOS Linux release 7.4.1708 (Core) [root@master ~]# kubectl version |
You mean this file? As you can clearly see, the portmapping is not enabled in the ConfigMap. Cf. https://github.com/coreos/flannel/blob/ce1f224dbd4f00f4abf6009bf412c31618d73921/Documentation/kube-flannel.yml#L55-L73 |
Thanks for your answer. I tried with portmappign enabled, but hostPort cannot work. I just reset the kubernetes cluster and install it again, and hostPort can work now. |
I think the kubernetes docs should be updated In (3/4) Installing a pod network, the flannel version is still v0.9.1. |
I encounter the same problem, any updates? |
Download cni plugins binaries and put it in |
This works for me with kubelet version v1.8.1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Flannel v0.9.1 image does not contains "portmap" plugin enabled in 014b2d5#diff-7891b552b026259e99d479b5e30d31ca
Expected Behavior
working cluster
Current Behavior
kube-dns pod in ContainerCreating state with
Failed create pod sandbox.
journalctl
shows:Possible Solution
Do not enable portmap
http://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml
Steps to Reproduce (for bugs)
kubeadm init --pod-network-cidr=10.244.0.0/16
kubectl apply -f http://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
kubeadm init join ...
Your Environment
The text was updated successfully, but these errors were encountered: