diff --git a/slides/kube/daemonset.md b/slides/kube/daemonset.md index 08fc06e2..8234bad9 100644 --- a/slides/kube/daemonset.md +++ b/slides/kube/daemonset.md @@ -130,6 +130,7 @@ We all knew this couldn't be that easy, right! - remove the `replicas` field - remove the `strategy` field (which defines the rollout mechanism for a deployment) + - remove the `progressDeadlineSeconds` field (also used by the rollout mechanism) - remove the `status: {}` line at the end -- diff --git a/slides/kube/logs-centralized.md b/slides/kube/logs-centralized.md index d316b2fa..a707e0b9 100644 --- a/slides/kube/logs-centralized.md +++ b/slides/kube/logs-centralized.md @@ -113,7 +113,7 @@ and a few roles and role bindings (to give fluentd the required permissions). - The first time you connect to Kibana, you must "configure an index pattern" -- Just use the one that is suggested, `@timestamp` +- Just use the one that is suggested, `@timestamp`.red[*] - Then click "Discover" (in the top-left corner) @@ -123,6 +123,9 @@ and a few roles and role bindings (to give fluentd the required permissions). `kubernetes.host`, `kubernetes.pod_name`, `stream`, `log` +.red[*]If you don't see `@timestamp`, it's probably because no logs exist yet. +
Wait a bit, and double-check the logging pipeline! + --- ## Caveat emptor diff --git a/slides/kube/whatsnext.md b/slides/kube/whatsnext.md index bbce2681..b2eba31e 100644 --- a/slides/kube/whatsnext.md +++ b/slides/kube/whatsnext.md @@ -93,13 +93,37 @@ And *then* it is time to look at orchestration! --- -## Logging and metrics +## Logging - Logging is delegated to the container engine -- Metrics are typically handled with [Prometheus](https://prometheus.io/) +- Logs are exposed through the API + +- Logs are also accessible through local files (`/var/log/containers`) + +- Log shipping to a central platform is usually done through these files + + (e.g. with an agent bind-mounting the log directory) + +--- + +## Metrics + +- The kubelet embeds [cAdvisor](https://github.com/google/cadvisor), which exposes container metrics + + (cAdvisor might be separated in the future for more flexibility) + +- It is a good idea to start with [Prometheus](https://prometheus.io/) + + (even if you end up using something else) + +- Starting from Kubernetes 1.8, we can use the [Metrics API](https://kubernetes.io/docs/tasks/debug-application-cluster/core-metrics-pipeline/) + +- [Heapster](https://github.com/kubernetes/heapster) was a popular add-on + + (but is being [deprecated](https://github.com/kubernetes/heapster/blob/master/docs/deprecation.md) starting with Kubernetes 1.11) + - ([Heapster](https://github.com/kubernetes/heapster) is a popular add-on) ---