Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CreateHostRulesForHealthChecks (1.16 sec)

  1. cni/pkg/iptables/iptables_test.go

    				cfg := constructTestConfig()
    				cfg.EnableIPv6 = ipv6
    				tt.config(cfg)
    				ext := &dep.DependenciesStub{}
    				iptConfigurator, _ := NewIptablesConfigurator(cfg, ext, EmptyNlDeps())
    				err := iptConfigurator.CreateHostRulesForHealthChecks(&probeSNATipv4, &probeSNATipv6)
    				if err != nil {
    					t.Fatal(err)
    				}
    
    				compareToGolden(t, ipv6, tt.name, ext.ExecutedAll)
    			})
    		}
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server.go

    	// Create hostprobe rules now, in the host netns
    	// Later we will reuse this same configurator inside the pod netns for adding other rules
    	iptablesConfigurator.DeleteHostRules()
    
    	if err := iptablesConfigurator.CreateHostRulesForHealthChecks(&HostProbeSNATIP, &HostProbeSNATIPV6); err != nil {
    		return nil, fmt.Errorf("error initializing the host rules for health checks: %w", err)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. cni/pkg/iptables/iptables.go

    // - kubelet (node-local healthchecks, which we do not capture)
    // - kube-proxy (fowarded/proxied traffic from LoadBalancer-backed services, potentially with public IPs, which we must capture)
    func (cfg *IptablesConfigurator) CreateHostRulesForHealthChecks(hostSNATIP, hostSNATIPV6 *netip.Addr) error {
    	// Append our rules here
    	builder := cfg.appendHostRules(hostSNATIP, hostSNATIPV6)
    
    	log.Info("Adding host netnamespace iptables rules")
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
Back to top