mirror of https://github.com/kubernetes/kops.git
Omit protocols in Openstack CNI Rules
This commit is contained in:
parent
4a57f8fb2d
commit
ac0b62680f
|
|
@ -337,7 +337,6 @@ func (b *FirewallModelBuilder) addCNIRules(c *fi.ModelBuilderContext, sgMap map[
|
||||||
udpPorts = append(udpPorts, 6783)
|
udpPorts = append(udpPorts, 6783)
|
||||||
tcpPorts = append(tcpPorts, 6783)
|
tcpPorts = append(tcpPorts, 6783)
|
||||||
udpPorts = append(udpPorts, 6784)
|
udpPorts = append(udpPorts, 6784)
|
||||||
protocols = append(protocols, ProtocolIPEncap)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if b.Cluster.Spec.Networking.Flannel != nil {
|
if b.Cluster.Spec.Networking.Flannel != nil {
|
||||||
|
|
@ -345,7 +344,6 @@ func (b *FirewallModelBuilder) addCNIRules(c *fi.ModelBuilderContext, sgMap map[
|
||||||
case "", "udp":
|
case "", "udp":
|
||||||
udpPorts = append(udpPorts, 8285)
|
udpPorts = append(udpPorts, 8285)
|
||||||
case "vxlan":
|
case "vxlan":
|
||||||
protocols = append(protocols, ProtocolIPEncap)
|
|
||||||
udpPorts = append(udpPorts, 8472)
|
udpPorts = append(udpPorts, 8472)
|
||||||
default:
|
default:
|
||||||
glog.Warningf("unknown flannel networking backend %q", b.Cluster.Spec.Networking.Flannel.Backend)
|
glog.Warningf("unknown flannel networking backend %q", b.Cluster.Spec.Networking.Flannel.Backend)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue