Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for Setns (0.04 sec)

  1. cni/pkg/nodeagent/pod_cache_test.go

    	nspath1 := "/path/to/netns/1"
    	nspath2 := "/path/to/netns/2"
    
    	netns1, err := p.UpsertPodCache(pod, nspath1)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	netns2, err := p.UpsertPodCache(pod, nspath2)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	if !reflect.DeepEqual(netns1, netns2) {
    		t.Fatalf("Expected the same Netns for the same uid, got %v and %v", netns1, netns2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/README.md

    | ------------- | ------------- | ------------- |
    | from CNI plugin (sidecar) | host $PATH  | pod netns context |
    | from init container  (sidecar) | init container $PATH  | pod netns context |
    | from CNI agent (ambient) | CNI container $PATH  | pod netns context |
    | from CNI agent (ambient) | CNI container $PATH  | host netns context |
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pkg/util/kernel/constants.go

    // (ref: https://github.com/torvalds/linux/commit/13b287e8d1cad951634389f85b8c9b816bd3bb1e)
    const TCPKeepAliveTimeNamespacedKernelVersion = "4.5"
    
    // TCPKeepAliveIntervalNamespacedKernelVersion is the kernel version in which net.ipv4.tcp_keepalive_intvl was namespaced(netns).
    // (ref: https://github.com/torvalds/linux/commit/b840d15d39128d08ed4486085e5507d2617b9ae1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	ConstructInitialSnapshot(ambientPods []*corev1.Pod) error
    	Start(ctx context.Context)
    
    	//	IsPodInMesh(ctx context.Context, pod *metav1.ObjectMeta, netNs string) (bool, error)
    	AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error
    	RemovePodFromMesh(ctx context.Context, pod *corev1.Pod) error
    	DelPodFromMesh(ctx context.Context, pod *corev1.Pod) error
    
    	Stop()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. cni/pkg/plugin/cnieventclient.go

    	for _, ipc := range prevResIps {
    		ncconfigs = append(ncconfigs, nodeagent.IPConfig{Interface: ipc.Interface, Address: ipc.Address, Gateway: ipc.Gateway})
    	}
    	// Currently we only use the netns from the original CNI event
    	addEvent := nodeagent.CNIPluginAddEvent{Netns: event.Netns, PodName: podName, PodNamespace: podNamespace, IPs: ncconfigs}
    	eventData, err := json.Marshal(addEvent)
    	if err != nil {
    		return err
    	}
    	var response *http.Response
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. pkg/proxy/util/nfacct/handler.go

    // an instance of netlinkHandler with the initialized socket.
    func newNetlinkHandler() (handler, error) {
    	socket, err := nl.GetNetlinkSocketAt(netns.None(), netns.None(), unix.NETLINK_NETFILTER)
    	if err != nil {
    		return nil, err
    	}
    	return &netlinkHandler{socket: socket}, nil
    }
    
    // newRequest creates a netlink request tailored for the NFAcct subsystem encapsulating the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/cni-watcher.go

    	return msg, nil
    }
    
    func (s *CniPluginServer) ReconcileCNIAddEvent(ctx context.Context, addCmd CNIPluginAddEvent) error {
    	log := log.WithLabels("cni-event", addCmd)
    
    	log.Debugf("netns: %s", addCmd.Netns)
    
    	// The CNI node plugin should have already checked the pod against the k8s API before forwarding us the event,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. manifests/charts/istio-cni/templates/daemonset.yaml

                - mountPath: /var/run/istio-cni
                  name: cni-socket-dir
                {{- if .Values.cni.ambient.enabled }}
                - mountPath: /host/var/run/netns
                  mountPropagation: HostToContainer
                  name: cni-netns-dir
                - mountPath: /var/run/ztunnel
                  name: cni-ztunnel-sock-dir
                {{ end }}
              resources:
    {{- if .Values.cni.resources }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. cni/pkg/plugin/cnieventclient_test.go

    		var msg nodeagent.CNIPluginAddEvent
    		err = json.Unmarshal(data, &msg)
    		assert.NoError(t, err)
    		assert.Equal(t, msg.PodName, testPod)
    		assert.Equal(t, msg.PodNamespace, testNS)
    		assert.Equal(t, msg.Netns, fakeCmdArgs.Netns)
    		res.WriteHeader(http.StatusOK)
    		res.Write([]byte("server happy"))
    	}))
    	defer func() { testServer.Close() }()
    
    	cniC := fakeCNIEventClient(testServer.URL)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. cni/pkg/plugin/sidecar_intercept_rule_mgr.go

    package plugin
    
    // InterceptRuleMgr configures networking tables (e.g. iptables or nftables) for
    // redirecting traffic to an Istio proxy.
    type InterceptRuleMgr interface {
    	Program(podName, netns string, redirect *Redirect) error
    }
    
    // Constructor for iptables InterceptRuleMgr
    func IptablesInterceptRuleMgr() InterceptRuleMgr {
    	return newIPTables()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 940 bytes
    - Viewed (0)
Back to top