{"id":21402,"date":"2021-05-18T15:35:41","date_gmt":"2021-05-18T15:35:41","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=21402"},"modified":"2025-01-23T12:45:29","modified_gmt":"2025-01-23T12:45:29","slug":"how-to-setup-integration-of-kubernetes-with-newrelic-install-and-configure","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-setup-integration-of-kubernetes-with-newrelic-install-and-configure\/","title":{"rendered":"How to setup integration of Kubernetes with Newrelic: install and configure?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Compatibility and requirements<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"486\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/02\/image.png\" alt=\"\" class=\"wp-image-26325\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/02\/image.png 738w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2022\/02\/image-300x198.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><figcaption>&#8211; https:\/\/docs.newrelic.com\/docs\/kubernetes-pixie\/kubernetes-integration\/get-started\/kubernetes-integration-compatibility-requirements<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisite<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"shDq24cLUv\"><a href=\"https:\/\/www.devopsschool.com\/blog\/newrelic-infrastructure-monitoring-linux-vitural-machine-using-newrelic-agent\/\">Newrelic Infrastructure: Monitoring Linux Vitural Machine using Newrelic Agent<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Newrelic Infrastructure: Monitoring Linux Vitural Machine using Newrelic Agent&#8221; &#8212; \" src=\"https:\/\/www.devopsschool.com\/blog\/newrelic-infrastructure-monitoring-linux-vitural-machine-using-newrelic-agent\/embed\/#?secret=vfBvS3lJN6#?secret=shDq24cLUv\" data-secret=\"shDq24cLUv\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"xiTGS9XdIG\"><a href=\"https:\/\/www.devopsschool.com\/blog\/setting-up-kubernetes-clusters-using-kubeadm-manual-way-in-rhel-7-centos7\/\">Setting up Kubernetes Clusters using Kubeadm Manual way in RHEL 7 \/ Centos7<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Setting up Kubernetes Clusters using Kubeadm Manual way in RHEL 7 \/ Centos7&#8221; &#8212; \" src=\"https:\/\/www.devopsschool.com\/blog\/setting-up-kubernetes-clusters-using-kubeadm-manual-way-in-rhel-7-centos7\/embed\/#?secret=4FPJY6Qdz7#?secret=xiTGS9XdIG\" data-secret=\"xiTGS9XdIG\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-devopsschool-com wp-block-embed-devopsschool-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Ts2G7qhrJt\"><a href=\"https:\/\/www.devopsschool.com\/blog\/setting-up-kubernetes-clusters-using-kubeadm-manual-way-in-ubuntu-16-04-xenial\/\">Setting up Kubernetes Clusters using Kubeadm Manual way in Ubuntu 16.04 Xenial<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Setting up Kubernetes Clusters using Kubeadm Manual way in Ubuntu 16.04 Xenial&#8221; &#8212; \" src=\"https:\/\/www.devopsschool.com\/blog\/setting-up-kubernetes-clusters-using-kubeadm-manual-way-in-ubuntu-16-04-xenial\/embed\/#?secret=MGDaACiQsz#?secret=Ts2G7qhrJt\" data-secret=\"Ts2G7qhrJt\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>The easiest way to install the Kubernetes integration is to use our automated installer to generate a manifest. It bundles not just the integration DaemonSets, but also other New Relic Kubernetes configurations, like<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Kubernetes events<\/li><li>Prometheus OpenMetrics, and<\/li><li>New Relic log monitoring.<\/li><\/ul>\n\n\n\n<p><strong>What is &#8220;Kubernetes cluster explorer&#8221;?<\/strong><br>Visualize your cluster, from the control plane to nodes and pods. Check the health of each entity, explore logs, and see how your apps are performing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to install helm in Linux<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">$ curl -fsSL -o get_helm.sh https:<span class=\"hljs-comment\">\/\/raw.githubusercontent.com\/helm\/helm\/master\/scripts\/get-helm-3<\/span>\n$ chmod <span class=\"hljs-number\">700<\/span> get_helm.sh\n$ .\/get_helm.sh\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">How to set up and start seeing Kubernetes data in Newrelic?<\/h2>\n\n\n\n<p><strong>Step 1 &#8211; Select your setup options<\/strong><\/p>\n\n\n\n<p>Select what data sources you need (Kube state and Prometheus metrics, events, logs).<\/p>\n\n\n\n<p><strong>List of data Source:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Kube state metrics: &#8211; kube-state-metrics is a kubernetes projects that provides additional metadata about the cluster. You might already have it configured in your cluster. In that case, no need to select this options.<\/li><li>Prometheus metrics: &#8211; Many services expose promtheus compatiable endpoints. This optiosn would enable the collection of the metrics exposed by these services.<\/li><li>Kubernetes Events:- kubernetes events provide a details of event happening inside of the cluster and help you to troubleshoot an issues. Selecting this option will send Kubernetes Events to newRelic.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"580\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-2.jpg\" alt=\"\" class=\"wp-image-21405\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-2.jpg 975w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-2-300x178.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-2-768x457.jpg 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"554\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-3.jpg\" alt=\"\" class=\"wp-image-21407\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-3.jpg 873w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-3-300x190.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/05\/newrelic-kubernetes-3-768x487.jpg 768w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><\/figure>\n\n\n\n<p><strong>Step 2 &#8211; Pick the install method<\/strong><\/p>\n\n\n\n<p>Choose what works best for you: download a pre-configured manifest file or use Helm.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">helm repo add newrelic https:<span class=\"hljs-comment\">\/\/helm-charts.newrelic.com &amp;&amp; \\<\/span>\nkubectl create namespace newrelic ; helm install newrelic-bundle newrelic\/nri-bundle \\\n --<span class=\"hljs-keyword\">set<\/span> global.licenseKey=58a0001ed941573e799f78e1NRAL \\\n --<span class=\"hljs-keyword\">set<\/span> global.cluster=k8sdevopsschool \\\n --namespace=newrelic \\\n --<span class=\"hljs-keyword\">set<\/span> newrelic-infrastructure.privileged=true \\\n --<span class=\"hljs-keyword\">set<\/span> ksm.enabled=true \\\n --<span class=\"hljs-keyword\">set<\/span> prometheus.enabled=true \\\n --<span class=\"hljs-keyword\">set<\/span> kubeEvents.enabled=true \\\n --<span class=\"hljs-keyword\">set<\/span> logging.enabled=true <\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><strong>Step 3 &#8211; Deploy the integration<\/strong><\/p>\n\n\n\n<p>Apply the manifest, and in minutes you\u2019ll see your data in the cluster explorer.<\/p>\n\n\n\n<p><strong>Notes for your managed services or platforms:<\/strong><\/p>\n\n\n\n<p><strong>Amazon EKS<\/strong><\/p>\n\n\n\n<p>The Kubernetes integration monitors worker nodes. In Amazon EKS, master nodes are managed by Amazon and abstracted from the Kubernetes platforms. Before starting our automated installer to deploy the Kubernetes integration in Amazon EKS, make sure you are using the version of kubectl provided by AWS.<\/p>\n\n\n\n<p><strong>Azure Kubernetes Service(AKS)<\/strong><\/p>\n\n\n\n<p>The Kubernetes integration monitors worker nodes. In Azure Kubernetes Service, master nodes are managed by Azure and abstracted from the Kubernetes platforms. To deploy in Azure Kubernetes Service (AKS), complete the steps in our automated installer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to activate the Kubernetes integration Custom or Manual way<\/h2>\n\n\n\n<p>If the Kubernetes automated installer doesn&#8217;t provide the settings you need, you can download our manifest template and install the integration manually. you must deploy the newrelic-infra agent onto a Kubernetes cluster as a DaemonSet:<br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.newrelic.com\/docs\/integrations\/kubernetes-integration\/installation\/kubernetes-integration-install-configure\/#customized-manifest\" target=\"_blank\">https:\/\/docs.newrelic.com\/docs\/integrations\/kubernetes-integration\/installation\/kubernetes-integration-install-configure\/#customized-manifest<\/a><\/p>\n\n\n\n<p><strong>Reference<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>https:\/\/docs.newrelic.com\/docs\/integrations\/kubernetes-integration\/installation\/kubernetes-integration-install-configure\/<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_20259\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_81381\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_20259\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Compatibility and requirements Prerequisite The easiest way to install the Kubernetes integration is to use our automated installer to generate a manifest. It bundles not just the integration DaemonSets, but also other New Relic Kubernetes configurations, like Kubernetes events Prometheus OpenMetrics, and New Relic log monitoring. What is &#8220;Kubernetes cluster explorer&#8221;?Visualize your cluster, from the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[4859],"tags":[],"class_list":["post-21402","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=21402"}],"version-history":[{"count":9,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21402\/revisions"}],"predecessor-version":[{"id":26326,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21402\/revisions\/26326"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=21402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=21402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=21402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}