Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for tcpprobe (0.32 sec)

  1. tests/integration/pilot/tcp_probe_test.go

    	if !wantSuccess {
    		cfg.ReadinessTimeout = time.Second * 15
    	}
    	_, err := deployment.New(ctx).
    		With(&tcpProbe, cfg).
    		Build()
    	gotSuccess := err == nil
    	if gotSuccess != wantSuccess {
    		ctx.Errorf("tcpProbe app %v, got error %v, want success = %v", name, err, wantSuccess)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/prober.go

    	grpcprobe "k8s.io/kubernetes/pkg/probe/grpc"
    	httpprobe "k8s.io/kubernetes/pkg/probe/http"
    	tcpprobe "k8s.io/kubernetes/pkg/probe/tcp"
    	"k8s.io/utils/exec"
    
    	"k8s.io/klog/v2"
    )
    
    const maxProbeRetries = 3
    
    // Prober helps to check the liveness/readiness/startup of a container.
    type prober struct {
    	exec   execprobe.Prober
    	http   httpprobe.Prober
    	tcp    tcpprobe.Prober
    	grpc   grpcprobe.Prober
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:50:13 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. pkg/probe/tcp/tcp.go

    // New creates Prober.
    func New() Prober {
    	return tcpProber{}
    }
    
    // Prober is an interface that defines the Probe function for doing TCP readiness/liveness checks.
    type Prober interface {
    	Probe(host string, port int, timeout time.Duration) (probe.Result, string, error)
    }
    
    type tcpProber struct{}
    
    // Probe checks that a TCP connection to the address can be opened.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 16:57:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/tunnelingconfig/apply.go

    	networking "istio.io/api/networking/v1alpha3"
    )
    
    type ApplyFunc = func(tcpProxy *tcp.TcpProxy, destinationRule *networking.DestinationRule, subsetName string)
    
    // Apply configures tunneling_config in a given TcpProxy depending on the destination rule and the destination hosts
    var Apply ApplyFunc = func(tcpProxy *tcp.TcpProxy, destinationRule *networking.DestinationRule, subsetName string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/accesslog_test.go

    				verify(t, tc.encoding, l.AccessLog[0], tc.wantFormat)
    
    				for _, fc := range l.FilterChains {
    					for _, filter := range fc.Filters {
    						switch filter.Name {
    						case wellknown.TCPProxy:
    							tcpConfig := &tcp.TcpProxy{}
    							if err := filter.GetTypedConfig().UnmarshalTo(tcpConfig); err != nil {
    								t.Fatal(err)
    							}
    							if tcpConfig.GetCluster() == util.BlackHoleCluster {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/networkfilter.go

    // TcpProxy instance and builds a TCP filter out of it.
    func setAccessLogAndBuildTCPFilter(push *model.PushContext, node *model.Proxy,
    	config *tcp.TcpProxy, class istionetworking.ListenerClass, svc *model.Service,
    ) *listener.Filter {
    	accessLogBuilder.setTCPAccessLog(push, node, config, class, svc)
    
    	tcpFilter := &listener.Filter{
    		Name:       wellknown.TCPProxy,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. pkg/istio-agent/health/health_probers_test.go

    			server, port := createHTTPServer(200)
    			defer server.Close()
    			tcpProber := TCPProber{
    				Config: &v1alpha3.TCPHealthCheckConfig{
    					Host: "127.0.0.1",
    					Port: port,
    				},
    			}
    
    			if tt.expectedProbeResult == Unhealthy {
    				server.Close()
    			}
    
    			got, err := tcpProber.Probe(time.Second)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 14 19:26:09 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/networkfilter_test.go

    			tcpProxy := xdstest.ExtractTCPProxy(t, &listener.FilterChain{Filters: filters})
    			if tt.expectedTunnelingConfig == nil {
    				if tcpProxy.TunnelingConfig != nil {
    					t.Fatalf("Unexpected tunneling config in TcpProxy filter: %s", filters[0].String())
    				}
    			} else {
    				if tcpProxy.TunnelingConfig.GetHostname() != tt.expectedTunnelingConfig.hostname {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. pilot/test/xdstest/extract.go

    func ExtractTCPProxy(t test.Failer, fcs *listener.FilterChain) *tcpproxy.TcpProxy {
    	for _, fc := range fcs.Filters {
    		if fc.Name == wellknown.TCPProxy {
    			tcpProxy := &tcpproxy.TcpProxy{}
    			if fc.GetTypedConfig() != nil {
    				if err := fc.GetTypedConfig().UnmarshalTo(tcpProxy); err != nil {
    					t.Fatalf("failed to unmarshal tcp proxy: %v", err)
    				}
    			}
    			return tcpProxy
    		}
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/listener_test.go

    				Type: "HTTP+TCP",
    			},
    			inListener: &listener.Listener{
    				FilterChains: []*listener.FilterChain{{
    					Filters: []*listener.Filter{
    						{
    							Name: wellknown.TCPProxy,
    						},
    						{
    							Name: wellknown.TCPProxy,
    						},
    						{
    							Name: wellknown.HTTPConnectionManager,
    						},
    					},
    				}},
    			},
    			expect: true,
    		},
    		{
    			desc: "tcp-type-match",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 15:29:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top