By: Thu Nguyen
Read Time: 2 min
Logging your Kubernetes clusters to LogDNA is already a breeze, and now the LogDNA Kubernetes agent Helm chart makes it even easier.
Helm is the official package manager for Kubernetes. With Helm, deploying and managing Kubernetes applications is as simple as typing a single command. This makes deploying the LogDNA agent across your cluster absolutely effortless. Best of all, you get the full benefits of the LogDNA Kubernetes agent including host logging, additional Kubernetes metadata, and automatic updates.
This article will walk you through the process of deploying the LogDNA chart. Before getting started, make sure you have Helm installed and that your Kubernetes cluster is running version 1.2 or later.
To install the chart, simply run the following command on your workstation. Replace LOGDNA_INGESTION_KEY with your actual LogDNA ingestion key, which you can find in the Add a Log Source page in the LogDNA web app. You can specify a release name by changing the RELEASE_NAME parameter, or remove it to let Helm generate a custom one.
$ helm install --name RELEASE_NAME --set logdna.key=LOGDNA_INGESTION_KEY stable/logdna-agent
Running this command creates a DaemonSet based on the LogDNA Kubernetes DaemonSet, which deploys the LogDNA agent to each node in your cluster. The agent automatically monitors log files on the host, updates itself, and adds relevant Kubernetes metadata to each log. You can add a custom tag your logs by adding –set tags=TAG to the helm install command. You can also set additional configuration parameters such as the LogDNA agent image tag to use, resource limits on memory usage, and tolerations.
Lastly, if you need to uninstall the agent, you can do so by running:
$ helm delete RELEASE_NAME
To learn more, check out the chart on the Helm Hub or GitHub page. When you’re ready to get started, log into your LogDNA account, copy your ingestion key, and start logging your Kubernetes cluster in a matter of seconds. If you have any questions, please contact us.
First published on www.ibm.com on October 7, 2019. Written by: Norman Hsieh, VP of Business Development, LogDNA You know what they say: you can’t fix what you can’t...
First published as a case study on www.ibm.com on October 3, 2019. What is Log Analysis? IBM Cloud™ Log Analysis with LogDNA enables you to quickly find...
Single sign-on (SSO) is an authentication model designed to let users access different applications, services, and resources using a single set of credentials. Instead of...