Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 128 for HostPort (0.19 sec)

  1. pkg/kubelet/kuberuntime/labels_test.go

    				Port: intstr.FromString("80"),
    			},
    		},
    	}
    	containerPorts := []v1.ContainerPort{
    		{
    			Name:          "http",
    			HostPort:      80,
    			ContainerPort: 8080,
    			Protocol:      v1.ProtocolTCP,
    		},
    		{
    			Name:          "https",
    			HostPort:      443,
    			ContainerPort: 6443,
    			Protocol:      v1.ProtocolTCP,
    		},
    	}
    	container := &v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. cmd/net.go

    var localIP4 = mustGetLocalIP4()
    
    // mustSplitHostPort is a wrapper to net.SplitHostPort() where error is assumed to be a fatal.
    func mustSplitHostPort(hostPort string) (host, port string) {
    	xh, err := xnet.ParseHost(hostPort)
    	if err != nil {
    		logger.FatalIf(err, "Unable to split host port %s", hostPort)
    	}
    	return xh.Name, xh.Port.String()
    }
    
    // mustGetLocalIPs returns IPs of local interface
    func mustGetLocalIPs() (ipList []net.IP) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceentry/store_test.go

    		instances:              map[instancesKey]map[configKeyWithParent][]*model.ServiceInstance{},
    		instancesBySE:          map[types.NamespacedName]map[configKey][]*model.ServiceInstance{},
    		instancesByHostAndPort: sets.Set[hostPort]{},
    	}
    	instances := []*model.ServiceInstance{
    		makeInstance(selector, "1.1.1.1", 444, selector.Spec.(*networking.ServiceEntry).Ports[0], nil, PlainText),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers.go

    func MakePortMappings(container *v1.Container) (ports []PortMapping) {
    	names := make(map[string]struct{})
    	for _, p := range container.Ports {
    		pm := PortMapping{
    			HostPort:      int(p.HostPort),
    			ContainerPort: int(p.ContainerPort),
    			Protocol:      p.Protocol,
    			HostIP:        p.HostIP,
    		}
    
    		// We need to determine the address family this entry applies to. We do this to ensure
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. cmd/net_test.go

    	testCases := []struct {
    		hostPort     string
    		expectedHost string
    		expectedPort string
    	}{
    		{":54321", "", "54321"},
    		{"server:54321", "server", "54321"},
    		{":0", "", "0"},
    		{"server:https", "server", "443"},
    		{"server:http", "server", "80"},
    	}
    
    	for _, testCase := range testCases {
    		host, port := mustSplitHostPort(testCase.hostPort)
    		if testCase.expectedHost != host {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/HEAD/apps.v1.Deployment.json

                "args": [
                  "argsValue"
                ],
                "workingDir": "workingDirValue",
                "ports": [
                  {
                    "name": "nameValue",
                    "hostPort": 2,
                    "containerPort": 3,
                    "protocol": "protocolValue",
                    "hostIP": "hostIPValue"
                  }
                ],
                "envFrom": [
                  {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/HEAD/apps.v1.ReplicaSet.yaml

                port: portValue
              terminationGracePeriodSeconds: 7
              timeoutSeconds: 3
            name: nameValue
            ports:
            - containerPort: 3
              hostIP: hostIPValue
              hostPort: 2
              name: nameValue
              protocol: protocolValue
            readinessProbe:
              exec:
                command:
                - commandValue
              failureThreshold: 6
              grpc:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/apps.v1beta1.Deployment.json

                "args": [
                  "argsValue"
                ],
                "workingDir": "workingDirValue",
                "ports": [
                  {
                    "name": "nameValue",
                    "hostPort": 2,
                    "containerPort": 3,
                    "protocol": "protocolValue",
                    "hostIP": "hostIPValue"
                  }
                ],
                "envFrom": [
                  {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/apps.v1.DaemonSet.yaml

                port: portValue
              terminationGracePeriodSeconds: 7
              timeoutSeconds: 3
            name: nameValue
            ports:
            - containerPort: 3
              hostIP: hostIPValue
              hostPort: 2
              name: nameValue
              protocol: protocolValue
            readinessProbe:
              exec:
                command:
                - commandValue
              failureThreshold: 6
              grpc:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/extensions.v1beta1.Deployment.json

                "args": [
                  "argsValue"
                ],
                "workingDir": "workingDirValue",
                "ports": [
                  {
                    "name": "nameValue",
                    "hostPort": 2,
                    "containerPort": 3,
                    "protocol": "protocolValue",
                    "hostIP": "hostIPValue"
                  }
                ],
                "envFrom": [
                  {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 54.5K bytes
    - Viewed (0)
Back to top