Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 202 for portMap (0.15 sec)

  1. cni/test/testdata/pre/noname_calico.conflist

            "type": "calico-ipam"
          },
          "policy": {
            "type": "k8s"
          },
          "kubernetes": {
            "kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
          }
        },
        {
          "type": "portmap",
          "snat": true,
          "capabilities": {
            "portMappings": true
          }
        }
      ]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 499 bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/conversion.go

    			break
    		}
    		// store the service port to node port mappings
    		portMap := make(map[uint32]uint32)
    		for _, p := range svc.Spec.Ports {
    			portMap[uint32(p.Port)] = uint32(p.NodePort)
    		}
    		istioService.Attributes.ClusterExternalPorts = map[cluster.ID]map[uint32]uint32{clusterID: portMap}
    		// address mappings will be done elsewhere
    	case corev1.ServiceTypeLoadBalancer:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    					TLSMode:        "istio",
    					Namespace:      "ns1",
    					Locality: model.Locality{
    						ClusterID: cluster.ID(clusterID),
    					},
    				},
    				PortMap: map[string]uint32{
    					"http": 80,
    				},
    			},
    		},
    		{
    			name: "simple - tls mode disabled",
    			wle: config.Config{
    				Meta: config.Meta{
    					Namespace: "ns1",
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  4. pilot/pkg/model/service.go

    	// Where the workloadInstance come from, valid values are`Pod` or `WorkloadEntry`
    	Kind     workloadKind      `json:"kind"`
    	Endpoint *IstioEndpoint    `json:"endpoint,omitempty"`
    	PortMap  map[string]uint32 `json:"portMap,omitempty"`
    	// Can only be selected by service entry of DNS type.
    	DNSServiceEntryOnly bool `json:"dnsServiceEntryOnly,omitempty"`
    }
    
    func (instance *WorkloadInstance) CmpOpts() []cmp.Option {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/http/httpproxy/proxy.go

    	}
    }
    
    var portMap = map[string]string{
    	"http":   "80",
    	"https":  "443",
    	"socks5": "1080",
    }
    
    // canonicalAddr returns url.Host but always with a ":port" suffix
    func canonicalAddr(url *url.URL) string {
    	addr := url.Hostname()
    	if v, err := idnaASCII(addr); err == nil {
    		addr = v
    	}
    	port := url.Port()
    	if port == "" {
    		port = portMap[url.Scheme]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. pilot/pkg/model/endpointshards.go

    // the results by service port number. This is a bit weird, but lets us efficiently construct the format the caller needs.
    func (es *EndpointShards) CopyEndpoints(portMap map[string]int, ports sets.Set[int]) map[int][]*IstioEndpoint {
    	es.RLock()
    	defer es.RUnlock()
    	res := map[int][]*IstioEndpoint{}
    	for _, v := range es.Shards {
    		for _, ep := range v {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. pilot/pkg/networking/grpcgen/lds.go

    			ln.RequestedNames.Insert(requestedName)
    
    			// only build the portmap if we aren't filtering this name yet, or if the existing filter is non-empty
    			if hasPort && (!ok || len(ln.Ports) != 0) {
    				if ln.Ports == nil {
    					ln.Ports = map[string]struct{}{}
    				}
    				ln.Ports.Insert(port)
    			} else if !hasPort {
    				// if we didn't have a port, we should clear the portmap
    				ln.Ports = nil
    			}
    			filter[name] = ln
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/conversion.go

    			// if not port name not match, use the targetPort specified in ServiceEntry
    			// if both not matched, fallback to ServiceEntry port number.
    			var targetPort uint32
    			if port, ok := workloadInstance.PortMap[serviceEntryPort.Name]; ok && port > 0 {
    				targetPort = port
    			} else if serviceEntryPort.TargetPort > 0 {
    				targetPort = serviceEntryPort.TargetPort
    			} else {
    				targetPort = serviceEntryPort.Number
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  9. pilot/pkg/model/gateway.go

    	// clusters to be sent to the workload
    	ContainsAutoPassthroughGateways bool
    
    	// PortMap defines a mapping of targetPorts to the set of Service ports that reference them
    	PortMap GatewayPortMap
    
    	// VerifiedCertificateReferences contains a set of all credentialNames referenced by gateways *in the same namespace as the proxy*.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/pod.go

    	workloadInstance := &model.WorkloadInstance{
    		Name:      pod.Name,
    		Namespace: pod.Namespace,
    		Kind:      model.PodKind,
    		Endpoint:  ep,
    		PortMap:   getPortMap(pod),
    	}
    	pc.c.handlers.NotifyWorkloadHandlers(workloadInstance, ev)
    }
    
    func getPortMap(pod *v1.Pod) map[string]uint32 {
    	pmap := map[string]uint32{}
    	for _, c := range pod.Spec.Containers {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top