所有kubernetes窗格状态列表

时间:2018-08-03 16:26:04

标签: kubernetes

我正在编写一些监视工具,这些工具可以跟踪和警告kubernetes吊舱状态。我知道一些常见的问题(例如,运行,CrashLoopBackoff,ImagePullBackoff,退出等),但我似乎找不到完整的列表。

1 个答案:

答案 0 :(得分:1)

截至master的提交ID为8a5e9ecf8febdfe5ca72d4d99340ce22cbf55cbb的答案:

// Container event reason list
CreatedContainer        = "Created"
StartedContainer        = "Started"
FailedToCreateContainer = "Failed"
FailedToStartContainer  = "Failed"
KillingContainer        = "Killing"
PreemptContainer        = "Preempting"
BackOffStartContainer   = "BackOff"
ExceededGracePeriod     = "ExceededGracePeriod"

// Pod event reason list
FailedToKillPod                = "FailedKillPod"
FailedToCreatePodContainer     = "FailedCreatePodContainer"
FailedToMakePodDataDirectories = "Failed"
NetworkNotReady                = "NetworkNotReady"

// Image event reason list
PullingImage            = "Pulling"
PulledImage             = "Pulled"
FailedToPullImage       = "Failed"
FailedToInspectImage    = "InspectFailed"
ErrImageNeverPullPolicy = "ErrImageNeverPull"
BackOffPullImage        = "BackOff"

// kubelet event reason list
NodeReady                            = "NodeReady"
NodeNotReady                         = "NodeNotReady"
NodeSchedulable                      = "NodeSchedulable"
NodeNotSchedulable                   = "NodeNotSchedulable"
StartingKubelet                      = "Starting"
KubeletSetupFailed                   = "KubeletSetupFailed"
FailedAttachVolume                   = "FailedAttachVolume"
FailedDetachVolume                   = "FailedDetachVolume"
FailedMountVolume                    = "FailedMount"
VolumeResizeFailed                   = "VolumeResizeFailed"
VolumeResizeSuccess                  = "VolumeResizeSuccessful"
FileSystemResizeFailed               = "FileSystemResizeFailed"
FileSystemResizeSuccess              = "FileSystemResizeSuccessful"
FailedUnMountVolume                  = "FailedUnMount"
FailedMapVolume                      = "FailedMapVolume"
FailedUnmapDevice                    = "FailedUnmapDevice"
WarnAlreadyMountedVolume             = "AlreadyMountedVolume"
SuccessfulDetachVolume               = "SuccessfulDetachVolume"
SuccessfulAttachVolume               = "SuccessfulAttachVolume"
SuccessfulMountVolume                = "SuccessfulMountVolume"
SuccessfulUnMountVolume              = "SuccessfulUnMountVolume"
HostPortConflict                     = "HostPortConflict"
NodeSelectorMismatching              = "NodeSelectorMismatching"
InsufficientFreeCPU                  = "InsufficientFreeCPU"
InsufficientFreeMemory               = "InsufficientFreeMemory"
NodeRebooted                         = "Rebooted"
ContainerGCFailed                    = "ContainerGCFailed"
ImageGCFailed                        = "ImageGCFailed"
FailedNodeAllocatableEnforcement     = "FailedNodeAllocatableEnforcement"
SuccessfulNodeAllocatableEnforcement = "NodeAllocatableEnforced"
UnsupportedMountOption               = "UnsupportedMountOption"
SandboxChanged                       = "SandboxChanged"
FailedCreatePodSandBox               = "FailedCreatePodSandBox"
FailedStatusPodSandBox               = "FailedPodSandBoxStatus"

// Image manager event reason list
InvalidDiskCapacity = "InvalidDiskCapacity"
FreeDiskSpaceFailed = "FreeDiskSpaceFailed"

// Probe event reason list
ContainerUnhealthy = "Unhealthy"

// Pod worker event reason list
FailedSync = "FailedSync"

// Config event reason list
FailedValidation = "FailedValidation"

// Lifecycle hooks
FailedPostStartHook   = "FailedPostStartHook"
FailedPreStopHook     = "FailedPreStopHook"
UnfinishedPreStopHook = "UnfinishedPreStopHook"

可以在https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/events/event.go

中找到

不幸的是,我不确定哪个发行版具有此功能。