k8s

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Copyright 2022 Red Hat, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodInfoCommand

func NewPodInfoCommand(knitOpts *knit.KnitOptions) *cobra.Command

func NewPodResourcesCommand

func NewPodResourcesCommand(knitOpts *knit.KnitOptions) *cobra.Command

Types

type AllocatableResourcesResponse

type AllocatableResourcesResponse struct {
	Devices []*ContainerDevices `json:"devices,omitempty"`
	CpuIds  []int64             `json:"cpu_ids,omitempty"`
	Memory  []*ContainerMemory  `json:"memory,omitempty"`
}

AllocatableResourcesResponse contains information about all the devices known by the kubelet

type ContainerDevices

type ContainerDevices struct {
	ResourceName string        `json:"resource_name,omitempty"`
	DeviceIds    []string      `json:"device_ids,omitempty"`
	Topology     *TopologyInfo `json:"topology,omitempty"`
}

ContainerDevices contains information about the devices assigned to a container

type ContainerMemory

type ContainerMemory struct {
	MemoryType string        `json:"memory_type,omitempty"`
	Size_      uint64        `json:"size,omitempty"`
	Topology   *TopologyInfo `json:"topology,omitempty"`
}

ContainerMemory contains information about memory and hugepages assigned to a container

type ContainerResources

type ContainerResources struct {
	Name    string              `json:"name,omitempty"`
	Devices []*ContainerDevices `json:"devices,omitempty"`
	CpuIds  []int64             `json:"cpu_ids,omitempty"`
	Memory  []*ContainerMemory  `json:"memory,omitempty"`
}

ContainerResources contains information about the resources assigned to a container

type ListPodResourcesResponse

type ListPodResourcesResponse struct {
	PodResources []*PodResources `json:"pod_resources,omitempty"`
}

ListPodResourcesResponse is the response returned by List function

type NUMANode

type NUMANode struct {
	ID *int64 `json:"ID,omitempty"`
}

NUMANode contains NUMA nodes information

type PodResources

type PodResources struct {
	Name       string                `json:"name,omitempty"`
	Namespace  string                `json:"namespace,omitempty"`
	Containers []*ContainerResources `json:"containers,omitempty"`
}

PodResources contains information about the node resources assigned to a pod

type TopologyInfo

type TopologyInfo struct {
	Nodes []*NUMANode `json:"nodes,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL