Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for hostNetwork (0.19 sec)

  1. pkg/kubelet/kubelet_test.go

    	pod := podWithUIDNameNsSpec("12345678", "hostnetwork", "new", v1.PodSpec{
    		HostNetwork: false,
    
    		Containers: []v1.Container{
    			{Name: "foo"},
    		},
    	})
    
    	kubelet.podManager.SetPods([]*v1.Pod{pod})
    	isTerminal, err := kubelet.SyncPod(context.Background(), kubetypes.SyncPodUpdate, pod, nil, &kubecontainer.PodStatus{})
    	assert.Error(t, err, "expected pod with hostNetwork=false to fail when network in error")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pkg/apis/apps/validation/validation_test.go

    		Template: api.PodTemplateSpec{
    			ObjectMeta: metav1.ObjectMeta{
    				Labels: validLabels,
    			},
    			Spec: api.PodSpec{
    				SecurityContext: &api.PodSecurityContext{
    					HostNetwork: true,
    				},
    				RestartPolicy: api.RestartPolicyAlways,
    				DNSPolicy:     api.DNSClusterFirst,
    				Containers: []api.Container{{
    					Name:            "abc",
    					Image:           "image",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  3. pkg/apis/batch/validation/validation_test.go

    	validHostNetPodTemplateSpec := func() api.PodTemplateSpec {
    		spec := getValidPodTemplateSpecForGenerated(validGeneratedSelector)
    		spec.Spec.SecurityContext = &api.PodSecurityContext{
    			HostNetwork: true,
    		}
    		spec.Spec.Containers[0].Ports = []api.ContainerPort{{
    			ContainerPort: 12345,
    			Protocol:      api.ProtocolTCP,
    		}}
    		return spec
    	}()
    
    	successCases := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    			Propagation:       propagation,
    		})
    	}
    	if mountEtcHostsFile {
    		hostAliases := pod.Spec.HostAliases
    		hostsMount, err := makeHostsMount(podDir, podIPs, hostName, hostDomain, hostAliases, pod.Spec.HostNetwork)
    		if err != nil {
    			return nil, cleanupAction, err
    		}
    		mounts = append(mounts, *hostsMount)
    	}
    	return mounts, cleanupAction, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/testdata/swagger.json

              "type": "string"
            },
            "hostPort": {
              "description": "Number of port to expose on the host. 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.",
              "format": "int32",
              "type": "integer"
            },
            "name": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 15:45:02 UTC 2024
    - 229.4K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_test.go

    					Status: v1.NodeStatus{
    						Addresses: tc.nodeAddresses,
    					},
    				},
    			}}
    
    			pod := podWithUIDNameNs("12345", "test-pod", "test-namespace")
    			pod.Spec.HostNetwork = true
    
    			criStatus := &kubecontainer.PodStatus{
    				ID:        pod.UID,
    				Name:      pod.Name,
    				Namespace: pod.Namespace,
    				IPs:       tc.criPodIPs,
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  7. operator/cmd/mesh/testdata/manifest-generate/data-snapshot.tar.gz

    prometheus.io/scrape: 'true' prometheus.io/port: "15014" prometheus.io/path: '/metrics' # Custom annotations {{- if .Values.cni.podAnnotations }} {{ toYaml .Values.cni.podAnnotations | indent 8 }} {{- end }} spec: {{if .Values.cni.ambient.enabled }}hostNetwork: true{{ end }} nodeSelector: kubernetes.io/os: linux # Can be configured to allow for excluding instio-cni from being scheduled on specified nodes {{- with .Values.cni.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} tolerations: # Make...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 198.1K bytes
    - Viewed (0)
Back to top