Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 197 for HostPort (0.17 sec)

  1. cluster/gce/gci/testdata/kube-apiserver/base.template

    readonly CLOUD_CONFIG_VOLUME="{\"name\": \"cloudconfigmount\",\"hostPath\": {\"path\": \"/etc/gce.conf\", \"type\": \"FileOrCreate\"}},"
    readonly INSECURE_PORT_MAPPING="{ \"name\": \"local\", \"containerPort\": 8080, \"hostPort\": 8080},"
    readonly DOCKER_REGISTRY="registry.k8s.io"
    readonly ENABLE_LEGACY_ABAC=false
    readonly ETC_MANIFESTS=${KUBE_HOME}/etc/kubernetes/manifests
    readonly KUBE_API_SERVER_DOCKER_TAG=v1.11.0-alpha.0.1808_3c7452dc11645d-dirty
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. pkg/api/testing/deep_copy_test.go

    					"--data-dir",
    					"/var/etcd/data",
    				},
    				Ports: []api.ContainerPort{
    					{
    						Name:          "serverport",
    						HostPort:      2380,
    						ContainerPort: 2380,
    						Protocol:      "TCP",
    					},
    					{
    						Name:          "clientport",
    						HostPort:      2379,
    						ContainerPort: 2379,
    						Protocol:      "TCP",
    					},
    				},
    				VolumeMounts: []api.VolumeMount{
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. pkg/scheduler/testing/wrappers.go

    func (c *ContainerWrapper) Image(image string) *ContainerWrapper {
    	c.Container.Image = image
    	return c
    }
    
    // HostPort sets `hostPort` as the host port of the inner Container.
    func (c *ContainerWrapper) HostPort(hostPort int32) *ContainerWrapper {
    	c.Container.Ports = []v1.ContainerPort{{HostPort: hostPort}}
    	return c
    }
    
    // ContainerPort sets `ports` as the ports of the inner Container.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers_test.go

    	port := func(name string, protocol v1.Protocol, containerPort, hostPort int32, ip string) v1.ContainerPort {
    		return v1.ContainerPort{
    			Name:          name,
    			Protocol:      protocol,
    			ContainerPort: containerPort,
    			HostPort:      hostPort,
    			HostIP:        ip,
    		}
    	}
    	portMapping := func(protocol v1.Protocol, containerPort, hostPort int, ip string) PortMapping {
    		return PortMapping{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		for idx := range containerPortMappings {
    			port := containerPortMappings[idx]
    			hostPort := int32(port.HostPort)
    			containerPort := int32(port.ContainerPort)
    			protocol := toRuntimeProtocol(port.Protocol)
    			portMappings = append(portMappings, &runtimeapi.PortMapping{
    				HostIp:        port.HostIP,
    				HostPort:      hostPort,
    				ContainerPort: containerPort,
    				Protocol:      protocol,
    			})
    		}
    
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. pkg/istio-agent/health/health_probers.go

    func (t *TCPProber) Probe(timeout time.Duration) (ProbeResult, error) {
    	// if we cant connect, count as fail
    	d := status.ProbeDialer()
    	d.Timeout = timeout
    	hostPort := net.JoinHostPort(t.Config.Host, strconv.Itoa(int(t.Config.Port)))
    	conn, err := d.Dial("tcp", hostPort)
    	if err != nil {
    		return Unhealthy, err
    	}
    	err = conn.Close()
    	if err != nil {
    		healthCheckLog.Errorf("Unable to close TCP Socket: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. 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)
  8. pkg/apis/core/v1/validation/validation.go

    		for pi := range ctr.Ports {
    			idxPath := portsPath.Index(pi)
    			port := ctr.Ports[pi].HostPort
    			if port == 0 {
    				continue
    			}
    			str := fmt.Sprintf("%d/%s", port, ctr.Ports[pi].Protocol)
    			if accumulator.Has(str) {
    				allErrs = append(allErrs, field.Duplicate(idxPath.Child("hostPort"), str))
    			} else {
    				accumulator.Insert(str)
    			}
    		}
    	}
    	return allErrs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. cluster/gce/manifests/kube-apiserver.manifest

          },
          "periodSeconds": 1,
          "timeoutSeconds": 15
        },
        "ports":[
          {{insecure_port_mapping}}
          { "name": "https",
          "containerPort": {{secure_port}},
          "hostPort": {{secure_port}}}
        ],
        "volumeMounts": [
            {{kms_socket_mount}}
            {{encryption_provider_mount}}
            {{cloud_config_mount}}
            {{additional_cloud_config_mount}}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 19 14:47:38 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  10. 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)
Back to top