Skip to content

Commit

Permalink
Enable portmap CNI plugin with kube-router (#6204)
Browse files Browse the repository at this point in the history
... to have working `hostPort` for containers.

See: https://www.kube-router.io/docs/user-guide/#hostport-support
  • Loading branch information
EBCEEB authored Jun 10, 2020
1 parent a7b8708 commit 5a31123
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/network_plugin/kube-router/templates/cni-conf.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
{% endif %}
"type":"host-local"
}
},
{
"type":"portmap",
"capabilities":{
"portMappings":true
}
}
]
}

0 comments on commit 5a31123

Please sign in to comment.