Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 225 for uds (0.02 sec)

  1. pkg/log/uds.go

    	msg, err := json.Marshal(logs)
    	if err != nil {
    		return fmt.Errorf("failed to sync uds log: %v", err)
    	}
    	resp, err := u.client.Post(u.url, "application/json", bytes.NewReader(msg))
    	if err != nil {
    		return fmt.Errorf("failed to send logs to uds server %v: %v", u.url, err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		return fmt.Errorf("uds server returns non-ok status %v: %v", u.url, resp.Status)
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 16 00:20:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. cni/pkg/log/uds.go

    }
    
    // StartUDSLogServer starts up a UDS server which receives log reported from CNI network plugin.
    func (l *UDSLogger) StartUDSLogServer(sockAddress string, stop <-chan struct{}) error {
    	if sockAddress == "" {
    		return nil
    	}
    	log.Info("Start a UDS server for CNI plugin logs")
    	unixListener, err := uds.NewListener(sockAddress)
    	if err != nil {
    		return fmt.Errorf("failed to create UDS listener: %v", err)
    	}
    	go func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. cni/pkg/log/uds_test.go

    )
    
    func TestUDSLog(t *testing.T) {
    	// Start UDS log server
    	udsSockDir := t.TempDir()
    	udsSock := filepath.Join(udsSockDir, "cni.sock")
    	logger := NewUDSLogger(istiolog.DebugLevel)
    	stop := make(chan struct{})
    	defer close(stop)
    	assert.NoError(t, logger.StartUDSLogServer(udsSock, stop))
    
    	// Configure log to tee to UDS server
    	stdout := os.Stdout
    	r, w, _ := os.Pipe()
    	os.Stdout = w
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/sds/server.go

    	"time"
    
    	"go.uber.org/atomic"
    	"google.golang.org/grpc"
    
    	mesh "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/security"
    	"istio.io/istio/pkg/uds"
    )
    
    const (
    	maxStreams    = 100000
    	maxRetryTimes = 5
    )
    
    // Server is the gPRC server that exposes SDS through UDS.
    type Server struct {
    	workloadSds *sdsservice
    
    	grpcWorkloadListener net.Listener
    
    	grpcWorkloadServer *grpc.Server
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 17:44:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. cluster/gce/manifests/konnectivity-server.yaml

          readOnly: true
        - name: konnectivity-uds
          mountPath: /etc/srv/kubernetes/konnectivity-server
          readOnly: false
      volumes:
      - name: varlogkonnectivityserver
        hostPath:
          path: /var/log/konnectivity-server.log
          type: FileOrCreate
      - name: pki
        hostPath:
          path: /etc/srv/kubernetes/pki
      - name: konnectivity-uds
        hostPath:
          path: /etc/srv/kubernetes/konnectivity-server
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 10:31:11 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go

    								TCP: &apiserver.TCPTransport{
    									URL: "http://127.0.0.1:8131",
    								},
    								UDS: &apiserver.UDSTransport{
    									UDSName: "/etc/srv/kubernetes/konnectivity/konnectivity-server.socket",
    								},
    							},
    						},
    					},
    				},
    			},
    		},
    		{
    			name:        "httpconnect-uds",
    			expectError: false,
    			contents: &apiserver.EgressSelectorConfiguration{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  7. cni/pkg/cmd/root.go

    	registerStringParameter(constants.CNIEventAddress, "/var/run/istio-cni/pluginevent.sock",
    		"The UDS server address which CNI plugin will forward ambient pod creation events to")
    	registerStringParameter(constants.ZtunnelUDSAddress, "/var/run/ztunnel/ztunnel.sock", "The UDS server address which ztunnel will connect to")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. cni/cmd/istio-cni/main.go

    	// Setup initial logging now. We will override it with proper logging over UDS later, but at this point we don't have the config
    	// read yet and do not want to be completely blind to logs.
    	if err := log.Configure(plugin.GetLoggingOptions(nil)); err != nil {
    		return err
    	}
    	defer func() {
    		// Log sync will send logs to install-cni container via UDS.
    		// We don't need a timeout here because underlying the log pkg already handles it.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin.go

    	}
    
    	return nil
    }
    
    func setupLogging(conf *Config) {
    	if conf.LogUDSAddress != "" {
    		// reconfigure log output with tee to UDS if UDS log is enabled.
    		if err := log.Configure(GetLoggingOptions(conf)); err != nil {
    			log.Error("Failed to configure istio-cni with UDS log")
    		}
    	}
    }
    
    func pluginResponse(conf *Config) error {
    	var result *cniv1.Result
    	if conf.PrevResult == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. pkg/kube/inject/testdata/inject/list.yaml.injected

                  port: 15021
                periodSeconds: 1
                timeoutSeconds: 3
              volumeMounts:
              - mountPath: /var/run/secrets/workload-spiffe-uds
                name: workload-socket
              - mountPath: /var/run/secrets/credential-uds
                name: credential-socket
              - mountPath: /var/run/secrets/workload-spiffe-credentials
                name: workload-certs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top