Skip to content

Instantly share code, notes, and snippets.

@barkbay
Created January 10, 2020 07:23
Show Gist options
  • Save barkbay/d5ccd3ae9cc3bf649678b16ecfb6e83f to your computer and use it in GitHub Desktop.
Save barkbay/d5ccd3ae9cc3bf649678b16ecfb6e83f to your computer and use it in GitHub Desktop.
List of candidates before the sort
{
"level": "info",
"@timestamp": "2020-01-10T07:16:39.271Z",
"logger": "driver",
"message": "Cqndidates before sort",
"ver": "1.0.0-7da3f193",
"candidates": [{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "es-apm-sample-es-masters-2",
"generateName": "es-apm-sample-es-masters-",
"namespace": "elasticsearch-namespace",
"selfLink": "/api/v1/namespaces/elasticsearch-namespace/pods/es-apm-sample-es-masters-2",
"uid": "b281a6c1-3378-11ea-9ad8-42010a8400f3",
"resourceVersion": "8254",
"creationTimestamp": "2020-01-10T07:13:27Z",
"labels": {
"common.k8s.elastic.co/type": "elasticsearch",
"controller-revision-hash": "es-apm-sample-es-masters-69bcb5f8df",
"elasticsearch.k8s.elastic.co/cluster-name": "es-apm-sample",
"elasticsearch.k8s.elastic.co/config-hash": "2511126633",
"elasticsearch.k8s.elastic.co/http-scheme": "https",
"elasticsearch.k8s.elastic.co/node-data": "false",
"elasticsearch.k8s.elastic.co/node-ingest": "false",
"elasticsearch.k8s.elastic.co/node-master": "true",
"elasticsearch.k8s.elastic.co/node-ml": "false",
"elasticsearch.k8s.elastic.co/statefulset-name": "es-apm-sample-es-masters",
"elasticsearch.k8s.elastic.co/version": "6.8.5",
"statefulset.kubernetes.io/pod-name": "es-apm-sample-es-masters-2"
},
"annotations": {
"update.k8s.elastic.co/timestamp": "2020-01-10T07:14:19.017929409Z"
},
"ownerReferences": [{
"apiVersion": "apps/v1",
"kind": "StatefulSet",
"name": "es-apm-sample-es-masters",
"uid": "b257f06a-3378-11ea-9ad8-42010a8400f3",
"controller": true,
"blockOwnerDeletion": true
}]
},
"spec": {
"volumes": [{
"name": "elasticsearch-data",
"persistentVolumeClaim": {
"claimName": "elasticsearch-data-es-apm-sample-es-masters-2"
}
}, {
"name": "downward-api",
"downwardAPI": {
"items": [{
"path": "labels",
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.labels"
}
}],
"defaultMode": 420
}
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"emptyDir": {}
}, {
"name": "elastic-internal-elasticsearch-config",
"secret": {
"secretName": "es-apm-sample-es-masters-es-config",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-elasticsearch-config-local",
"emptyDir": {}
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"emptyDir": {}
}, {
"name": "elastic-internal-http-certificates",
"secret": {
"secretName": "es-apm-sample-es-http-certs-internal",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-probe-user",
"secret": {
"secretName": "es-apm-sample-es-internal-users",
"items": [{
"key": "elastic-internal-probe",
"path": "elastic-internal-probe"
}],
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-scripts",
"configMap": {
"name": "es-apm-sample-es-scripts",
"defaultMode": 493,
"optional": false
}
}, {
"name": "elastic-internal-transport-certificates",
"secret": {
"secretName": "es-apm-sample-es-transport-certificates",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-unicast-hosts",
"configMap": {
"name": "es-apm-sample-es-unicast-hosts",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-xpack-file-realm",
"secret": {
"secretName": "es-apm-sample-es-xpack-file-realm",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elasticsearch-logs",
"emptyDir": {}
}],
"initContainers": [{
"name": "elastic-internal-init-filesystem",
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/prepare-fs.sh"],
"env": [{
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}, {
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}],
"resources": {
"limits": {
"cpu": "100m",
"memory": "20Mi"
},
"requests": {
"cpu": "100m",
"memory": "20Mi"
}
},
"volumeMounts": [{
"name": "elastic-internal-elasticsearch-config-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-config-local"
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-plugins-local"
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-bin-local"
}, {
"name": "elastic-internal-transport-certificates",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/transport-certificates"
}, {
"name": "elastic-internal-scripts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/scripts"
}, {
"name": "elasticsearch-data",
"mountPath": "/usr/share/elasticsearch/data"
}, {
"name": "elasticsearch-logs",
"mountPath": "/usr/share/elasticsearch/logs"
}, {
"name": "downward-api",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/downward-api"
}, {
"name": "elastic-internal-elasticsearch-config",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/elasticsearch-config"
}, {
"name": "elastic-internal-http-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/http-certs"
}, {
"name": "elastic-internal-probe-user",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/probe-user"
}, {
"name": "elastic-internal-unicast-hosts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/unicast-hosts"
}, {
"name": "elastic-internal-xpack-file-realm",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/xpack-file-realm"
}],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"privileged": false
}
}],
"containers": [{
"name": "elasticsearch",
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"ports": [{
"name": "http",
"containerPort": 9200,
"protocol": "TCP"
}, {
"name": "transport",
"containerPort": 9300,
"protocol": "TCP"
}],
"env": [{
"name": "HEADLESS_SERVICE_NAME",
"value": "es-apm-sample-es-masters"
}, {
"name": "NSS_SDB_USE_CACHE",
"value": "no"
}, {
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}, {
"name": "PROBE_PASSWORD_PATH",
"value": "/mnt/elastic-internal/probe-user/elastic-internal-probe"
}, {
"name": "PROBE_USERNAME",
"value": "elastic-internal-probe"
}, {
"name": "READINESS_PROBE_PROTOCOL",
"value": "https"
}],
"resources": {
"limits": {
"memory": "2Gi"
},
"requests": {
"memory": "2Gi"
}
},
"volumeMounts": [{
"name": "downward-api",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/downward-api"
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"mountPath": "/usr/share/elasticsearch/bin"
}, {
"name": "elastic-internal-elasticsearch-config",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/elasticsearch-config"
}, {
"name": "elastic-internal-elasticsearch-config-local",
"mountPath": "/usr/share/elasticsearch/config"
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"mountPath": "/usr/share/elasticsearch/plugins"
}, {
"name": "elastic-internal-http-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/http-certs"
}, {
"name": "elastic-internal-probe-user",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/probe-user"
}, {
"name": "elastic-internal-scripts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/scripts"
}, {
"name": "elastic-internal-transport-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/transport-certs"
}, {
"name": "elastic-internal-unicast-hosts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/unicast-hosts"
}, {
"name": "elastic-internal-xpack-file-realm",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/xpack-file-realm"
}, {
"name": "elasticsearch-data",
"mountPath": "/usr/share/elasticsearch/data"
}, {
"name": "elasticsearch-logs",
"mountPath": "/usr/share/elasticsearch/logs"
}],
"readinessProbe": {
"exec": {
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/readiness-probe-script.sh"]
},
"initialDelaySeconds": 10,
"timeoutSeconds": 5,
"periodSeconds": 5,
"successThreshold": 1,
"failureThreshold": 3
},
"lifecycle": {
"preStop": {
"exec": {
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/pre-stop-hook-script.sh"]
}
}
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 180,
"dnsPolicy": "ClusterFirst",
"serviceAccountName": "default",
"serviceAccount": "default",
"automountServiceAccountToken": false,
"nodeName": "gke-michael-dev-ssd-default-pool-7105e16a-7s9n",
"securityContext": {},
"hostname": "es-apm-sample-es-masters-2",
"subdomain": "es-apm-sample-es-masters",
"affinity": {
"podAntiAffinity": {
"preferredDuringSchedulingIgnoredDuringExecution": [{
"weight": 100,
"podAffinityTerm": {
"labelSelector": {
"matchLabels": {
"elasticsearch.k8s.elastic.co/cluster-name": "es-apm-sample"
}
},
"topologyKey": "kubernetes.io/hostname"
}
}]
}
},
"schedulerName": "default-scheduler",
"tolerations": [{
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}, {
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}],
"priority": 0,
"enableServiceLinks": true
},
"status": {
"phase": "Running",
"conditions": [{
"type": "Initialized",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:04Z"
}, {
"type": "Ready",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:31Z"
}, {
"type": "ContainersReady",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:31Z"
}, {
"type": "PodScheduled",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:13:36Z"
}],
"hostIP": "10.132.0.128",
"podIP": "10.76.1.8",
"startTime": "2020-01-10T07:13:36Z",
"initContainerStatuses": [{
"name": "elastic-internal-init-filesystem",
"state": {
"terminated": {
"exitCode": 0,
"reason": "Completed",
"startedAt": "2020-01-10T07:14:01Z",
"finishedAt": "2020-01-10T07:14:03Z",
"containerID": "docker://42b9678c497fe593f50d42110cf261a578dfa5d3b0ef27c26b0a970cdf1ef101"
}
},
"lastState": {},
"ready": true,
"restartCount": 0,
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"imageID": "docker-pullable://docker.elastic.co/elasticsearch/elasticsearch@sha256:176730ecd808058822214b2f9ce6e7a7aa462b6655a721506fc41ed9c0f224a7",
"containerID": "docker://42b9678c497fe593f50d42110cf261a578dfa5d3b0ef27c26b0a970cdf1ef101"
}],
"containerStatuses": [{
"name": "elasticsearch",
"state": {
"running": {
"startedAt": "2020-01-10T07:14:04Z"
}
},
"lastState": {},
"ready": true,
"restartCount": 0,
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"imageID": "docker-pullable://docker.elastic.co/elasticsearch/elasticsearch@sha256:176730ecd808058822214b2f9ce6e7a7aa462b6655a721506fc41ed9c0f224a7",
"containerID": "docker://2ae8861198c5908316e1a25331daf56f0069afd09105b094176a60ad8e736e3f"
}],
"qosClass": "Burstable"
}
}, {
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "es-apm-sample-es-masters-1",
"generateName": "es-apm-sample-es-masters-",
"namespace": "elasticsearch-namespace",
"selfLink": "/api/v1/namespaces/elasticsearch-namespace/pods/es-apm-sample-es-masters-1",
"uid": "b2754d72-3378-11ea-9ad8-42010a8400f3",
"resourceVersion": "8373",
"creationTimestamp": "2020-01-10T07:13:27Z",
"labels": {
"common.k8s.elastic.co/type": "elasticsearch",
"controller-revision-hash": "es-apm-sample-es-masters-69bcb5f8df",
"elasticsearch.k8s.elastic.co/cluster-name": "es-apm-sample",
"elasticsearch.k8s.elastic.co/config-hash": "2511126633",
"elasticsearch.k8s.elastic.co/http-scheme": "https",
"elasticsearch.k8s.elastic.co/node-data": "false",
"elasticsearch.k8s.elastic.co/node-ingest": "false",
"elasticsearch.k8s.elastic.co/node-master": "true",
"elasticsearch.k8s.elastic.co/node-ml": "false",
"elasticsearch.k8s.elastic.co/statefulset-name": "es-apm-sample-es-masters",
"elasticsearch.k8s.elastic.co/version": "6.8.5",
"statefulset.kubernetes.io/pod-name": "es-apm-sample-es-masters-1"
},
"annotations": {
"update.k8s.elastic.co/timestamp": "2020-01-10T07:14:18.996391883Z"
},
"ownerReferences": [{
"apiVersion": "apps/v1",
"kind": "StatefulSet",
"name": "es-apm-sample-es-masters",
"uid": "b257f06a-3378-11ea-9ad8-42010a8400f3",
"controller": true,
"blockOwnerDeletion": true
}]
},
"spec": {
"volumes": [{
"name": "elasticsearch-data",
"persistentVolumeClaim": {
"claimName": "elasticsearch-data-es-apm-sample-es-masters-1"
}
}, {
"name": "downward-api",
"downwardAPI": {
"items": [{
"path": "labels",
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.labels"
}
}],
"defaultMode": 420
}
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"emptyDir": {}
}, {
"name": "elastic-internal-elasticsearch-config",
"secret": {
"secretName": "es-apm-sample-es-masters-es-config",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-elasticsearch-config-local",
"emptyDir": {}
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"emptyDir": {}
}, {
"name": "elastic-internal-http-certificates",
"secret": {
"secretName": "es-apm-sample-es-http-certs-internal",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-probe-user",
"secret": {
"secretName": "es-apm-sample-es-internal-users",
"items": [{
"key": "elastic-internal-probe",
"path": "elastic-internal-probe"
}],
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-scripts",
"configMap": {
"name": "es-apm-sample-es-scripts",
"defaultMode": 493,
"optional": false
}
}, {
"name": "elastic-internal-transport-certificates",
"secret": {
"secretName": "es-apm-sample-es-transport-certificates",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-unicast-hosts",
"configMap": {
"name": "es-apm-sample-es-unicast-hosts",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-xpack-file-realm",
"secret": {
"secretName": "es-apm-sample-es-xpack-file-realm",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elasticsearch-logs",
"emptyDir": {}
}],
"initContainers": [{
"name": "elastic-internal-init-filesystem",
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/prepare-fs.sh"],
"env": [{
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}, {
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}],
"resources": {
"limits": {
"cpu": "100m",
"memory": "20Mi"
},
"requests": {
"cpu": "100m",
"memory": "20Mi"
}
},
"volumeMounts": [{
"name": "elastic-internal-elasticsearch-config-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-config-local"
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-plugins-local"
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-bin-local"
}, {
"name": "elastic-internal-transport-certificates",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/transport-certificates"
}, {
"name": "elastic-internal-scripts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/scripts"
}, {
"name": "elasticsearch-data",
"mountPath": "/usr/share/elasticsearch/data"
}, {
"name": "elasticsearch-logs",
"mountPath": "/usr/share/elasticsearch/logs"
}, {
"name": "downward-api",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/downward-api"
}, {
"name": "elastic-internal-elasticsearch-config",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/elasticsearch-config"
}, {
"name": "elastic-internal-http-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/http-certs"
}, {
"name": "elastic-internal-probe-user",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/probe-user"
}, {
"name": "elastic-internal-unicast-hosts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/unicast-hosts"
}, {
"name": "elastic-internal-xpack-file-realm",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/xpack-file-realm"
}],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"privileged": false
}
}],
"containers": [{
"name": "elasticsearch",
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"ports": [{
"name": "http",
"containerPort": 9200,
"protocol": "TCP"
}, {
"name": "transport",
"containerPort": 9300,
"protocol": "TCP"
}],
"env": [{
"name": "HEADLESS_SERVICE_NAME",
"value": "es-apm-sample-es-masters"
}, {
"name": "NSS_SDB_USE_CACHE",
"value": "no"
}, {
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}, {
"name": "PROBE_PASSWORD_PATH",
"value": "/mnt/elastic-internal/probe-user/elastic-internal-probe"
}, {
"name": "PROBE_USERNAME",
"value": "elastic-internal-probe"
}, {
"name": "READINESS_PROBE_PROTOCOL",
"value": "https"
}],
"resources": {
"limits": {
"memory": "2Gi"
},
"requests": {
"memory": "2Gi"
}
},
"volumeMounts": [{
"name": "downward-api",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/downward-api"
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"mountPath": "/usr/share/elasticsearch/bin"
}, {
"name": "elastic-internal-elasticsearch-config",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/elasticsearch-config"
}, {
"name": "elastic-internal-elasticsearch-config-local",
"mountPath": "/usr/share/elasticsearch/config"
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"mountPath": "/usr/share/elasticsearch/plugins"
}, {
"name": "elastic-internal-http-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/http-certs"
}, {
"name": "elastic-internal-probe-user",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/probe-user"
}, {
"name": "elastic-internal-scripts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/scripts"
}, {
"name": "elastic-internal-transport-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/transport-certs"
}, {
"name": "elastic-internal-unicast-hosts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/unicast-hosts"
}, {
"name": "elastic-internal-xpack-file-realm",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/xpack-file-realm"
}, {
"name": "elasticsearch-data",
"mountPath": "/usr/share/elasticsearch/data"
}, {
"name": "elasticsearch-logs",
"mountPath": "/usr/share/elasticsearch/logs"
}],
"readinessProbe": {
"exec": {
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/readiness-probe-script.sh"]
},
"initialDelaySeconds": 10,
"timeoutSeconds": 5,
"periodSeconds": 5,
"successThreshold": 1,
"failureThreshold": 3
},
"lifecycle": {
"preStop": {
"exec": {
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/pre-stop-hook-script.sh"]
}
}
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 180,
"dnsPolicy": "ClusterFirst",
"serviceAccountName": "default",
"serviceAccount": "default",
"automountServiceAccountToken": false,
"nodeName": "gke-michael-dev-ssd-default-pool-8757ddaa-zjhr",
"securityContext": {},
"hostname": "es-apm-sample-es-masters-1",
"subdomain": "es-apm-sample-es-masters",
"affinity": {
"podAntiAffinity": {
"preferredDuringSchedulingIgnoredDuringExecution": [{
"weight": 100,
"podAffinityTerm": {
"labelSelector": {
"matchLabels": {
"elasticsearch.k8s.elastic.co/cluster-name": "es-apm-sample"
}
},
"topologyKey": "kubernetes.io/hostname"
}
}]
}
},
"schedulerName": "default-scheduler",
"tolerations": [{
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}, {
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}],
"priority": 0,
"enableServiceLinks": true
},
"status": {
"phase": "Running",
"conditions": [{
"type": "Initialized",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:20Z"
}, {
"type": "Ready",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:48Z"
}, {
"type": "ContainersReady",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:48Z"
}, {
"type": "PodScheduled",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:13:36Z"
}],
"hostIP": "10.132.0.127",
"podIP": "10.76.0.8",
"startTime": "2020-01-10T07:13:36Z",
"initContainerStatuses": [{
"name": "elastic-internal-init-filesystem",
"state": {
"terminated": {
"exitCode": 0,
"reason": "Completed",
"startedAt": "2020-01-10T07:14:16Z",
"finishedAt": "2020-01-10T07:14:19Z",
"containerID": "docker://8efec3a1bf7c5ceda5f49bb7e4ad5240a1c7a203134e83c53ea7f3b468c6207a"
}
},
"lastState": {},
"ready": true,
"restartCount": 0,
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"imageID": "docker-pullable://docker.elastic.co/elasticsearch/elasticsearch@sha256:176730ecd808058822214b2f9ce6e7a7aa462b6655a721506fc41ed9c0f224a7",
"containerID": "docker://8efec3a1bf7c5ceda5f49bb7e4ad5240a1c7a203134e83c53ea7f3b468c6207a"
}],
"containerStatuses": [{
"name": "elasticsearch",
"state": {
"running": {
"startedAt": "2020-01-10T07:14:24Z"
}
},
"lastState": {},
"ready": true,
"restartCount": 0,
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"imageID": "docker-pullable://docker.elastic.co/elasticsearch/elasticsearch@sha256:176730ecd808058822214b2f9ce6e7a7aa462b6655a721506fc41ed9c0f224a7",
"containerID": "docker://3edc31b86aaae46c0fd25ff9d872c21ad88a3124c78e6e1b1ce736679dd8035e"
}],
"qosClass": "Burstable"
}
}, {
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "es-apm-sample-es-masters-0",
"generateName": "es-apm-sample-es-masters-",
"namespace": "elasticsearch-namespace",
"selfLink": "/api/v1/namespaces/elasticsearch-namespace/pods/es-apm-sample-es-masters-0",
"uid": "b2661de2-3378-11ea-9ad8-42010a8400f3",
"resourceVersion": "8288",
"creationTimestamp": "2020-01-10T07:13:27Z",
"labels": {
"common.k8s.elastic.co/type": "elasticsearch",
"controller-revision-hash": "es-apm-sample-es-masters-69bcb5f8df",
"elasticsearch.k8s.elastic.co/cluster-name": "es-apm-sample",
"elasticsearch.k8s.elastic.co/config-hash": "2511126633",
"elasticsearch.k8s.elastic.co/http-scheme": "https",
"elasticsearch.k8s.elastic.co/node-data": "false",
"elasticsearch.k8s.elastic.co/node-ingest": "false",
"elasticsearch.k8s.elastic.co/node-master": "true",
"elasticsearch.k8s.elastic.co/node-ml": "false",
"elasticsearch.k8s.elastic.co/statefulset-name": "es-apm-sample-es-masters",
"elasticsearch.k8s.elastic.co/version": "6.8.5",
"statefulset.kubernetes.io/pod-name": "es-apm-sample-es-masters-0"
},
"annotations": {
"update.k8s.elastic.co/timestamp": "2020-01-10T07:14:18.978224933Z"
},
"ownerReferences": [{
"apiVersion": "apps/v1",
"kind": "StatefulSet",
"name": "es-apm-sample-es-masters",
"uid": "b257f06a-3378-11ea-9ad8-42010a8400f3",
"controller": true,
"blockOwnerDeletion": true
}]
},
"spec": {
"volumes": [{
"name": "elasticsearch-data",
"persistentVolumeClaim": {
"claimName": "elasticsearch-data-es-apm-sample-es-masters-0"
}
}, {
"name": "downward-api",
"downwardAPI": {
"items": [{
"path": "labels",
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.labels"
}
}],
"defaultMode": 420
}
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"emptyDir": {}
}, {
"name": "elastic-internal-elasticsearch-config",
"secret": {
"secretName": "es-apm-sample-es-masters-es-config",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-elasticsearch-config-local",
"emptyDir": {}
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"emptyDir": {}
}, {
"name": "elastic-internal-http-certificates",
"secret": {
"secretName": "es-apm-sample-es-http-certs-internal",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-probe-user",
"secret": {
"secretName": "es-apm-sample-es-internal-users",
"items": [{
"key": "elastic-internal-probe",
"path": "elastic-internal-probe"
}],
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-scripts",
"configMap": {
"name": "es-apm-sample-es-scripts",
"defaultMode": 493,
"optional": false
}
}, {
"name": "elastic-internal-transport-certificates",
"secret": {
"secretName": "es-apm-sample-es-transport-certificates",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-unicast-hosts",
"configMap": {
"name": "es-apm-sample-es-unicast-hosts",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elastic-internal-xpack-file-realm",
"secret": {
"secretName": "es-apm-sample-es-xpack-file-realm",
"defaultMode": 420,
"optional": false
}
}, {
"name": "elasticsearch-logs",
"emptyDir": {}
}],
"initContainers": [{
"name": "elastic-internal-init-filesystem",
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/prepare-fs.sh"],
"env": [{
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}, {
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}],
"resources": {
"limits": {
"cpu": "100m",
"memory": "20Mi"
},
"requests": {
"cpu": "100m",
"memory": "20Mi"
}
},
"volumeMounts": [{
"name": "elastic-internal-elasticsearch-config-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-config-local"
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-plugins-local"
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"mountPath": "/mnt/elastic-internal/elasticsearch-bin-local"
}, {
"name": "elastic-internal-transport-certificates",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/transport-certificates"
}, {
"name": "elastic-internal-scripts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/scripts"
}, {
"name": "elasticsearch-data",
"mountPath": "/usr/share/elasticsearch/data"
}, {
"name": "elasticsearch-logs",
"mountPath": "/usr/share/elasticsearch/logs"
}, {
"name": "downward-api",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/downward-api"
}, {
"name": "elastic-internal-elasticsearch-config",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/elasticsearch-config"
}, {
"name": "elastic-internal-http-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/http-certs"
}, {
"name": "elastic-internal-probe-user",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/probe-user"
}, {
"name": "elastic-internal-unicast-hosts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/unicast-hosts"
}, {
"name": "elastic-internal-xpack-file-realm",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/xpack-file-realm"
}],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent",
"securityContext": {
"privileged": false
}
}],
"containers": [{
"name": "elasticsearch",
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"ports": [{
"name": "http",
"containerPort": 9200,
"protocol": "TCP"
}, {
"name": "transport",
"containerPort": 9300,
"protocol": "TCP"
}],
"env": [{
"name": "HEADLESS_SERVICE_NAME",
"value": "es-apm-sample-es-masters"
}, {
"name": "NSS_SDB_USE_CACHE",
"value": "no"
}, {
"name": "POD_IP",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "status.podIP"
}
}
}, {
"name": "POD_NAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
}, {
"name": "PROBE_PASSWORD_PATH",
"value": "/mnt/elastic-internal/probe-user/elastic-internal-probe"
}, {
"name": "PROBE_USERNAME",
"value": "elastic-internal-probe"
}, {
"name": "READINESS_PROBE_PROTOCOL",
"value": "https"
}],
"resources": {
"limits": {
"memory": "2Gi"
},
"requests": {
"memory": "2Gi"
}
},
"volumeMounts": [{
"name": "downward-api",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/downward-api"
}, {
"name": "elastic-internal-elasticsearch-bin-local",
"mountPath": "/usr/share/elasticsearch/bin"
}, {
"name": "elastic-internal-elasticsearch-config",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/elasticsearch-config"
}, {
"name": "elastic-internal-elasticsearch-config-local",
"mountPath": "/usr/share/elasticsearch/config"
}, {
"name": "elastic-internal-elasticsearch-plugins-local",
"mountPath": "/usr/share/elasticsearch/plugins"
}, {
"name": "elastic-internal-http-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/http-certs"
}, {
"name": "elastic-internal-probe-user",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/probe-user"
}, {
"name": "elastic-internal-scripts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/scripts"
}, {
"name": "elastic-internal-transport-certificates",
"readOnly": true,
"mountPath": "/usr/share/elasticsearch/config/transport-certs"
}, {
"name": "elastic-internal-unicast-hosts",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/unicast-hosts"
}, {
"name": "elastic-internal-xpack-file-realm",
"readOnly": true,
"mountPath": "/mnt/elastic-internal/xpack-file-realm"
}, {
"name": "elasticsearch-data",
"mountPath": "/usr/share/elasticsearch/data"
}, {
"name": "elasticsearch-logs",
"mountPath": "/usr/share/elasticsearch/logs"
}],
"readinessProbe": {
"exec": {
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/readiness-probe-script.sh"]
},
"initialDelaySeconds": 10,
"timeoutSeconds": 5,
"periodSeconds": 5,
"successThreshold": 1,
"failureThreshold": 3
},
"lifecycle": {
"preStop": {
"exec": {
"command": ["bash", "-c", "/mnt/elastic-internal/scripts/pre-stop-hook-script.sh"]
}
}
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 180,
"dnsPolicy": "ClusterFirst",
"serviceAccountName": "default",
"serviceAccount": "default",
"automountServiceAccountToken": false,
"nodeName": "gke-michael-dev-ssd-default-pool-fe76e12d-zddh",
"securityContext": {},
"hostname": "es-apm-sample-es-masters-0",
"subdomain": "es-apm-sample-es-masters",
"affinity": {
"podAntiAffinity": {
"preferredDuringSchedulingIgnoredDuringExecution": [{
"weight": 100,
"podAffinityTerm": {
"labelSelector": {
"matchLabels": {
"elasticsearch.k8s.elastic.co/cluster-name": "es-apm-sample"
}
},
"topologyKey": "kubernetes.io/hostname"
}
}]
}
},
"schedulerName": "default-scheduler",
"tolerations": [{
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}, {
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"tolerationSeconds": 300
}],
"priority": 0,
"enableServiceLinks": true
},
"status": {
"phase": "Running",
"conditions": [{
"type": "Initialized",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:10Z"
}, {
"type": "Ready",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:34Z"
}, {
"type": "ContainersReady",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:14:34Z"
}, {
"type": "PodScheduled",
"status": "True",
"lastProbeTime": null,
"lastTransitionTime": "2020-01-10T07:13:31Z"
}],
"hostIP": "10.132.0.126",
"podIP": "10.76.2.7",
"startTime": "2020-01-10T07:13:31Z",
"initContainerStatuses": [{
"name": "elastic-internal-init-filesystem",
"state": {
"terminated": {
"exitCode": 0,
"reason": "Completed",
"startedAt": "2020-01-10T07:14:04Z",
"finishedAt": "2020-01-10T07:14:09Z",
"containerID": "docker://77e7be85fe2d572138e5c9e5877ecd043c3ad80df603032e4184b0a4db7f94f2"
}
},
"lastState": {},
"ready": true,
"restartCount": 0,
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"imageID": "docker-pullable://docker.elastic.co/elasticsearch/elasticsearch@sha256:176730ecd808058822214b2f9ce6e7a7aa462b6655a721506fc41ed9c0f224a7",
"containerID": "docker://77e7be85fe2d572138e5c9e5877ecd043c3ad80df603032e4184b0a4db7f94f2"
}],
"containerStatuses": [{
"name": "elasticsearch",
"state": {
"running": {
"startedAt": "2020-01-10T07:14:10Z"
}
},
"lastState": {},
"ready": true,
"restartCount": 0,
"image": "docker.elastic.co/elasticsearch/elasticsearch:6.8.5",
"imageID": "docker-pullable://docker.elastic.co/elasticsearch/elasticsearch@sha256:176730ecd808058822214b2f9ce6e7a7aa462b6655a721506fc41ed9c0f224a7",
"containerID": "docker://6fd11a58def526801c1951bbef4a670c1945a940e5cc47df7bac7e0b3ab3a15c"
}],
"qosClass": "Burstable"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment