Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 268 for podapi (0.14 sec)

  1. pkg/kubelet/cm/topologymanager/scope_pod.go

    // NewPodScope returns a pod scope.
    func NewPodScope(policy Policy) Scope {
    	return &podScope{
    		scope{
    			name:             podTopologyScope,
    			podTopologyHints: podTopologyHints{},
    			policy:           policy,
    			podMap:           containermap.NewContainerMap(),
    		},
    	}
    }
    
    func (s *podScope) Admit(pod *v1.Pod) lifecycle.PodAdmitResult {
    	bestHint, admit := s.calculateAffinity(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 14:44:24 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. pkg/kubelet/pleg/generic_test.go

    	ctx := context.Background()
    	testCases := []struct {
    		name   string
    		podID  string
    		podIPs []string
    	}{
    		{
    			name:   "test-0",
    			podID:  "test-pod-0",
    			podIPs: []string{"192.168.1.5"},
    		},
    		{
    			name:   "tets-1",
    			podID:  "test-pod-1",
    			podIPs: []string{"192.168.1.5/24", "2000::"},
    		},
    	}
    
    	mockCtrl := gomock.NewController(t)
    	defer mockCtrl.Finish()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/server.go

    	return s.netServer.ConstructInitialSnapshot(ambientPods)
    }
    
    func (s *meshDataplane) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
    	var retErr error
    	err := s.netServer.AddPodToMesh(ctx, pod, podIPs, netNs)
    	if err != nil {
    		log.Errorf("failed to add pod to ztunnel: %v", err)
    		if !errors.Is(err, ErrPartialAdd) {
    			return err
    		}
    		retErr = err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/queue/events.go

    limitations under the License.
    */
    
    package queue
    
    import (
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    const (
    	// PodAdd is the event when a new pod is added to API server.
    	PodAdd = "PodAdd"
    	// ScheduleAttemptFailure is the event when a schedule attempt fails.
    	ScheduleAttemptFailure = "ScheduleAttemptFailure"
    	// BackoffComplete is the event when a pod finishes backoff.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. pkg/registry/core/service/storage/storage.go

    		return fmt.Errorf("pod is missing, skipping (%s/%s)", addr.TargetRef.Namespace, addr.TargetRef.Name)
    	}
    	for _, podIP := range pod.Status.PodIPs {
    		if podIP.IP == addr.IP {
    			return nil
    		}
    	}
    	return fmt.Errorf("pod ip(s) doesn't match endpoint ip, skipping: %v vs %s (%s/%s)", pod.Status.PodIPs, addr.IP, addr.TargetRef.Namespace, addr.TargetRef.Name)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. pkg/volume/portworx/portworx_util.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package portworx
    
    import (
    	"context"
    	"fmt"
    	"net"
    	"strconv"
    
    	osdapi "github.com/libopenstorage/openstorage/api"
    	osdclient "github.com/libopenstorage/openstorage/api/client"
    	volumeclient "github.com/libopenstorage/openstorage/api/client/volume"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/topologymanager/scope_none.go

    // NewNoneScope returns a none scope.
    func NewNoneScope() Scope {
    	return &noneScope{
    		scope{
    			name:             noneTopologyScope,
    			podTopologyHints: podTopologyHints{},
    			policy:           NewNonePolicy(),
    			podMap:           containermap.NewContainerMap(),
    		},
    	}
    }
    
    func (s *noneScope) Admit(pod *v1.Pod) lifecycle.PodAdmitResult {
    	return s.admitPolicyNone(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 14:44:24 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/testdata/pod.json

                        }
                    }
                }
            ],
            "hostIP": "10.223.96.100",
            "phase": "Running",
            "podIP": "10.224.98.9",
            "podIPs": [
                {
                    "ip": "10.224.98.9"
                }
            ],
            "qosClass": "Burstable",
            "startTime": "2021-02-18T09:46:18Z"
        }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 18 15:31:52 UTC 2021
    - 6.4K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/kube/testdata/two-workloads-one-nosidecar.yaml

            - containerPort: 8080
            - containerPort: 3333
              name: tcp-health-port
            env:
            - name: INSTANCE_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            readinessProbe:
              httpGet:
                path: /
                port: 8080
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 17 04:28:06 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. pkg/probe/http/request.go

    // When httpGet.Host is empty, podIP will be used instead.
    func NewRequestForHTTPGetAction(httpGet *v1.HTTPGetAction, container *v1.Container, podIP string, userAgentFragment string) (*http.Request, error) {
    	scheme := strings.ToLower(string(httpGet.Scheme))
    	if scheme == "" {
    		scheme = "http"
    	}
    
    	host := httpGet.Host
    	if host == "" {
    		host = podIP
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 07:39:55 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top