|
1 | 1 | # Put it directly under frameworkcontroller's current working directory. |
2 | 2 | # For the full config setting and usage, see ./pkg/apis/frameworkcontroller/v1/config.go |
3 | 3 |
|
4 | | -# This is the default config for frameworkcontroller, so all settings are commented out. |
| 4 | +# This is the default config for frameworkcontroller, so most settings are commented out. |
5 | 5 |
|
6 | 6 | #kubeApiServerAddress: http://10.10.10.10:8080 |
7 | | -#kubeConfigFilePath: "" |
| 7 | +#kubeConfigFilePath: '' |
8 | 8 | #workerNumber: 20 |
| 9 | + |
| 10 | +podFailureSpec: |
| 11 | +################################################################################ |
| 12 | +# [-1199, -1000]: K8S issued failures |
| 13 | +################################################################################ |
| 14 | +- code: -1000 |
| 15 | + phrase: PodEvicted |
| 16 | + type: |
| 17 | + attributes: [Transient] |
| 18 | + podPatterns: |
| 19 | + - reasonRegex: '(?i)^Evicted$' |
| 20 | + messageRegex: '(?ms).*' |
| 21 | +- code: -1001 |
| 22 | + phrase: PodNodeLost |
| 23 | + type: |
| 24 | + attributes: [Transient] |
| 25 | + podPatterns: |
| 26 | + - reasonRegex: '(?i)^NodeLost$' |
| 27 | + messageRegex: '(?ms).*' |
| 28 | +- code: -1002 |
| 29 | + phrase: PodScheduledToInsufficientResourceNode |
| 30 | + type: |
| 31 | + attributes: [Transient] |
| 32 | + podPatterns: |
| 33 | + - reasonRegex: '(?i)^OutOf\S+$' |
| 34 | + messageRegex: '(?ms).*' |
| 35 | +- code: -1003 |
| 36 | + phrase: PodPreemptedForCriticalPod |
| 37 | + type: |
| 38 | + attributes: [Transient] |
| 39 | + podPatterns: |
| 40 | + - reasonRegex: '(?i)^Preempting$' |
| 41 | + messageRegex: '(?ms).*' |
| 42 | +- code: -1004 |
| 43 | + phrase: PodDeadlineExceeded |
| 44 | + type: |
| 45 | + attributes: [Permanent] |
| 46 | + podPatterns: |
| 47 | + - reasonRegex: '(?i)^DeadlineExceeded$' |
| 48 | + messageRegex: '(?ms).*' |
| 49 | +- code: -1005 |
| 50 | + phrase: PodNodeAdmissionForbidden |
| 51 | + type: |
| 52 | + attributes: [Permanent] |
| 53 | + podPatterns: |
| 54 | + - reasonRegex: '(?i)^Forbidden$' |
| 55 | + messageRegex: '(?ms).*' |
| 56 | +- code: -1006 |
| 57 | + phrase: PodNodeAdmissionUnexpectedError |
| 58 | + type: |
| 59 | + attributes: [Transient] |
| 60 | + podPatterns: |
| 61 | + - reasonRegex: '(?i)^UnexpectedAdmissionError$' |
| 62 | + messageRegex: '(?ms).*' |
| 63 | + - reasonRegex: '(?i)^UnknownReason$' |
| 64 | + messageRegex: '(?ms).*' |
| 65 | + - reasonRegex: '(?i)^InvalidNodeInfo$' |
| 66 | + messageRegex: '(?ms).*' |
| 67 | + - reasonRegex: '(?i)^UnexpectedPredicateFailureType$' |
| 68 | + messageRegex: '(?ms).*' |
| 69 | + |
| 70 | +################################################################################ |
| 71 | +# [-1399, -1200]: Docker issued failures |
| 72 | +################################################################################ |
| 73 | +- code: -1200 |
| 74 | + phrase: ContainerDockerOOMKilled |
| 75 | + type: |
| 76 | + attributes: [Permanent] |
| 77 | + podPatterns: |
| 78 | + - containers: |
| 79 | + - reasonRegex: '(?i)^OOMKilled$' |
| 80 | + codeRange: {min: 1} |
| 81 | + nameRegex: '(?ms).*' |
| 82 | + messageRegex: '(?ms).*' |
| 83 | +- code: -1201 |
| 84 | + phrase: ContainerDockerRunFlagInvalid |
| 85 | + type: |
| 86 | + attributes: [Permanent] |
| 87 | + podPatterns: |
| 88 | + - containers: |
| 89 | + - reasonRegex: '(?i)^ContainerCannotRun$' |
| 90 | + codeRange: {min: 125, max: 125} |
| 91 | + nameRegex: '(?ms).*' |
| 92 | + messageRegex: '(?ms).*' |
| 93 | +- code: -1202 |
| 94 | + phrase: ContainerDockerRunPermissionDenied |
| 95 | + type: |
| 96 | + attributes: [Permanent] |
| 97 | + podPatterns: |
| 98 | + - containers: |
| 99 | + - reasonRegex: '(?i)^ContainerCannotRun$' |
| 100 | + codeRange: {min: 126, max: 126} |
| 101 | + nameRegex: '(?ms).*' |
| 102 | + messageRegex: '(?ms).*' |
| 103 | +- code: -1203 |
| 104 | + phrase: ContainerDockerRunCmdNotFound |
| 105 | + type: |
| 106 | + attributes: [Permanent] |
| 107 | + podPatterns: |
| 108 | + - containers: |
| 109 | + - reasonRegex: '(?i)^ContainerCannotRun$' |
| 110 | + codeRange: {min: 127, max: 127} |
| 111 | + nameRegex: '(?ms).*' |
| 112 | + messageRegex: '(?ms).*' |
| 113 | + - containers: |
| 114 | + - reasonRegex: '(?i)^ContainerCannotRun$' |
| 115 | + codeRange: {min: 128, max: 128} |
| 116 | + nameRegex: '(?ms).*' |
| 117 | + messageRegex: '(?msi).*(not found|cannot find|no such).*' |
| 118 | +- code: -1204 |
| 119 | + phrase: ContainerDockerRunUnknownError |
| 120 | + podPatterns: |
| 121 | + - containers: |
| 122 | + - reasonRegex: '(?i)^ContainerCannotRun$' |
| 123 | + codeRange: {min: 128, max: 128} |
| 124 | + nameRegex: '(?ms).*' |
| 125 | + messageRegex: '(?ms).*' |
| 126 | + |
| 127 | +################################################################################ |
| 128 | +# [1, 255]: User Container issued failures |
| 129 | +################################################################################ |
| 130 | +# [129, 192]: Involuntary failures caused by OS Signal |
| 131 | +- code: 130 |
| 132 | + phrase: ContainerSigIntReceived |
| 133 | + type: |
| 134 | + attributes: [Transient] |
| 135 | + podPatterns: |
| 136 | + - containers: |
| 137 | + - codeRange: {min: 130, max: 130} |
| 138 | + nameRegex: '(?ms).*' |
| 139 | + messageRegex: '(?ms).*' |
| 140 | +- code: 131 |
| 141 | + phrase: ContainerSigQuitReceived |
| 142 | + type: |
| 143 | + attributes: [Transient] |
| 144 | + podPatterns: |
| 145 | + - containers: |
| 146 | + - codeRange: {min: 131, max: 131} |
| 147 | + nameRegex: '(?ms).*' |
| 148 | + messageRegex: '(?ms).*' |
| 149 | +- code: 132 |
| 150 | + phrase: ContainerSigIllReceived |
| 151 | + type: |
| 152 | + attributes: [Permanent] |
| 153 | + podPatterns: |
| 154 | + - containers: |
| 155 | + - codeRange: {min: 132, max: 132} |
| 156 | + nameRegex: '(?ms).*' |
| 157 | + messageRegex: '(?ms).*' |
| 158 | +- code: 134 |
| 159 | + phrase: ContainerSigAbrtReceived |
| 160 | + podPatterns: |
| 161 | + - containers: |
| 162 | + - codeRange: {min: 134, max: 134} |
| 163 | + nameRegex: '(?ms).*' |
| 164 | + messageRegex: '(?ms).*' |
| 165 | +- code: 135 |
| 166 | + phrase: ContainerSigBusReceived |
| 167 | + type: |
| 168 | + attributes: [Permanent] |
| 169 | + podPatterns: |
| 170 | + - containers: |
| 171 | + - codeRange: {min: 135, max: 135} |
| 172 | + nameRegex: '(?ms).*' |
| 173 | + messageRegex: '(?ms).*' |
| 174 | +- code: 136 |
| 175 | + phrase: ContainerSigFpeReceived |
| 176 | + type: |
| 177 | + attributes: [Permanent] |
| 178 | + podPatterns: |
| 179 | + - containers: |
| 180 | + - codeRange: {min: 136, max: 136} |
| 181 | + nameRegex: '(?ms).*' |
| 182 | + messageRegex: '(?ms).*' |
| 183 | +- code: 137 |
| 184 | + phrase: ContainerSigKillReceived |
| 185 | + type: |
| 186 | + attributes: [Transient] |
| 187 | + podPatterns: |
| 188 | + - containers: |
| 189 | + - codeRange: {min: 137, max: 137} |
| 190 | + nameRegex: '(?ms).*' |
| 191 | + messageRegex: '(?ms).*' |
| 192 | +- code: 139 |
| 193 | + phrase: ContainerSigSegvReceived |
| 194 | + type: |
| 195 | + attributes: [Permanent] |
| 196 | + podPatterns: |
| 197 | + - containers: |
| 198 | + - codeRange: {min: 139, max: 139} |
| 199 | + nameRegex: '(?ms).*' |
| 200 | + messageRegex: '(?ms).*' |
| 201 | +- code: 141 |
| 202 | + phrase: ContainerSigPipeReceived |
| 203 | + type: |
| 204 | + attributes: [Permanent] |
| 205 | + podPatterns: |
| 206 | + - containers: |
| 207 | + - codeRange: {min: 141, max: 141} |
| 208 | + nameRegex: '(?ms).*' |
| 209 | + messageRegex: '(?ms).*' |
| 210 | +- code: 143 |
| 211 | + phrase: ContainerSigTermReceived |
| 212 | + type: |
| 213 | + attributes: [Transient] |
| 214 | + podPatterns: |
| 215 | + - containers: |
| 216 | + - codeRange: {min: 143, max: 143} |
| 217 | + nameRegex: '(?ms).*' |
| 218 | + messageRegex: '(?ms).*' |
| 219 | + |
| 220 | +# [1, 255] - [129, 192]: Voluntary failures caused by Container itself |
| 221 | +# [200, 219]: Reserved Codes |
| 222 | +# [1, 255] - [129, 192] - [200, 219]: Custom Codes |
| 223 | +# Example: Directly forwarding Container code and just adding type info. |
| 224 | +#- code: 220 |
| 225 | +# phrase: Container220Failed |
| 226 | +# type: |
| 227 | +# attributes: [Permanent] |
| 228 | +# podPatterns: |
| 229 | +# - containers: |
| 230 | +# - codeRange: {min: 220, max: 220} |
| 231 | +# nameRegex: '(?ms).*' |
| 232 | +# messageRegex: '(?ms).*' |
| 233 | + |
| 234 | +# Example: Classification only based on Container termination message. |
| 235 | +#- code: 221 |
| 236 | +# phrase: ContainerTensorflowOOMKilled |
| 237 | +# type: |
| 238 | +# attributes: [Permanent] |
| 239 | +# podPatterns: |
| 240 | +# - containers: |
| 241 | +# - messageRegex: '(?msi)tensorflow.*ResourceExhaustedError.*OOM.*' |
| 242 | +# codeRange: {min: 1} |
| 243 | +# nameRegex: '(?ms).*' |
| 244 | +#- code: 222 |
| 245 | +# phrase: ContainerMPISegvFault |
| 246 | +# type: |
| 247 | +# attributes: [Permanent] |
| 248 | +# podPatterns: |
| 249 | +# - containers: |
| 250 | +# - messageRegex: '(?msi)Signal code: Address not mapped.*' |
| 251 | +# codeRange: {min: 1} |
| 252 | +# nameRegex: '(?ms).*' |
| 253 | +#- code: 223 |
| 254 | +# phrase: ContainerCudaUncorrectableECCError |
| 255 | +# type: |
| 256 | +# attributes: [Transient] |
| 257 | +# podPatterns: |
| 258 | +# - containers: |
| 259 | +# - messageRegex: '(?msi)CUDA_ERROR_ECC_UNCORRECTABLE.*' |
| 260 | +# codeRange: {min: 1} |
| 261 | +# nameRegex: '(?ms).*' |
| 262 | + |
| 263 | +# Example: Redirect all unknown failures to a single comparable code. |
| 264 | +#- code: 255 |
| 265 | +# phrase: ContainerUnknownFailed |
| 266 | +# podPatterns: |
| 267 | +# - containers: |
| 268 | +# - codeRange: {min: 1} |
| 269 | +# nameRegex: '(?ms).*' |
| 270 | +# messageRegex: '(?ms).*' |
0 commit comments