Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for ipvs3 (0.04 sec)

  1. pkg/proxy/ipvs/proxier_test.go

    	ipvs := ipvstest.NewFake()
    	ipset := ipsettest.NewFake(testIPSetVersion)
    	fp := NewFakeProxier(ctx, ipt, ipvs, ipset, nil, nil, v1.IPv4Protocol)
    
    	// all deleted expect ipvs2
    	activeServices := sets.New("ipvs2")
    	// All ipvs services in the system.
    	currentServices := map[string]*utilipvs.VirtualServer{
    		"ipvs0": { // deleted with real servers
    			Address:   netutils.ParseIPSloppy("1.1.1.1"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/util/ipvs.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package ipvs
    
    import (
    	"net"
    	"strconv"
    	"strings"
    	"time"
    )
    
    // Interface is an injectable interface for running ipvs commands.  Implementations must be goroutine-safe.
    type Interface interface {
    	// Flush clears all virtual servers in system. return occurred error immediately.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/testing/fake_test.go

    	}
    	fake.SetLocalAddresses("kube-ipvs0", "1.2.3.4", "4.3.2.1")
    	addr, _ = fake.GetAllLocalAddresses()
    	expected = sets.New("1.2.3.4", "4.3.2.1")
    	if !addr.Equal(expected) {
    		t.Errorf("Unexpected mismatch, expected: %v, got: %v", expected, addr)
    	}
    	addr, _ = fake.GetAllLocalAddressesExcept("kube-ipvs0")
    	expected = sets.New("1.2.3.4")
    	if !addr.Equal(expected) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. pkg/proxy/apis/config/types.go

    	// in an immediate IPVS resync.
    	MinSyncPeriod metav1.Duration
    	// scheduler is the IPVS scheduler to use
    	Scheduler string
    	// excludeCIDRs is a list of CIDRs which the ipvs proxier should not touch
    	// when cleaning up ipvs services.
    	ExcludeCIDRs []string
    	// strictARP configures arp_ignore and arp_announce to avoid answering ARP queries
    	// from kube-ipvs0 interface
    	StrictARP bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/proxier.go

    	// BUG: https://github.com/moby/ipvs/issues/27
    	// If ipvs is not compiled into the kernel no error is returned and handle==nil.
    	// This in turn causes ipvs.GetVirtualServers and ipvs.AddVirtualServer
    	// to return ok (err==nil). If/when this bug is fixed parameter "ipvs" will be nil
    	// if ipvs is not supported by the kernel. Until then a re-read work-around is used.
    	if ipvs == nil {
    		return fmt.Errorf("Ipvs not supported by the kernel")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/testing/util.go

    limitations under the License.
    */
    
    package testing
    
    import (
    	utilipset "k8s.io/kubernetes/pkg/proxy/ipvs/ipset"
    )
    
    // ExpectedVirtualServer is the expected ipvs rules with VirtualServer and RealServer
    // VSNum is the expected ipvs virtual server number
    // IP:Port protocol is the expected ipvs vs info
    // RS is the RealServer of this expected VirtualServer
    type ExpectedVirtualServer struct {
    	VSNum    int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/README.md

    - [IPVS](#ipvs)
      - [What is IPVS](#what-is-ipvs)
      - [IPVS vs. IPTABLES](#ipvs-vs-iptables)
        - [When IPVS falls back to IPTABLES](#when-ipvs-falls-back-to-iptables)
      - [Run kube-proxy in IPVS mode](#run-kube-proxy-in-ipvs-mode)
        - [Prerequisite](#prerequisite)
        - [Local UP Cluster](#local-up-cluster)
        - [GCE Cluster](#gce-cluster)
        - [Cluster Created by Kubeadm](#cluster-created-by-kubeadm)
      - [Debug](#debug)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 02:32:29 UTC 2021
    - 18.8K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/util/ipvs_linux.go

    limitations under the License.
    */
    
    package ipvs
    
    import (
    	"errors"
    	"fmt"
    	"net"
    	"strings"
    	"sync"
    	"time"
    
    	libipvs "github.com/moby/ipvs"
    
    	"golang.org/x/sys/unix"
    	"k8s.io/klog/v2"
    )
    
    // runner implements ipvs.Interface.
    type runner struct {
    	ipvsHandle *libipvs.Handle
    	mu         sync.Mutex // Protect Netlink calls
    }
    
    // Protocol is the IPVS service protocol type
    type Protocol uint16
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_linux.go

    				utilsysctl.New(),
    				execer,
    				config.IPVS.SyncPeriod.Duration,
    				config.IPVS.MinSyncPeriod.Duration,
    				config.IPVS.ExcludeCIDRs,
    				config.IPVS.StrictARP,
    				config.IPVS.TCPTimeout.Duration,
    				config.IPVS.TCPFinTimeout.Duration,
    				config.IPVS.UDPTimeout.Duration,
    				config.IPTables.MasqueradeAll,
    				int(*config.IPTables.MasqueradeBit),
    				localDetectors,
    				s.Hostname,
    				s.NodeIPs,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  10. pkg/proxy/ipvs/graceful_termination.go

    // rsList is the rs list to graceful termination, ipvs is the ipvsinterface to do ipvs delete/update work
    type GracefulTerminationManager struct {
    	rsList graceTerminateRSList
    	ipvs   utilipvs.Interface
    }
    
    // NewGracefulTerminationManager create a gracefulTerminationManager to manage ipvs rs graceful termination work
    func NewGracefulTerminationManager(ipvs utilipvs.Interface) *GracefulTerminationManager {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top