github.com/verrazzano/verrazzano@v1.7.0/tools/vz/pkg/analysis/test/cluster/insufficient-mem/cluster-snapshot/verrazzano-system/pods.json (about) 1 { 2 "kind": "PodList", 3 "apiVersion": "v1", 4 "metadata": { 5 "selfLink": "/api/v1/namespaces/verrazzano-system/pods", 6 "resourceVersion": "9932" 7 }, 8 "items": [ 9 { 10 "metadata": { 11 "name": "vmi-system-es-master-0", 12 "generateName": "vmi-system-es-master-", 13 "namespace": "verrazzano-system", 14 "selfLink": "/api/v1/namespaces/verrazzano-system/pods/vmi-system-es-master-0", 15 "uid": "a024b976-552b-4553-8cac-606a027c4faa", 16 "resourceVersion": "4632", 17 "creationTimestamp": "2021-03-02T15:10:01Z", 18 "labels": { 19 "app": "system-es-master", 20 "controller-revision-hash": "vmi-system-es-master-788dc4557d", 21 "statefulset.kubernetes.io/pod-name": "vmi-system-es-master-0" 22 }, 23 "ownerReferences": [ 24 { 25 "apiVersion": "apps/v1", 26 "kind": "StatefulSet", 27 "name": "vmi-system-es-master", 28 "uid": "c168a476-9a91-485d-8530-e13ea8407776", 29 "controller": true, 30 "blockOwnerDeletion": true 31 } 32 ], 33 "managedFields": [ 34 { 35 "manager": "kube-controller-manager", 36 "operation": "Update", 37 "apiVersion": "v1", 38 "time": "2021-03-02T15:10:01Z", 39 "fieldsType": "FieldsV1", 40 "fieldsV1": { 41 "f:metadata": { 42 "f:generateName": {}, 43 "f:labels": { 44 ".": {}, 45 "f:app": {}, 46 "f:controller-revision-hash": {}, 47 "f:statefulset.kubernetes.io/pod-name": {} 48 }, 49 "f:ownerReferences": { 50 ".": {}, 51 "k:{\"uid\":\"c168a476-9a91-485d-8530-e13ea8407776\"}": { 52 ".": {}, 53 "f:apiVersion": {}, 54 "f:blockOwnerDeletion": {}, 55 "f:controller": {}, 56 "f:kind": {}, 57 "f:name": {}, 58 "f:uid": {} 59 } 60 } 61 }, 62 "f:spec": { 63 "f:affinity": { 64 ".": {}, 65 "f:podAntiAffinity": { 66 ".": {}, 67 "f:preferredDuringSchedulingIgnoredDuringExecution": {} 68 } 69 }, 70 "f:containers": { 71 "k:{\"name\":\"es-master\"}": { 72 ".": {}, 73 "f:args": {}, 74 "f:env": { 75 ".": {}, 76 "k:{\"name\":\"HTTP_ENABLE\"}": { 77 ".": {}, 78 "f:name": {}, 79 "f:value": {} 80 }, 81 "k:{\"name\":\"cluster.initial_master_nodes\"}": { 82 ".": {}, 83 "f:name": {}, 84 "f:value": {} 85 }, 86 "k:{\"name\":\"cluster.name\"}": { 87 ".": {}, 88 "f:name": {}, 89 "f:value": {} 90 }, 91 "k:{\"name\":\"discovery.seed_hosts\"}": { 92 ".": {}, 93 "f:name": {}, 94 "f:value": {} 95 }, 96 "k:{\"name\":\"node.data\"}": { 97 ".": {}, 98 "f:name": {}, 99 "f:value": {} 100 }, 101 "k:{\"name\":\"node.ingest\"}": { 102 ".": {}, 103 "f:name": {}, 104 "f:value": {} 105 }, 106 "k:{\"name\":\"node.master\"}": { 107 ".": {}, 108 "f:name": {}, 109 "f:value": {} 110 }, 111 "k:{\"name\":\"node.name\"}": { 112 ".": {}, 113 "f:name": {}, 114 "f:valueFrom": { 115 ".": {}, 116 "f:fieldRef": { 117 ".": {}, 118 "f:apiVersion": {}, 119 "f:fieldPath": {} 120 } 121 } 122 } 123 }, 124 "f:image": {}, 125 "f:imagePullPolicy": {}, 126 "f:livenessProbe": { 127 ".": {}, 128 "f:failureThreshold": {}, 129 "f:initialDelaySeconds": {}, 130 "f:periodSeconds": {}, 131 "f:successThreshold": {}, 132 "f:tcpSocket": { 133 ".": {}, 134 "f:port": {} 135 }, 136 "f:timeoutSeconds": {} 137 }, 138 "f:name": {}, 139 "f:ports": { 140 ".": {}, 141 "k:{\"containerPort\":9200,\"protocol\":\"TCP\"}": { 142 ".": {}, 143 "f:containerPort": {}, 144 "f:name": {}, 145 "f:protocol": {} 146 }, 147 "k:{\"containerPort\":9300,\"protocol\":\"TCP\"}": { 148 ".": {}, 149 "f:containerPort": {}, 150 "f:name": {}, 151 "f:protocol": {} 152 } 153 }, 154 "f:readinessProbe": { 155 ".": {}, 156 "f:exec": { 157 ".": {}, 158 "f:command": {} 159 }, 160 "f:failureThreshold": {}, 161 "f:initialDelaySeconds": {}, 162 "f:periodSeconds": {}, 163 "f:successThreshold": {}, 164 "f:timeoutSeconds": {} 165 }, 166 "f:resources": { 167 ".": {}, 168 "f:requests": { 169 ".": {}, 170 "f:memory": {} 171 } 172 }, 173 "f:securityContext": { 174 ".": {}, 175 "f:privileged": {}, 176 "f:runAsUser": {} 177 }, 178 "f:terminationMessagePath": {}, 179 "f:terminationMessagePolicy": {}, 180 "f:volumeMounts": { 181 ".": {}, 182 "k:{\"mountPath\":\"/usr/share/elasticsearch/data\"}": { 183 ".": {}, 184 "f:mountPath": {}, 185 "f:name": {} 186 } 187 } 188 } 189 }, 190 "f:dnsPolicy": {}, 191 "f:enableServiceLinks": {}, 192 "f:hostname": {}, 193 "f:initContainers": { 194 ".": {}, 195 "k:{\"name\":\"elasticsearch-init\"}": { 196 ".": {}, 197 "f:command": {}, 198 "f:image": {}, 199 "f:imagePullPolicy": {}, 200 "f:name": {}, 201 "f:resources": {}, 202 "f:securityContext": { 203 ".": {}, 204 "f:privileged": {} 205 }, 206 "f:terminationMessagePath": {}, 207 "f:terminationMessagePolicy": {}, 208 "f:volumeMounts": { 209 ".": {}, 210 "k:{\"mountPath\":\"/usr/share/elasticsearch/data\"}": { 211 ".": {}, 212 "f:mountPath": {}, 213 "f:name": {} 214 } 215 } 216 } 217 }, 218 "f:restartPolicy": {}, 219 "f:schedulerName": {}, 220 "f:securityContext": {}, 221 "f:serviceAccount": {}, 222 "f:serviceAccountName": {}, 223 "f:subdomain": {}, 224 "f:terminationGracePeriodSeconds": {}, 225 "f:volumes": { 226 ".": {}, 227 "k:{\"name\":\"elasticsearch-master\"}": { 228 ".": {}, 229 "f:name": {}, 230 "f:persistentVolumeClaim": { 231 ".": {}, 232 "f:claimName": {} 233 } 234 } 235 } 236 } 237 } 238 }, 239 { 240 "manager": "kube-scheduler", 241 "operation": "Update", 242 "apiVersion": "v1", 243 "time": "2021-03-02T15:10:02Z", 244 "fieldsType": "FieldsV1", 245 "fieldsV1": { 246 "f:status": { 247 "f:conditions": { 248 ".": {}, 249 "k:{\"type\":\"PodScheduled\"}": { 250 ".": {}, 251 "f:lastProbeTime": {}, 252 "f:lastTransitionTime": {}, 253 "f:message": {}, 254 "f:reason": {}, 255 "f:status": {}, 256 "f:type": {} 257 } 258 } 259 } 260 } 261 } 262 ] 263 }, 264 "spec": { 265 "volumes": [ 266 { 267 "name": "elasticsearch-master", 268 "persistentVolumeClaim": { 269 "claimName": "elasticsearch-master-vmi-system-es-master-0" 270 } 271 }, 272 { 273 "name": "verrazzano-monitoring-operator-token-cq2jj", 274 "secret": { 275 "secretName": "verrazzano-monitoring-operator-token-cq2jj", 276 "defaultMode": 420 277 } 278 } 279 ], 280 "initContainers": [ 281 { 282 "name": "elasticsearch-init", 283 "image": "ghcr.io/oracle/oraclelinux:7.8", 284 "command": [ 285 "sh", 286 "-c", 287 "chown -R 1000:1000 /usr/share/elasticsearch/data; sysctl -w vm.max_map_count=262144" 288 ], 289 "resources": {}, 290 "volumeMounts": [ 291 { 292 "name": "elasticsearch-master", 293 "mountPath": "/usr/share/elasticsearch/data" 294 }, 295 { 296 "name": "verrazzano-monitoring-operator-token-cq2jj", 297 "readOnly": true, 298 "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount" 299 } 300 ], 301 "terminationMessagePath": "/dev/termination-log", 302 "terminationMessagePolicy": "File", 303 "imagePullPolicy": "IfNotPresent", 304 "securityContext": { 305 "privileged": true 306 } 307 } 308 ], 309 "containers": [ 310 { 311 "name": "es-master", 312 "image": "REDACTED-FOR-TEST", 313 "args": [ 314 "elasticsearch", 315 "-E", 316 "logger.org.elasticsearch=INFO" 317 ], 318 "ports": [ 319 { 320 "name": "transport", 321 "containerPort": 9300, 322 "protocol": "TCP" 323 }, 324 { 325 "name": "http", 326 "containerPort": 9200, 327 "protocol": "TCP" 328 } 329 ], 330 "env": [ 331 { 332 "name": "node.name", 333 "valueFrom": { 334 "fieldRef": { 335 "apiVersion": "v1", 336 "fieldPath": "metadata.name" 337 } 338 } 339 }, 340 { 341 "name": "cluster.name", 342 "value": "system" 343 }, 344 { 345 "name": "HTTP_ENABLE", 346 "value": "true" 347 }, 348 { 349 "name": "discovery.seed_hosts", 350 "value": "vmi-system-es-master" 351 }, 352 { 353 "name": "node.master", 354 "value": "true" 355 }, 356 { 357 "name": "node.ingest", 358 "value": "false" 359 }, 360 { 361 "name": "node.data", 362 "value": "false" 363 }, 364 { 365 "name": "cluster.initial_master_nodes", 366 "value": "vmi-system-es-master-0,vmi-system-es-master-1,vmi-system-es-master-2" 367 } 368 ], 369 "resources": { 370 "requests": { 371 "memory": "1503238553600m" 372 } 373 }, 374 "volumeMounts": [ 375 { 376 "name": "elasticsearch-master", 377 "mountPath": "/usr/share/elasticsearch/data" 378 }, 379 { 380 "name": "verrazzano-monitoring-operator-token-cq2jj", 381 "readOnly": true, 382 "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount" 383 } 384 ], 385 "livenessProbe": { 386 "tcpSocket": { 387 "port": 9300 388 }, 389 "initialDelaySeconds": 10, 390 "timeoutSeconds": 5, 391 "periodSeconds": 10, 392 "successThreshold": 1, 393 "failureThreshold": 5 394 }, 395 "readinessProbe": { 396 "exec": { 397 "command": [ 398 "sh", 399 "-c", 400 "#!/usr/bin/env bash -e\n# If the node is starting up wait for the cluster to be ready' )\n# Once it has started only check that the node itself is responding\n\nSTART_FILE=/tmp/.es_start_file\n\nhttp () {\n local path=\"${1}\"\n curl -v -XGET -s -k --fail http://REDACTED-IP4-ADDRESS:9200${path}\n}\n\nif [ -f \"${START_FILE}\" ]; then\n echo 'Elasticsearch is already running, lets check the node is healthy'\n http \"\"\nelse\n echo 'Waiting for elasticsearch cluster to become cluster to be ready'\n if http \"\" ; then\n touch ${START_FILE}\n else\n echo 'Cluster is not yet ready'\n exit 1\n\n fi\n exit 0\nfi" 401 ] 402 }, 403 "initialDelaySeconds": 90, 404 "timeoutSeconds": 5, 405 "periodSeconds": 5, 406 "successThreshold": 3, 407 "failureThreshold": 3 408 }, 409 "terminationMessagePath": "/dev/termination-log", 410 "terminationMessagePolicy": "File", 411 "imagePullPolicy": "IfNotPresent", 412 "securityContext": { 413 "privileged": false, 414 "runAsUser": 1000 415 } 416 } 417 ], 418 "restartPolicy": "Always", 419 "terminationGracePeriodSeconds": 1, 420 "dnsPolicy": "ClusterFirst", 421 "serviceAccountName": "verrazzano-monitoring-operator", 422 "serviceAccount": "verrazzano-monitoring-operator", 423 "securityContext": {}, 424 "hostname": "vmi-system-es-master-0", 425 "subdomain": "vmi-system-es-master", 426 "affinity": { 427 "podAntiAffinity": { 428 "preferredDuringSchedulingIgnoredDuringExecution": [ 429 { 430 "weight": 100, 431 "podAffinityTerm": { 432 "labelSelector": { 433 "matchLabels": { 434 "app": "system-es-master" 435 } 436 }, 437 "topologyKey": "failure-domain.beta.kubernetes.io/zone" 438 } 439 } 440 ] 441 } 442 }, 443 "schedulerName": "default-scheduler", 444 "tolerations": [ 445 { 446 "key": "node.kubernetes.io/not-ready", 447 "operator": "Exists", 448 "effect": "NoExecute", 449 "tolerationSeconds": 300 450 }, 451 { 452 "key": "node.kubernetes.io/unreachable", 453 "operator": "Exists", 454 "effect": "NoExecute", 455 "tolerationSeconds": 300 456 } 457 ], 458 "priority": 0, 459 "enableServiceLinks": true 460 }, 461 "status": { 462 "phase": "Pending", 463 "conditions": [ 464 { 465 "type": "PodScheduled", 466 "status": "False", 467 "lastProbeTime": null, 468 "lastTransitionTime": "2021-03-02T15:10:02Z", 469 "reason": "Unschedulable", 470 "message": "0/1 nodes are available: 1 Insufficient memory." 471 } 472 ], 473 "qosClass": "Burstable" 474 } 475 } 476 ] 477 }