Created
March 15, 2018 17:35
-
-
Save yujuhong/8044d7daaf169b5cd6b0c3d587579246 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "apiVersion": "audit.k8s.io/v1beta1", | |
| "auditID": "464d0de5-87fc-4d2d-8ca4-39d866868a0d", | |
| "kind": "Event", | |
| "level": "Request", | |
| "metadata": { | |
| "creationTimestamp": "2018-03-15T12:08:32Z" | |
| }, | |
| "objectRef": { | |
| "apiVersion": "v1", | |
| "name": "fluentd-gcp-v3.0.0-rwx2q", | |
| "namespace": "kube-system", | |
| "resource": "pods", | |
| "resourceVersion": "959", | |
| "subresource": "status", | |
| "uid": "945053ad-2849-11e8-801c-42010a800002" | |
| }, | |
| "requestObject": { | |
| "apiVersion": "v1", | |
| "kind": "Pod", | |
| "metadata": { | |
| "annotations": { | |
| "scheduler.alpha.kubernetes.io/critical-pod": "" | |
| }, | |
| "creationTimestamp": "2018-03-15T12:08:32Z", | |
| "generateName": "fluentd-gcp-v3.0.0-", | |
| "labels": { | |
| "controller-revision-hash": "3507104567", | |
| "k8s-app": "fluentd-gcp", | |
| "kubernetes.io/cluster-service": "true", | |
| "pod-template-generation": "2", | |
| "version": "v3.0.0" | |
| }, | |
| "name": "fluentd-gcp-v3.0.0-rwx2q", | |
| "namespace": "kube-system", | |
| "ownerReferences": [ | |
| { | |
| "apiVersion": "apps/v1", | |
| "blockOwnerDeletion": true, | |
| "controller": true, | |
| "kind": "DaemonSet", | |
| "name": "fluentd-gcp-v3.0.0", | |
| "uid": "3d35781d-2849-11e8-801c-42010a800002" | |
| } | |
| ], | |
| "resourceVersion": "959", | |
| "selfLink": "/api/v1/namespaces/kube-system/pods/fluentd-gcp-v3.0.0-rwx2q", | |
| "uid": "945053ad-2849-11e8-801c-42010a800002" | |
| }, | |
| "spec": { | |
| "containers": [ | |
| { | |
| "image": "gcr.io/stackdriver-agents/stackdriver-logging-agent:0.2-1.5.28-1", | |
| "imagePullPolicy": "IfNotPresent", | |
| "livenessProbe": { | |
| "exec": { | |
| "command": [ | |
| "/bin/sh", | |
| "-c", | |
| "LIVENESS_THRESHOLD_SECONDS=${LIVENESS_THRESHOLD_SECONDS:-300}; STUCK_THRESHOLD_SECONDS=${LIVENESS_THRESHOLD_SECONDS:-900}; if [ ! -e /var/log/fluentd-buffers ]; then\n exit 1;\nfi; touch -d \"${STUCK_THRESHOLD_SECONDS} seconds ago\" /tmp/marker-stuck; if [[ -z \"$(find /var/log/fluentd-buffers -type f -newer /tmp/marker-stuck -print -quit)\" ]]; then\n rm -rf /var/log/fluentd-buffers;\n exit 1;\nfi; touch -d \"${LIVENESS_THRESHOLD_SECONDS} seconds ago\" /tmp/marker-liveness; if [[ -z \"$(find /var/log/fluentd-buffers -type f -newer /tmp/marker-liveness -print -quit)\" ]]; then\n exit 1;\nfi;\n" | |
| ] | |
| }, | |
| "failureThreshold": 3, | |
| "initialDelaySeconds": 600, | |
| "periodSeconds": 60, | |
| "successThreshold": 1, | |
| "timeoutSeconds": 1 | |
| }, | |
| "name": "fluentd-gcp", | |
| "resources": { | |
| "limits": { | |
| "memory": "300Mi" | |
| }, | |
| "requests": { | |
| "cpu": "100m", | |
| "memory": "200Mi" | |
| } | |
| }, | |
| "terminationMessagePath": "/dev/termination-log", | |
| "terminationMessagePolicy": "File", | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/var/log", | |
| "name": "varlog" | |
| }, | |
| { | |
| "mountPath": "/var/lib/docker/containers", | |
| "name": "varlibdockercontainers", | |
| "readOnly": true | |
| }, | |
| { | |
| "mountPath": "/host/lib", | |
| "name": "libsystemddir", | |
| "readOnly": true | |
| }, | |
| { | |
| "mountPath": "/etc/google-fluentd/config.d", | |
| "name": "config-volume" | |
| }, | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "fluentd-gcp-token-ld4gm", | |
| "readOnly": true | |
| } | |
| ] | |
| }, | |
| { | |
| "command": [ | |
| "/monitor", | |
| "--stackdriver-prefix=custom.googleapis.com/addons", | |
| "--api-override=https://monitoring.googleapis.com/", | |
| "--source=fluentd:http://localhost:24231?whitelisted=stackdriver_successful_requests_count,stackdriver_failed_requests_count,stackdriver_ingested_entries_count,stackdriver_dropped_entries_count", | |
| "--pod-id=$(POD_NAME)", | |
| "--namespace-id=$(POD_NAMESPACE)" | |
| ], | |
| "env": [ | |
| { | |
| "name": "POD_NAME", | |
| "valueFrom": { | |
| "fieldRef": { | |
| "apiVersion": "v1", | |
| "fieldPath": "metadata.name" | |
| } | |
| } | |
| }, | |
| { | |
| "name": "POD_NAMESPACE", | |
| "valueFrom": { | |
| "fieldRef": { | |
| "apiVersion": "v1", | |
| "fieldPath": "metadata.namespace" | |
| } | |
| } | |
| } | |
| ], | |
| "image": "k8s.gcr.io/prometheus-to-sd:v0.2.4", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "prometheus-to-sd-exporter", | |
| "resources": { | |
| "limits": { | |
| "memory": "300Mi" | |
| }, | |
| "requests": { | |
| "cpu": "100m", | |
| "memory": "200Mi" | |
| } | |
| }, | |
| "terminationMessagePath": "/dev/termination-log", | |
| "terminationMessagePolicy": "File", | |
| "volumeMounts": [ | |
| { | |
| "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount", | |
| "name": "fluentd-gcp-token-ld4gm", | |
| "readOnly": true | |
| } | |
| ] | |
| } | |
| ], | |
| "dnsPolicy": "Default", | |
| "nodeName": "bootstrap-e2e-master", | |
| "nodeSelector": { | |
| "beta.kubernetes.io/fluentd-ds-ready": "true" | |
| }, | |
| "restartPolicy": "Always", | |
| "schedulerName": "default-scheduler", | |
| "securityContext": {}, | |
| "serviceAccount": "fluentd-gcp", | |
| "serviceAccountName": "fluentd-gcp", | |
| "terminationGracePeriodSeconds": 30, | |
| "tolerations": [ | |
| { | |
| "effect": "NoSchedule", | |
| "key": "node.alpha.kubernetes.io/ismaster" | |
| }, | |
| { | |
| "effect": "NoExecute", | |
| "operator": "Exists" | |
| }, | |
| { | |
| "effect": "NoSchedule", | |
| "operator": "Exists" | |
| }, | |
| { | |
| "effect": "NoExecute", | |
| "key": "node.kubernetes.io/not-ready", | |
| "operator": "Exists" | |
| }, | |
| { | |
| "effect": "NoExecute", | |
| "key": "node.kubernetes.io/unreachable", | |
| "operator": "Exists" | |
| }, | |
| { | |
| "effect": "NoSchedule", | |
| "key": "node.kubernetes.io/disk-pressure", | |
| "operator": "Exists" | |
| }, | |
| { | |
| "effect": "NoSchedule", | |
| "key": "node.kubernetes.io/memory-pressure", | |
| "operator": "Exists" | |
| } | |
| ], | |
| "volumes": [ | |
| { | |
| "hostPath": { | |
| "path": "/var/log", | |
| "type": "" | |
| }, | |
| "name": "varlog" | |
| }, | |
| { | |
| "hostPath": { | |
| "path": "/var/lib/docker/containers", | |
| "type": "" | |
| }, | |
| "name": "varlibdockercontainers" | |
| }, | |
| { | |
| "hostPath": { | |
| "path": "/usr/lib64", | |
| "type": "" | |
| }, | |
| "name": "libsystemddir" | |
| }, | |
| { | |
| "configMap": { | |
| "defaultMode": 420, | |
| "name": "fluentd-gcp-config-v1.2.4" | |
| }, | |
| "name": "config-volume" | |
| }, | |
| { | |
| "name": "fluentd-gcp-token-ld4gm", | |
| "secret": { | |
| "defaultMode": 420, | |
| "secretName": "fluentd-gcp-token-ld4gm" | |
| } | |
| } | |
| ] | |
| }, | |
| "status": { | |
| "message": "Pod Unexpected error while attempting to recover from admission failure: preemption: error finding a set of pods to preempt: no set of running pods found to reclaim resources: [(res: cpu, q: 82), ]", | |
| "phase": "Failed", | |
| "reason": "UnexpectedAdmissionError", | |
| "startTime": "2018-03-15T12:08:32Z" | |
| } | |
| }, | |
| "requestReceivedTimestamp": "2018-03-15T12:08:32.629024Z", | |
| "requestURI": "/api/v1/namespaces/kube-system/pods/fluentd-gcp-v3.0.0-rwx2q/status", | |
| "responseStatus": { | |
| "code": 200, | |
| "metadata": {} | |
| }, | |
| "sourceIPs": [ | |
| "35.225.223.134" | |
| ], | |
| "stage": "ResponseComplete", | |
| "stageTimestamp": "2018-03-15T12:08:32.639121Z", | |
| "timestamp": "2018-03-15T12:08:32Z", | |
| "user": { | |
| "groups": [ | |
| "system:nodes", | |
| "system:authenticated" | |
| ], | |
| "username": "kubelet" | |
| }, | |
| "verb": "update" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment