kubernetes: k8s.io/kubernetes/pkg/kubelet/kuberuntime Index | Files | Directories

package kuberuntime

import "k8s.io/kubernetes/pkg/kubelet/kuberuntime"

Package kuberuntime contains an implementation of kubecontainer.Runtime using the interface in pkg/kubelet/v1.

Index

Package Files

doc.go fake_kuberuntime_manager.go helpers.go helpers_linux.go instrumented_services.go kuberuntime_container.go kuberuntime_container_linux.go kuberuntime_gc.go kuberuntime_image.go kuberuntime_logs.go kuberuntime_manager.go kuberuntime_sandbox.go labels.go legacy.go security_context.go

Variables

var (
    // ErrCreateContainerConfig - failed to create container config
    ErrCreateContainerConfig = errors.New("CreateContainerConfigError")
    // ErrCreateContainer - failed to create container
    ErrCreateContainer = errors.New("CreateContainerError")
    // ErrPreStartHook - failed to execute PreStartHook
    ErrPreStartHook = errors.New("PreStartHookError")
    // ErrPostStartHook - failed to execute PostStartHook
    ErrPostStartHook = errors.New("PostStartHookError")
)
var (
    // ErrVersionNotSupported is returned when the api version of runtime interface is not supported
    ErrVersionNotSupported = errors.New("runtime api version is not supported")
)

func BuildContainerLogsDirectory Uses

func BuildContainerLogsDirectory(podNamespace, podName string, podUID types.UID, containerName string) string

BuildContainerLogsDirectory builds absolute log directory path for a container in pod.

func BuildPodLogsDirectory Uses

func BuildPodLogsDirectory(podNamespace, podName string, podUID types.UID) string

BuildPodLogsDirectory builds absolute log directory path for a pod sandbox.

type KubeGenericRuntime Uses

type KubeGenericRuntime interface {
    kubecontainer.Runtime
    kubecontainer.StreamingRuntime
    kubecontainer.ContainerCommandRunner
}

KubeGenericRuntime is a interface contains interfaces for container runtime and command.

func NewKubeGenericRuntimeManager Uses

func NewKubeGenericRuntimeManager(
    recorder record.EventRecorder,
    livenessManager proberesults.Manager,
    seccompProfileRoot string,
    containerRefManager *kubecontainer.RefManager,
    machineInfo *cadvisorapi.MachineInfo,
    podStateProvider podStateProvider,
    osInterface kubecontainer.OSInterface,
    runtimeHelper kubecontainer.RuntimeHelper,
    httpClient types.HttpGetter,
    imageBackOff *flowcontrol.Backoff,
    serializeImagePulls bool,
    imagePullQPS float32,
    imagePullBurst int,
    cpuCFSQuota bool,
    cpuCFSQuotaPeriod metav1.Duration,
    runtimeService internalapi.RuntimeService,
    imageService internalapi.ImageManagerService,
    internalLifecycle cm.InternalContainerLifecycle,
    legacyLogProvider LegacyLogProvider,
    runtimeClassManager *runtimeclass.Manager,
) (KubeGenericRuntime, error)

NewKubeGenericRuntimeManager creates a new kubeGenericRuntimeManager

type LegacyLogProvider Uses

type LegacyLogProvider interface {
    // Get the last few lines of the logs for a specific container.
    GetContainerLogTail(uid kubetypes.UID, name, namespace string, containerID kubecontainer.ContainerID) (string, error)
}

LegacyLogProvider gives the ability to use unsupported docker log drivers (e.g. journald)

Directories

PathSynopsis
logs

Package kuberuntime imports 57 packages (graph) and is imported by 18 packages. Updated 2019-09-11. Refresh now. Tools for package owners.