Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 81 for HostPort (0.43 sec)

  1. pkg/apis/core/validation/validation_test.go

    		Ports: []core.ContainerPort{
    			{ContainerPort: 80, HostPort: 80, Protocol: "TCP"},
    			{ContainerPort: 80, HostPort: 80, Protocol: "UDP"},
    		},
    		ImagePullPolicy:          "IfNotPresent",
    		TerminationMessagePolicy: "File",
    	}, {
    		Name:  "container-2-same-host-port-different-protocol",
    		Image: "image",
    		Ports: []core.ContainerPort{
    			{ContainerPort: 80, HostPort: 80, Protocol: "TCP"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    	pods := []*v1.Pod{
    		{ObjectMeta: metav1.ObjectMeta{Name: "pod1", UID: "1234"}, Spec: v1.PodSpec{Containers: []v1.Container{{Ports: []v1.ContainerPort{{HostPort: 80}}}}}},
    		{ObjectMeta: metav1.ObjectMeta{Name: "pod2", UID: "4567"}, Spec: v1.PodSpec{Containers: []v1.Container{{Ports: []v1.ContainerPort{{HostPort: 80}}}}}},
    	}
    	podToTest := pods[1]
    	// Run once to populate the status map.
    	kl.HandlePodAdditions(pods)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. pkg/kubelet/container/runtime.go

    type PortMapping struct {
    	// Protocol of the port mapping.
    	Protocol v1.Protocol
    	// The port number within the container.
    	ContainerPort int
    	// The port number on the host.
    	HostPort int
    	// The host IP.
    	HostIP string
    }
    
    // DeviceInfo contains information about the device.
    type DeviceInfo struct {
    	// Path on host for mapping
    	PathOnHost string
    	// Path in Container to map
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/gateway/conversion.go

    			// TODO: should we always report both?
    			if wantAddressType == k8s.IPAddressType {
    				addressesToReport = internalIP
    			} else {
    				for _, hostport := range internal {
    					svchost, _, _ := net.SplitHostPort(hostport)
    					if !slices.Contains(pending, svchost) && !slices.Contains(addressesToReport, svchost) {
    						addressesToReport = append(addressesToReport, svchost)
    					}
    				}
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/serviceentry/controller.go

    			instances:              map[instancesKey]map[configKeyWithParent][]*model.ServiceInstance{},
    			instancesBySE:          map[types.NamespacedName]map[configKey][]*model.ServiceInstance{},
    			instancesByHostAndPort: sets.New[hostPort](),
    		},
    		workloadInstances: workloadinstances.NewIndex(),
    		services: serviceStore{
    			servicesBySE: map[types.NamespacedName][]*model.Service{},
    		},
    		edsQueue: queue.NewQueue(time.Second),
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. pkg/printers/internalversion/printers.go

    					if len(list) == max {
    						more = true
    						// the next loop is redundant
    						break
    					}
    					addr := &ss.Addresses[i]
    					hostPort := net.JoinHostPort(addr.IP, strconv.Itoa(int(port.Port)))
    					list = append(list, hostPort)
    				}
    			}
    		}
    	}
    
    	ret := strings.Join(list, ",")
    	if more {
    		return fmt.Sprintf("%s + %d more...", ret, count-max)
    	}
    	return ret
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/zz_generated.conversion.go

    }
    
    func autoConvert_v1_ContainerPort_To_core_ContainerPort(in *v1.ContainerPort, out *core.ContainerPort, s conversion.Scope) error {
    	out.Name = in.Name
    	out.HostPort = in.HostPort
    	out.ContainerPort = in.ContainerPort
    	out.Protocol = core.Protocol(in.Protocol)
    	out.HostIP = in.HostIP
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  8. pkg/scheduler/schedule_one_test.go

    }
    
    func podWithPort(id, desiredHost string, port int) *v1.Pod {
    	pod := podWithID(id, desiredHost)
    	pod.Spec.Containers = []v1.Container{
    		{Name: "ctr", Ports: []v1.ContainerPort{{HostPort: int32(port)}}},
    	}
    	return pod
    }
    
    func podWithResources(id, desiredHost string, limits v1.ResourceList, requests v1.ResourceList) *v1.Pod {
    	pod := podWithID(id, desiredHost)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.28.md

    - Pods which set `hostNetwork: true` and declare ports, get the `hostPort` field set automatically. Previously this would happen in the PodTemplate of a Deployment, DaemonSet or other workload API.  Now `hostPort` will only be set when an actual Pod is being created.  If this presents a problem, setting the feature gate "DefaultHostNetworkHostPortsInPodTemplates" to true will revert this...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 23:47:59 UTC 2024
    - 408.3K bytes
    - Viewed (1)
  10. staging/src/k8s.io/api/core/v1/types.go

    	// If specified, this must be a valid port number, 0 < x < 65536.
    	// If HostNetwork is specified, this must match ContainerPort.
    	// Most containers do not need this.
    	// +optional
    	HostPort int32 `json:"hostPort,omitempty" protobuf:"varint,2,opt,name=hostPort"`
    	// Number of port to expose on the pod's IP address.
    	// This must be a valid port number, 0 < x < 65536.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
Back to top