207 lines
9.7 KiB
JSON
207 lines
9.7 KiB
JSON
{
|
|
"apiVersion": "extensions/v1beta1",
|
|
"kind": "DaemonSet",
|
|
"metadata": {
|
|
"annotations": {
|
|
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"extensions/v1beta1\",\"kind\":\"DaemonSet\",\"metadata\":{\"annotations\":{},\"labels\":{\"addonmanager.kubernetes.io/mode\":\"Reconcile\",\"k8s-app\":\"fluentd-gcp\",\"kubernetes.io/cluster-service\":\"true\",\"version\":\"v3.2.0\"},\"name\":\"fluentd-gcp-v3.2.0\",\"namespace\":\"kube-system\"},\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"scheduler.alpha.kubernetes.io/critical-pod\":\"\"},\"labels\":{\"k8s-app\":\"fluentd-gcp\",\"kubernetes.io/cluster-service\":\"true\",\"version\":\"v3.2.0\"}},\"spec\":{\"containers\":[{\"env\":[{\"name\":\"NODE_NAME\",\"valueFrom\":{\"fieldRef\":{\"apiVersion\":\"v1\",\"fieldPath\":\"spec.nodeName\"}}},{\"name\":\"STACKDRIVER_METADATA_AGENT_URL\",\"value\":\"http://$(NODE_NAME):8799\"}],\"image\":\"gcr.io/stackdriver-agents/stackdriver-logging-agent:0.6-1.6.0-1\",\"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\"]},\"initialDelaySeconds\":600,\"periodSeconds\":60},\"name\":\"fluentd-gcp\",\"volumeMounts\":[{\"mountPath\":\"/var/log\",\"name\":\"varlog\"},{\"mountPath\":\"/var/lib/docker/containers\",\"name\":\"varlibdockercontainers\",\"readOnly\":true},{\"mountPath\":\"/etc/google-fluentd/config.d\",\"name\":\"config-volume\"}]},{\"command\":[\"/monitor\",\"--stackdriver-prefix=container.googleapis.com/internal/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\":{\"fieldPath\":\"metadata.name\"}}},{\"name\":\"POD_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}}],\"image\":\"k8s.gcr.io/prometheus-to-sd:v0.3.1\",\"name\":\"prometheus-to-sd-exporter\"}],\"dnsPolicy\":\"Default\",\"hostNetwork\":true,\"nodeSelector\":{\"beta.kubernetes.io/fluentd-ds-ready\":\"true\"},\"priorityClassName\":\"system-node-critical\",\"serviceAccountName\":\"fluentd-gcp\",\"terminationGracePeriodSeconds\":60,\"tolerations\":[{\"effect\":\"NoExecute\",\"operator\":\"Exists\"},{\"effect\":\"NoSchedule\",\"operator\":\"Exists\"}],\"volumes\":[{\"hostPath\":{\"path\":\"/var/log\"},\"name\":\"varlog\"},{\"hostPath\":{\"path\":\"/var/lib/docker/containers\"},\"name\":\"varlibdockercontainers\"},{\"configMap\":{\"name\":\"fluentd-gcp-config-old-v1.2.5\"},\"name\":\"config-volume\"}]}},\"updateStrategy\":{\"type\":\"RollingUpdate\"}}}\n"
|
|
},
|
|
"creationTimestamp": "2019-04-12T23:35:36Z",
|
|
"generation": 2,
|
|
"labels": {
|
|
"addonmanager.kubernetes.io/mode": "Reconcile",
|
|
"k8s-app": "fluentd-gcp",
|
|
"kubernetes.io/cluster-service": "true",
|
|
"version": "v3.2.0"
|
|
},
|
|
"name": "fluentd-gcp-v3.2.0",
|
|
"namespace": "kube-system",
|
|
"resourceVersion": "34805583",
|
|
"selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/daemonsets/fluentd-gcp-v3.2.0",
|
|
"uid": "ac95611f-5d7b-11e9-af05-42010a800018"
|
|
},
|
|
"spec": {
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"k8s-app": "fluentd-gcp",
|
|
"kubernetes.io/cluster-service": "true",
|
|
"version": "v3.2.0"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"annotations": {
|
|
"scheduler.alpha.kubernetes.io/critical-pod": ""
|
|
},
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"k8s-app": "fluentd-gcp",
|
|
"kubernetes.io/cluster-service": "true",
|
|
"version": "v3.2.0"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "NODE_NAME",
|
|
"valueFrom": {
|
|
"fieldRef": {
|
|
"apiVersion": "v1",
|
|
"fieldPath": "spec.nodeName"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "STACKDRIVER_METADATA_AGENT_URL",
|
|
"value": "http://$(NODE_NAME):8799"
|
|
}
|
|
],
|
|
"image": "gcr.io/stackdriver-agents/stackdriver-logging-agent:0.6-1.6.0-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": {
|
|
"cpu": "1",
|
|
"memory": "500Mi"
|
|
},
|
|
"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": "/etc/google-fluentd/config.d",
|
|
"name": "config-volume"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"command": [
|
|
"/monitor",
|
|
"--stackdriver-prefix=container.googleapis.com/internal/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.3.1",
|
|
"imagePullPolicy": "IfNotPresent",
|
|
"name": "prometheus-to-sd-exporter",
|
|
"resources": {},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File"
|
|
}
|
|
],
|
|
"dnsPolicy": "Default",
|
|
"hostNetwork": true,
|
|
"nodeSelector": {
|
|
"beta.kubernetes.io/fluentd-ds-ready": "true"
|
|
},
|
|
"priorityClassName": "system-node-critical",
|
|
"restartPolicy": "Always",
|
|
"schedulerName": "default-scheduler",
|
|
"securityContext": {},
|
|
"serviceAccount": "fluentd-gcp",
|
|
"serviceAccountName": "fluentd-gcp",
|
|
"terminationGracePeriodSeconds": 60,
|
|
"tolerations": [
|
|
{
|
|
"effect": "NoExecute",
|
|
"operator": "Exists"
|
|
},
|
|
{
|
|
"effect": "NoSchedule",
|
|
"operator": "Exists"
|
|
}
|
|
],
|
|
"volumes": [
|
|
{
|
|
"hostPath": {
|
|
"path": "/var/log",
|
|
"type": ""
|
|
},
|
|
"name": "varlog"
|
|
},
|
|
{
|
|
"hostPath": {
|
|
"path": "/var/lib/docker/containers",
|
|
"type": ""
|
|
},
|
|
"name": "varlibdockercontainers"
|
|
},
|
|
{
|
|
"configMap": {
|
|
"defaultMode": 420,
|
|
"name": "fluentd-gcp-config-old-v1.2.5"
|
|
},
|
|
"name": "config-volume"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"templateGeneration": 2,
|
|
"updateStrategy": {
|
|
"rollingUpdate": {
|
|
"maxUnavailable": 1
|
|
},
|
|
"type": "RollingUpdate"
|
|
}
|
|
},
|
|
"status": {
|
|
"currentNumberScheduled": 2,
|
|
"desiredNumberScheduled": 2,
|
|
"numberAvailable": 2,
|
|
"numberMisscheduled": 0,
|
|
"numberReady": 2,
|
|
"observedGeneration": 2,
|
|
"updatedNumberScheduled": 2
|
|
}
|
|
} |