diff --git a/Documentation/cloud-config.md b/Documentation/cloud-config.md index ffce8fc..68c701f 100644 --- a/Documentation/cloud-config.md +++ b/Documentation/cloud-config.md @@ -169,6 +169,7 @@ List of flannel configuration parameters: - **ip_masq**: Install IP masquerade rules for traffic outside of flannel subnet - **subnet_file**: Path to flannel subnet file to write out - **interface**: Interface (name or IP) that should be used for inter-host communication +- **public_ip**: IP accessible by other nodes for inter-host communication [flannel-readme]: https://github.com/coreos/flannel/blob/master/README.md diff --git a/config/flannel.go b/config/flannel.go index 043afc9..7a953f8 100644 --- a/config/flannel.go +++ b/config/flannel.go @@ -23,4 +23,5 @@ type Flannel struct { IPMasq string `yaml:"ip_masq" env:"FLANNELD_IP_MASQ"` SubnetFile string `yaml:"subnet_file" env:"FLANNELD_SUBNET_FILE"` Iface string `yaml:"interface" env:"FLANNELD_IFACE"` + PublicIP string `yaml:"public_ip" env:"FLANNELD_PUBLIC_IP"` }