# # Fluentd Kubernetes Metadata Filter Plugin - Enrich Fluentd events with # Kubernetes metadata # # Copyright 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # --- http_interactions: - request: method: get uri: https://localhost:8443/api body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Content-Length: - '67' body: encoding: UTF-8 string: |- { "versions": [ "v1" ] } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/default/pods/fabric8-console-controller-98rqc body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "fabric8-console-controller-98rqc", "generateName": "fabric8-console-controller-", "namespace": "default", "selfLink": "/api/v1/namespaces/default/pods/fabric8-console-controller-98rqc", "uid": "c76927af-f563-11e4-b32d-54ee7527188d", "resourceVersion": "122", "creationTimestamp": "2015-05-08T09:22:42Z", "labels": { "component": "fabric8Console" } }, "spec": { "volumes": [ { "name": "openshift-cert-secrets", "hostPath": null, "emptyDir": null, "gcePersistentDisk": null, "gitRepo": null, "secret": { "secretName": "openshift-cert-secrets" }, "nfs": null, "iscsi": null, "glusterfs": null } ], "containers": [ { "name": "fabric8-console-container", "image": "fabric8/hawtio-kubernetes:latest", "ports": [ { "containerPort": 9090, "protocol": "TCP" } ], "env": [ { "name": "OAUTH_CLIENT_ID", "value": "fabric8-console" }, { "name": "OAUTH_AUTHORIZE_URI", "value": "https://localhost:8443/oauth/authorize" } ], "resources": {}, "volumeMounts": [ { "name": "openshift-cert-secrets", "readOnly": true, "mountPath": "/etc/secret-volume" } ], "terminationMessagePath": "/dev/termination-log", "imagePullPolicy": "IfNotPresent", "capabilities": {} } ], "restartPolicy": "Always", "dnsPolicy": "ClusterFirst", "nodeName": "jimmi-redhat.localnet" }, "status": { "phase": "Running", "Condition": [ { "type": "Ready", "status": "True" } ], "hostIP": "172.17.42.1", "podIP": "172.17.0.8", "containerStatuses": [ { "name": "fabric8-console-container", "state": { "running": { "startedAt": "2015-05-08T09:22:44Z" } }, "lastState": {}, "ready": true, "restartCount": 0, "image": "fabric8/hawtio-kubernetes:latest", "imageID": "docker://b2bd1a24a68356b2f30128e6e28e672c1ef92df0d9ec01ec0c7faea5d77d2303", "containerID": "docker://49095a2894da899d3b327c5fde1e056a81376cc9a8f8b09a195f2a92bceed459" } ] } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/default body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "default", "selfLink": "/api/v1/namespaces/default", "uid": "898268c8-4a36-11e5-9d81-42010af0194c", "resourceVersion": "6", "creationTimestamp": "2015-05-08T09:22:01Z" }, "spec": { "finalizers": [ "kubernetes" ] }, "status": { "phase": "Active" } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/default body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "default", "selfLink": "/api/v1/namespaces/default", "uid": "898268c8-4a36-11e5-9d81-42010af0194c", "resourceVersion": "6", "creationTimestamp": "2015-05-08T09:22:01Z" }, "spec": { "finalizers": [ "kubernetes" ] }, "status": { "phase": "Active" } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/journald-namespace-name/pods/journald-pod-name body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "journald-pod-name", "generateName": "journald-pod-name-", "namespace": "journald-namespace-name", "selfLink": "/api/v1/namespaces/journald-namespace-name/pods/journald-pod-name", "uid": "5e1c1e27-b637-4e81-80b6-6d8a8c404d3b", "resourceVersion": "122", "creationTimestamp": "2015-05-08T09:22:42Z", "labels": { "component": "journald-test" } }, "spec": { "containers": [ { "name": "journald-container-name", "image": "journald-container-image:latest", "terminationMessagePath": "/dev/termination-log", "imagePullPolicy": "IfNotPresent", "capabilities": {} } ], "nodeName": "jimmi-redhat.localnet" }, "status": { "phase": "Running", "Condition": [ { "type": "Ready", "status": "True" } ], "hostIP": "172.17.42.1", "podIP": "172.17.0.8", "containerStatuses": [ { "name": "journald-container-name", "state": { "running": { "startedAt": "2015-05-08T09:22:44Z" } }, "lastState": {}, "ready": true, "restartCount": 0, "image": "journald-container-image:latest", "imageID": "docker://dda4c95705fb7050b701b10a7fe928ca5bc971a1dcb521ae3c339194cbf36b47", "containerID": "docker://838350c64bacba968d39a30a50789b2795291fceca6ccbff55298671d46b0e3b" } ] } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/journald-namespace-name body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "journald-namespace-name", "selfLink": "/api/v1/namespaces/journald-namespace-name", "uid": "8282888f-733f-4f23-a3d3-1fdfa3bdacf2", "resourceVersion": "6", "creationTimestamp": "2015-05-08T09:22:01Z" }, "spec": { "finalizers": [ "kubernetes" ] }, "status": { "phase": "Active" } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/k8s-namespace-name/pods/k8s-pod-name body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "k8s-pod-name", "generateName": "k8s-pod-name-", "namespace": "k8s-namespace-name", "selfLink": "/api/v1/namespaces/k8s-namespace-name/pods/k8s-pod-name", "uid": "ebabf749-5fcd-4750-a3f0-aedd89476da8", "resourceVersion": "122", "creationTimestamp": "2015-05-08T09:22:42Z", "labels": { "component": "k8s-test" } }, "spec": { "containers": [ { "name": "k8s-container-name", "image": "k8s-container-image:latest", "terminationMessagePath": "/dev/termination-log", "imagePullPolicy": "IfNotPresent", "capabilities": {} } ], "nodeName": "jimmi-redhat.localnet" }, "status": { "phase": "Running", "Condition": [ { "type": "Ready", "status": "True" } ], "hostIP": "172.17.42.1", "podIP": "172.17.0.8", "containerStatuses": [ { "name": "k8s-container-name", "state": { "running": { "startedAt": "2015-05-08T09:22:44Z" } }, "lastState": {}, "ready": true, "restartCount": 0, "image": "k8s-container-image:latest", "imageID": "docker://d78c5217c41e9af08d37d9ae2cb070afa1fe3da6bc77bfb18879a8b4bfdf8a34", "containerID": "docker://e463bc0d3ae38f5c89d92dca49b30e049e899799920b79d4d5f705acbe82ba95" } ] } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT - request: method: get uri: https://localhost:8443/api/v1/namespaces/k8s-namespace-name body: encoding: US-ASCII string: '' headers: Accept: - "*/*; q=0.5, application/xml" Accept-Encoding: - gzip, deflate User-Agent: - Ruby response: status: code: 200 message: OK headers: Content-Type: - application/json Date: - Fri, 08 May 2015 10:35:37 GMT Transfer-Encoding: - chunked body: encoding: UTF-8 string: |- { "kind": "Namespace", "apiVersion": "v1", "metadata": { "name": "k8s-namespace-name", "selfLink": "/api/v1/namespaces/k8s-namespace-name", "uid": "8e0dc8fc-59f2-49f7-a3e2-ed0913e19d9f", "resourceVersion": "6", "creationTimestamp": "2015-05-08T09:22:01Z" }, "spec": { "finalizers": [ "kubernetes" ] }, "status": { "phase": "Active" } } http_version: recorded_at: Fri, 08 May 2015 10:35:37 GMT recorded_with: VCR 2.9.3