Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 847 for prober (0.1 sec)

  1. pkg/istio-agent/health/health_probers.go

    }
    
    type EnvoyProber struct {
    	Config ready.Prober
    }
    
    var _ Prober = &EnvoyProber{}
    
    func (a EnvoyProber) Probe(time.Duration) (ProbeResult, error) {
    	if err := a.Config.Check(); err != nil {
    		return Unhealthy, err
    	}
    	return Healthy, nil
    }
    
    type AggregateProber struct {
    	Probes []Prober
    }
    
    var _ Prober = &AggregateProber{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/prober_manager_test.go

    	m.CleanupPods(desiredPods)
    
    	removedProbes := []probeKey{
    		{"pod_cleanup", "prober1", readiness},
    		{"pod_cleanup", "prober2", liveness},
    		{"pod_cleanup", "prober3", startup},
    	}
    	expectedProbes := []probeKey{
    		{"pod_keep", "prober1", readiness},
    		{"pod_keep", "prober2", liveness},
    		{"pod_keep", "prober3", startup},
    	}
    	if err := waitForWorkerExit(t, m, removedProbes); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. pkg/probe/tcp/tcp.go

    import (
    	"net"
    	"strconv"
    	"time"
    
    	"k8s.io/kubernetes/pkg/probe"
    
    	"k8s.io/klog/v2"
    )
    
    // 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{}
    
    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. pkg/probe/http/http.go

    	return httpProber{transport, followNonLocalRedirects}
    }
    
    // Prober is an interface that defines the Probe function for doing HTTP readiness/liveness checks.
    type Prober interface {
    	Probe(req *http.Request, timeout time.Duration) (probe.Result, string, error)
    }
    
    type httpProber struct {
    	transport               *http.Transport
    	followNonLocalRedirects bool
    }
    
    // Probe returns a ProbeRunner capable of running an HTTP check.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 10 00:37:32 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory.go

    		return newETCD3ProberMonitor(c)
    	default:
    		return nil, fmt.Errorf("unknown storage type: %s", c.Type)
    	}
    }
    
    // Prober is an interface that defines the Probe function for doing etcd readiness/liveness checks.
    type Prober interface {
    	Probe(ctx context.Context) error
    	Close() error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. pkg/probe/grpc/grpc.go

    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/probe"
    )
    
    // Prober is an interface that defines the Probe function for doing GRPC readiness/liveness/startup checks.
    type Prober interface {
    	Probe(host, service string, port int, timeout time.Duration) (probe.Result, string, error)
    }
    
    type grpcProber struct {
    }
    
    // New Prober for execute grpc probe
    func New() Prober {
    	return grpcProber{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 19:28:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. pkg/probe/http/http_test.go

    		redirect             string
    		expectLocalResult    probe.Result
    		expectNonLocalResult probe.Result
    	}{
    		"local success":   {"/success", probe.Success, probe.Success},
    		"local fail":      {"/fail", probe.Failure, probe.Failure},
    		"newport success": {newportServer.URL + "/success", probe.Success, probe.Success},
    		"newport fail":    {newportServer.URL + "/fail", probe.Failure, probe.Failure},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:40:08 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  8. pilot/cmd/pilot-agent/status/grpcready/probe.go

    )
    
    var _ ready.Prober = &probe{}
    
    type probe struct {
    	sync.RWMutex
    	bootstrapPath string
    	bootstrap     *grpcxds.Bootstrap
    }
    
    // NewProbe returns a probe that checks if a valid bootstrap file can be loaded once.
    // If that bootstrap file has a file_watcher cert provider, we also ensure those certs exist.
    func NewProbe(bootstrapPath string) ready.Prober {
    	return &probe{bootstrapPath: bootstrapPath}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 28 16:58:31 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  9. pkg/kubelet/prober/common_test.go

    	).(*manager)
    	// Don't actually execute probes.
    	m.prober.exec = fakeExecProber{probe.Success, nil}
    	return m
    }
    
    func newTestWorker(m *manager, probeType probeType, probeSpec v1.Probe) *worker {
    	pod := getTestPod()
    	setTestProbe(pod, probeType, probeSpec)
    	return newWorker(m, probeType, pod, pod.Spec.Containers[0])
    }
    
    type fakeExecProber struct {
    	result probe.Result
    	err    error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. pkg/kubelet/prober/worker.go

    			return true
    		}
    	} else {
    		// Disable other probes until container has started.
    		if w.probeType != startup {
    			return true
    		}
    	}
    
    	// Note, exec probe does NOT have access to pod environment variables or downward API
    	result, err := w.probeManager.prober.probe(ctx, w.probeType, w.pod, status, w.container, w.containerID)
    	if err != nil {
    		// Prober error, throw away the result.
    		return true
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 01:28:06 UTC 2023
    - 10.7K bytes
    - Viewed (0)
Back to top