Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix: update nodecustomdata to enable portmapper for kubenet+containerd (
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksywu authored Jan 26, 2021
1 parent e574b72 commit 74bbda2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parts/k8s/cloud-init/masternodecustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ write_files:
"subnet": "{{`{{.PodCIDR}}`}}",
"routes": [{ "dst": "0.0.0.0/0" }]
}
},
{
"type": "portmap",
"capabilities": {"portMappings": true},
"snat": false
}]
}
{{end}}
Expand Down
5 changes: 5 additions & 0 deletions parts/k8s/cloud-init/nodecustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ write_files:
"subnet": "{{`{{.PodCIDR}}`}}",
"routes": [{ "dst": "0.0.0.0/0" }]
}
},
{
"type": "portmap",
"capabilities": {"portMappings": true},
"snat": false
}]
}
{{end}}
Expand Down
10 changes: 10 additions & 0 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74bbda2

Please sign in to comment.