amitkumarj441 / gsoc17-cncf

:rocket: Google Summer of Code 2017 project tracker - Standardizing Kubernetes logs (CNCF)
Apache License 2.0
4 stars 2 forks source link

Find kubernetes logs in OpenShift #6

Closed mmmmmmpc closed 7 years ago

mmmmmmpc commented 7 years ago

Find kubernetes logs in openshift such as logs for:

amitkumarj441 commented 7 years ago

@mperezco but what I know is that openshift doesn't run separate kube-apiserver, kube-proxy, kube-dns, kubelet, kube-controller-manager, or kube-scheduler, they have openshift start master api, openshift start master controllers, openshift start node those actually contains the actual kube components themselves.

mmmmmmpc commented 7 years ago

Yes, the components are packaged to be easily deployed and managed. We have to find where are getting their logs sent (at least some to journald) and structure them

amitkumarj441 commented 7 years ago

@mperezco /var/log/containers/* <- kubelet creates symbolink links to real docker files, those files have the container info in the name, note that logs needs to be mounted so Fluentd can read them.

mmmmmmpc commented 7 years ago

Let's consider the use case in which base components are not deployed as a container (the ViaQ install is an example) and logs come via Journald

mmmmmmpc commented 7 years ago

logs get ingested via journald. They are processed and get the tag _SYSTEMD_UNIT=origin-master and _SYSTEMD_UNIT=origin-node

mmmmmmpc commented 7 years ago

For OpenShift Container Platform òrigin gets substituted by atomic-openshift

mmmmmmpc commented 7 years ago

@amitkumarj441 ... do you feel comfortable to close this issue?

amitkumarj441 commented 7 years ago

Yeah @mperezco . Closing the issue now :+1:

Thanks!