create new ipset KUBE-NODE-PORT-SCTP-HASH and KUBE-NODE-PORT-LOCAL-SCTP-HASH for ipvs proxier

Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
k3s-v1.15.3
Andrew Sy Kim 2019-05-02 19:01:01 -04:00
parent 5b47a92ad8
commit 43ded7c4e2
1 changed files with 14 additions and 4 deletions

View File

@ -65,11 +65,21 @@ const (
kubeNodePortLocalSetUDPComment = "Kubernetes nodeport UDP port with externalTrafficPolicy=local" kubeNodePortLocalSetUDPComment = "Kubernetes nodeport UDP port with externalTrafficPolicy=local"
kubeNodePortLocalSetUDP = "KUBE-NODE-PORT-LOCAL-UDP" kubeNodePortLocalSetUDP = "KUBE-NODE-PORT-LOCAL-UDP"
kubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose" // This ipset is no longer active but still used in previous versions.
kubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP" // DO NOT create an ipset using this name
legacyKubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose"
legacyKubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP"
kubeNodePortLocalSetSCTPComment = "Kubernetes nodeport SCTP port with externalTrafficPolicy=local" // This ipset is no longer active but still used in previous versions.
kubeNodePortLocalSetSCTP = "KUBE-NODE-PORT-LOCAL-SCTP" // DO NOT create an ipset using this name
legacyKubeNodePortLocalSetSCTPComment = "Kubernetes nodeport SCTP port with externalTrafficPolicy=local"
legacyKubeNodePortLocalSetSCTP = "KUBE-NODE-PORT-LOCAL-SCTP"
kubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose with type 'hash ip:port'"
kubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP-HASH"
kubeNodePortLocalSetSCTPComment = "Kubernetes nodeport SCTP port with externalTrafficPolicy=local with type 'hash ip:port'"
kubeNodePortLocalSetSCTP = "KUBE-NODE-PORT-LOCAL-SCTP-HASH"
) )
// IPSetVersioner can query the current ipset version. // IPSetVersioner can query the current ipset version.