Skip to content

Commit 289c18e

Browse files
committed
Add portmap CNI plugin for k8s >= 1.9
Older CNI versions don't have the portmap plugin, but we should make it available.
1 parent 99d6ef5 commit 289c18e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nodeup/pkg/model/network.go

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ func (b *NetworkBuilder) Build(c *fi.ModelBuilderContext) error {
4747
assetNames = append(assetNames, "bridge", "host-local", "loopback", "ptp")
4848
// Do we need tuning?
4949

50+
if b.IsKubernetesGTE("1.9") {
51+
assetNames = append(assetNames, "portmap")
52+
}
53+
5054
// TODO: Only when using flannel ?
5155
assetNames = append(assetNames, "flannel")
5256
} else if networking.Kopeio != nil {

0 commit comments

Comments
 (0)