Added portmap cni plugin
parent
bf2850974e
commit
c6a5e03ed3
|
@ -79,10 +79,12 @@ POD_CIDR=$(curl -s -H "Metadata-Flavor: Google" \
|
||||||
Create the `bridge` network configuration file:
|
Create the `bridge` network configuration file:
|
||||||
|
|
||||||
```
|
```
|
||||||
cat <<EOF | sudo tee /etc/cni/net.d/10-bridge.conf
|
cat <<EOF | sudo tee /etc/cni/net.d/10-bridge.conflist
|
||||||
{
|
{
|
||||||
"cniVersion": "0.3.1",
|
"cniVersion": "0.3.1",
|
||||||
"name": "bridge",
|
"name": "bridge",
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
"type": "bridge",
|
"type": "bridge",
|
||||||
"bridge": "cnio0",
|
"bridge": "cnio0",
|
||||||
"isGateway": true,
|
"isGateway": true,
|
||||||
|
@ -94,6 +96,13 @@ cat <<EOF | sudo tee /etc/cni/net.d/10-bridge.conf
|
||||||
],
|
],
|
||||||
"routes": [{"dst": "0.0.0.0/0"}]
|
"routes": [{"dst": "0.0.0.0/0"}]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "portmap",
|
||||||
|
"capabilities": {"portMappings": true},
|
||||||
|
"snat": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue