{"id":12726,"date":"2023-01-24T11:53:29","date_gmt":"2023-01-24T06:23:29","guid":{"rendered":"https:\/\/opstree.com\/blog\/\/?p=12726"},"modified":"2023-08-21T11:25:58","modified_gmt":"2023-08-21T05:55:58","slug":"protected-efk-stack-setup-for-kubernetes","status":"publish","type":"post","link":"https:\/\/opstree.com\/blog\/2023\/01\/24\/protected-efk-stack-setup-for-kubernetes\/","title":{"rendered":"Protected EFK Stack Setup for Kubernetes"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we will see how we can deploy the Elasticsearch, Fluent-bit, and Kibana (EFK) stack on Kubernetes. EFK stack\u2019s prime objective is to reliably and securely retrieve data from the K8s cluster in any format, as well as to facilitate anytime searching, analyzing, and visualizing of the data.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/opstree.com\/blog\/\/wp-content\/uploads\/2023\/01\/fd618-1j4l3cowyx0orfe0qqiodbq.png\" alt=\"\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">What is EFK&nbsp;Stack?<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-medium-gray-color has-text-color has-medium-font-size\">EFK stands for <strong>Elasticsearch, Fluent bit, and Kibana<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-text-align-justify\"><strong>Elasticsearch<\/strong> is a scalable and distributed search engine that is commonly used to store large amounts of log data. It is a NoSQL database. Its primary function is to store and retrieve logs from fluent bit.<\/p>\n\n\n\n<p class=\"has-text-align-justify\"><strong>Fluent Bit<\/strong> is a logging and metrics processor and forwarder that is extremely fast, lightweight, and highly scalable. Because of its performance-oriented design, it is simple to collect events from various sources and ship them to various destinations without complexity.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"has-text-align-justify\"><strong>Kibana <\/strong>is a graphical user interface (GUI) tool for data visualization, querying, and dashboards. It is a query engine that lets you explore your log data through a web interface, create visualizations for event logs, and filter data to detect problems. Kibana is being used to query elasticsearch indexed data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why do we need EFK&nbsp;Stack?<\/h3>\n\n\n\n<ul>\n<li>Using the EFK stack in your Kubernetes cluster can make it much easier to collect, store, and analyze log data from all the pods and nodes in your cluster, making it more manageable and more accessible for different users.<\/li>\n\n\n\n<li>The kubectl logs command is useful for looking at logs from individual pods, but it can quickly become unwieldy when you have a large number of pods running in your cluster. <\/li>\n\n\n\n<li>With the EFK stack, you can collect logs from all the nodes and pods in your cluster and store them in a central location. It allows you to quickly troubleshoot issues and identify patterns in your log data. <\/li>\n\n\n\n<li>It also enables people who are not familiar with using the command line to check logs and keep track of the Kubernetes cluster and the applications that are deployed on it. <\/li>\n\n\n\n<li>It also allows you to easily create alerts, dashboards, and create monitoring and reporting capabilities that can give you an overview of your system\u2019s health and performance, and It will notify you in real-time if something goes wrong. <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/opstree.com\/blog\/\/wp-content\/uploads\/2023\/01\/fbb0c-1cx_q-t0x82ghsfq-fvuvcw.png\" alt=\"\" \/><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">In this tutorial, we will be deploying EFK components as&nbsp;follows:<\/h6>\n\n\n\n<ol>\n<li><strong>Elasticsearch<\/strong> is deployed as statefulset as it stores the log data.<\/li>\n\n\n\n<li><strong>Kibana<\/strong> is deployed as deployment and connects to elasticsearch service endpoint.<\/li>\n\n\n\n<li><strong>Fluent-bit<\/strong> is deployed as a daemonset to gather the container logs from every node. It connects to the Elasticsearch service endpoint to forward the logs.<\/li>\n<\/ol>\n\n\n\n<h6 class=\"wp-block-heading has-medium-gray-color has-text-color has-medium-font-size\"><strong>So let\u2019s get started with EFK stack deployment.<\/strong><\/h6>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a&nbsp;Namespace<\/h3>\n\n\n\n<p class=\"has-text-align-justify\">It\u2019s a good practice to create a separate namespace for every functional unit in Kubernetes. By creating a namespace for each functional unit, you can easily see which resources belong to which unit and manage them accordingly.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">let&#8217;s create a namespace<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120368818\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-namespace-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"namespace.yaml content, created by Cpriyanshi77 on 06:01AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"namespace.yaml\">\n        <tr>\n          <td id=\"file-namespace-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-namespace-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">kind: Namespace<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-namespace-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-namespace-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-namespace-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-namespace-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-namespace-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-namespace-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: kube-logging<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/b09f6c3fb76947ac211bff561a1784db\/raw\/e04615d0e02b6d1ac2f82a46fadc8d8ac4c653d3\/namespace.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/b09f6c3fb76947ac211bff561a1784db#file-namespace-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          namespace.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p>Let\u2019s apply the manifest file created above, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ Kubectl apply -f namespace.yaml<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a&nbsp;Secret<\/h3>\n\n\n\n<p class=\"has-text-align-justify\">Secrets in Kubernetes (K8s) are native sources for storing and managing sensitive data such as passwords, cloud access keys, or authentication tokens. You must distribute this information across your Kubernetes clusters while also protecting it.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">Let&#8217;s create a secret for an elasticsearch password to make Kibana logging protected.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370768\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-secrets-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"secrets.yaml content, created by Cpriyanshi77 on 09:48AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"secrets.yaml\">\n        <tr>\n          <td id=\"file-secrets-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-secrets-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-secrets-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: Secret<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-secrets-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-secrets-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: kibana-password<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-secrets-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-secrets-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">type: Opaque<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-secrets-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">data:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-secrets-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-secrets-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">  password: cGFzc3dvcmQ=<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/e51423132fc25dedbc83c0449aa65306\/raw\/107e986fc237833998867d3e2ff11229632e16c0\/secrets.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/e51423132fc25dedbc83c0449aa65306#file-secrets-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          secrets.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p>Let\u2019s apply the manifest file created above, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ Kubectl apply -f secrets.yaml<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Deploy Elasticsearch as Statefulset<\/h3>\n\n\n\n<p class=\"has-text-align-justify\">Deploying Elasticsearch as a StatefulSets provides stable unique network identities and stable storage. Elasticsearch stores a large amount of data and it\u2019s important that data stored in Elasticsearch should be persisted and available even if the pod is deleted or recreated.<\/p>\n\n\n\n<h5 class=\"wp-block-heading has-text-align-justify\">Creating the Headless&nbsp;Service<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">Now Let&#8217;s set up elasticsearch, a Kubernetes headless service that will define a DNS domain for pods. A headless service lacks load balancing and has no static IP address.<\/p>\n\n\n\n<p> Let&#8217;s create a Headless&nbsp;Service for an elasticsearch.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370808\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-es-svc-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"es-svc.yaml content, created by Cpriyanshi77 on 09:51AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"es-svc.yaml\">\n        <tr>\n          <td id=\"file-es-svc-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-es-svc-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">kind: Service<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-es-svc-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-es-svc-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-es-svc-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-es-svc-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-es-svc-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-es-svc-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">    app: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-es-svc-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-es-svc-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">  selector:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-es-svc-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">    app: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-es-svc-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">  clusterIP: None<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-es-svc-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">  ports:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-es-svc-yaml-LC13\" class=\"blob-code blob-code-inner js-file-line\">    &#8211; port: 9200<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-es-svc-yaml-LC14\" class=\"blob-code blob-code-inner js-file-line\">      name: rest<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-es-svc-yaml-LC15\" class=\"blob-code blob-code-inner js-file-line\">    &#8211; port: 9300<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-svc-yaml-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-es-svc-yaml-LC16\" class=\"blob-code blob-code-inner js-file-line\">      name: inter-node<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/15b1b7cc9d22c52bb6ea7ef82f02dd33\/raw\/5610ec30205ec1277d22f4fec8b11f2ebd0f3f6f\/es-svc.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/15b1b7cc9d22c52bb6ea7ef82f02dd33#file-es-svc-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          es-svc.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p>Let\u2019s apply the elasticsearch service file created above, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ Kubectl apply -f es-svs.yaml<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Creating the Elasticsearch StatefulSet<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">Deploying Elasticsearch as a StatefulSets pods are created and deleted in a specific order, ensuring that your data is not lost. This is especially useful for Elasticsearch, as it helps ensure that data is not lost during deployments and scaling events.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-text-align-justify has-small-font-size\">When you create a StatefulSet with a Persistent Volume Claim (PVC) template, the default storage class will be used if no custom storage class is specified. To use a custom storage class for the PVCs created by a StatefulSet, you can specify the storage class in the volumeClaimTemplates section of the StatefulSet definition.<\/p>\n<\/blockquote>\n\n\n\n<p> Let&#8217;s create a StatefulSets for an elasticsearch.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370841\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-es-sts-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"es-sts.yaml content, created by Cpriyanshi77 on 09:54AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"es-sts.yaml\">\n        <tr>\n          <td id=\"file-es-sts-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-es-sts-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: apps\/v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-es-sts-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: StatefulSet<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-es-sts-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-es-sts-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: es-cluster<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-es-sts-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-es-sts-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-es-sts-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">  serviceName: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-es-sts-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">  replicas: 3<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-es-sts-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">  selector:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-es-sts-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">    matchLabels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-es-sts-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">      app: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-es-sts-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">  template:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-es-sts-yaml-LC13\" class=\"blob-code blob-code-inner js-file-line\">    metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-es-sts-yaml-LC14\" class=\"blob-code blob-code-inner js-file-line\">      labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-es-sts-yaml-LC15\" class=\"blob-code blob-code-inner js-file-line\">        app: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-es-sts-yaml-LC16\" class=\"blob-code blob-code-inner js-file-line\">    spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-es-sts-yaml-LC17\" class=\"blob-code blob-code-inner js-file-line\">      containers:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-es-sts-yaml-LC18\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-es-sts-yaml-LC19\" class=\"blob-code blob-code-inner js-file-line\">        image: docker.elastic.co\/elasticsearch\/elasticsearch:7.2.0<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-es-sts-yaml-LC20\" class=\"blob-code blob-code-inner js-file-line\">        resources:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-es-sts-yaml-LC21\" class=\"blob-code blob-code-inner js-file-line\">            limits:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-es-sts-yaml-LC22\" class=\"blob-code blob-code-inner js-file-line\">              cpu: 1000m<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-es-sts-yaml-LC23\" class=\"blob-code blob-code-inner js-file-line\">              memory: 2Gi<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-es-sts-yaml-LC24\" class=\"blob-code blob-code-inner js-file-line\">            requests:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n          <td id=\"file-es-sts-yaml-LC25\" class=\"blob-code blob-code-inner js-file-line\">              cpu: 500m<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n          <td id=\"file-es-sts-yaml-LC26\" class=\"blob-code blob-code-inner js-file-line\">              memory: 1Gi<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n          <td id=\"file-es-sts-yaml-LC27\" class=\"blob-code blob-code-inner js-file-line\">        ports:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L28\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"28\"><\/td>\n          <td id=\"file-es-sts-yaml-LC28\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; containerPort: 9200<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L29\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"29\"><\/td>\n          <td id=\"file-es-sts-yaml-LC29\" class=\"blob-code blob-code-inner js-file-line\">          name: rest<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L30\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"30\"><\/td>\n          <td id=\"file-es-sts-yaml-LC30\" class=\"blob-code blob-code-inner js-file-line\">          protocol: TCP<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L31\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"31\"><\/td>\n          <td id=\"file-es-sts-yaml-LC31\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; containerPort: 9300<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L32\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"32\"><\/td>\n          <td id=\"file-es-sts-yaml-LC32\" class=\"blob-code blob-code-inner js-file-line\">          name: inter-node<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L33\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"33\"><\/td>\n          <td id=\"file-es-sts-yaml-LC33\" class=\"blob-code blob-code-inner js-file-line\">          protocol: TCP<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L34\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"34\"><\/td>\n          <td id=\"file-es-sts-yaml-LC34\" class=\"blob-code blob-code-inner js-file-line\">        volumeMounts:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L35\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"35\"><\/td>\n          <td id=\"file-es-sts-yaml-LC35\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L36\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"36\"><\/td>\n          <td id=\"file-es-sts-yaml-LC36\" class=\"blob-code blob-code-inner js-file-line\">          mountPath: \/usr\/share\/elasticsearch\/data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L37\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"37\"><\/td>\n          <td id=\"file-es-sts-yaml-LC37\" class=\"blob-code blob-code-inner js-file-line\">        env:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L38\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"38\"><\/td>\n          <td id=\"file-es-sts-yaml-LC38\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: cluster.name<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L39\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"39\"><\/td>\n          <td id=\"file-es-sts-yaml-LC39\" class=\"blob-code blob-code-inner js-file-line\">            value: k8s-logs<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L40\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"40\"><\/td>\n          <td id=\"file-es-sts-yaml-LC40\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: node.name<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L41\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"41\"><\/td>\n          <td id=\"file-es-sts-yaml-LC41\" class=\"blob-code blob-code-inner js-file-line\">            valueFrom:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L42\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"42\"><\/td>\n          <td id=\"file-es-sts-yaml-LC42\" class=\"blob-code blob-code-inner js-file-line\">              fieldRef:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L43\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"43\"><\/td>\n          <td id=\"file-es-sts-yaml-LC43\" class=\"blob-code blob-code-inner js-file-line\">                fieldPath: metadata.name<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L44\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"44\"><\/td>\n          <td id=\"file-es-sts-yaml-LC44\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: discovery.seed_hosts<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L45\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"45\"><\/td>\n          <td id=\"file-es-sts-yaml-LC45\" class=\"blob-code blob-code-inner js-file-line\">            value: &quot;es-cluster-0.elasticsearch,es-cluster-1.elasticsearch,es-cluster-2.elasticsearch&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L46\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"46\"><\/td>\n          <td id=\"file-es-sts-yaml-LC46\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: cluster.initial_master_nodes<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L47\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"47\"><\/td>\n          <td id=\"file-es-sts-yaml-LC47\" class=\"blob-code blob-code-inner js-file-line\">            value: &quot;es-cluster-0,es-cluster-1,es-cluster-2&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L48\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"48\"><\/td>\n          <td id=\"file-es-sts-yaml-LC48\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: network.host<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L49\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"49\"><\/td>\n          <td id=\"file-es-sts-yaml-LC49\" class=\"blob-code blob-code-inner js-file-line\">            value: &quot;0.0.0.0&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L50\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"50\"><\/td>\n          <td id=\"file-es-sts-yaml-LC50\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: xpack.security.enabled<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L51\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"51\"><\/td>\n          <td id=\"file-es-sts-yaml-LC51\" class=\"blob-code blob-code-inner js-file-line\">            value: &quot;true&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L52\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"52\"><\/td>\n          <td id=\"file-es-sts-yaml-LC52\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: xpack.monitoring.collection.enabled<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L53\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"53\"><\/td>\n          <td id=\"file-es-sts-yaml-LC53\" class=\"blob-code blob-code-inner js-file-line\">            value: &quot;true&quot;   <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L54\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"54\"><\/td>\n          <td id=\"file-es-sts-yaml-LC54\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: ES_JAVA_OPTS<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L55\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"55\"><\/td>\n          <td id=\"file-es-sts-yaml-LC55\" class=\"blob-code blob-code-inner js-file-line\">            value: &quot;-Xms512m -Xmx512m&quot;   <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L56\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"56\"><\/td>\n          <td id=\"file-es-sts-yaml-LC56\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: ELASTIC_PASSWORD<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L57\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"57\"><\/td>\n          <td id=\"file-es-sts-yaml-LC57\" class=\"blob-code blob-code-inner js-file-line\">            valueFrom:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L58\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"58\"><\/td>\n          <td id=\"file-es-sts-yaml-LC58\" class=\"blob-code blob-code-inner js-file-line\">              secretKeyRef:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L59\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"59\"><\/td>\n          <td id=\"file-es-sts-yaml-LC59\" class=\"blob-code blob-code-inner js-file-line\">                name: kibana-password<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L60\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"60\"><\/td>\n          <td id=\"file-es-sts-yaml-LC60\" class=\"blob-code blob-code-inner js-file-line\">                key: password     <\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L61\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"61\"><\/td>\n          <td id=\"file-es-sts-yaml-LC61\" class=\"blob-code blob-code-inner js-file-line\">      initContainers:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L62\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"62\"><\/td>\n          <td id=\"file-es-sts-yaml-LC62\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: fix-permissions<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L63\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"63\"><\/td>\n          <td id=\"file-es-sts-yaml-LC63\" class=\"blob-code blob-code-inner js-file-line\">        image: busybox<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L64\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"64\"><\/td>\n          <td id=\"file-es-sts-yaml-LC64\" class=\"blob-code blob-code-inner js-file-line\">        command: [&quot;sh&quot;, &quot;-c&quot;, &quot;chown -R 1000:1000 \/usr\/share\/elasticsearch\/data&quot;]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L65\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"65\"><\/td>\n          <td id=\"file-es-sts-yaml-LC65\" class=\"blob-code blob-code-inner js-file-line\">        securityContext:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L66\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"66\"><\/td>\n          <td id=\"file-es-sts-yaml-LC66\" class=\"blob-code blob-code-inner js-file-line\">          privileged: true<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L67\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"67\"><\/td>\n          <td id=\"file-es-sts-yaml-LC67\" class=\"blob-code blob-code-inner js-file-line\">        volumeMounts:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L68\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"68\"><\/td>\n          <td id=\"file-es-sts-yaml-LC68\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L69\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"69\"><\/td>\n          <td id=\"file-es-sts-yaml-LC69\" class=\"blob-code blob-code-inner js-file-line\">          mountPath: \/usr\/share\/elasticsearch\/data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L70\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"70\"><\/td>\n          <td id=\"file-es-sts-yaml-LC70\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: increase-vm-max-map<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L71\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"71\"><\/td>\n          <td id=\"file-es-sts-yaml-LC71\" class=\"blob-code blob-code-inner js-file-line\">        image: busybox<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L72\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"72\"><\/td>\n          <td id=\"file-es-sts-yaml-LC72\" class=\"blob-code blob-code-inner js-file-line\">        command: [&quot;sysctl&quot;, &quot;-w&quot;, &quot;vm.max_map_count=262144&quot;]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L73\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"73\"><\/td>\n          <td id=\"file-es-sts-yaml-LC73\" class=\"blob-code blob-code-inner js-file-line\">        securityContext:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L74\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"74\"><\/td>\n          <td id=\"file-es-sts-yaml-LC74\" class=\"blob-code blob-code-inner js-file-line\">          privileged: true<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L75\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"75\"><\/td>\n          <td id=\"file-es-sts-yaml-LC75\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: increase-fd-ulimit<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L76\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"76\"><\/td>\n          <td id=\"file-es-sts-yaml-LC76\" class=\"blob-code blob-code-inner js-file-line\">        image: busybox<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L77\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"77\"><\/td>\n          <td id=\"file-es-sts-yaml-LC77\" class=\"blob-code blob-code-inner js-file-line\">        command: [&quot;sh&quot;, &quot;-c&quot;, &quot;ulimit -n 65536&quot;]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L78\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"78\"><\/td>\n          <td id=\"file-es-sts-yaml-LC78\" class=\"blob-code blob-code-inner js-file-line\">        securityContext:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L79\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"79\"><\/td>\n          <td id=\"file-es-sts-yaml-LC79\" class=\"blob-code blob-code-inner js-file-line\">          privileged: true<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L80\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"80\"><\/td>\n          <td id=\"file-es-sts-yaml-LC80\" class=\"blob-code blob-code-inner js-file-line\">  volumeClaimTemplates:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L81\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"81\"><\/td>\n          <td id=\"file-es-sts-yaml-LC81\" class=\"blob-code blob-code-inner js-file-line\">  &#8211; metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L82\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"82\"><\/td>\n          <td id=\"file-es-sts-yaml-LC82\" class=\"blob-code blob-code-inner js-file-line\">      name: data<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L83\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"83\"><\/td>\n          <td id=\"file-es-sts-yaml-LC83\" class=\"blob-code blob-code-inner js-file-line\">      labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L84\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"84\"><\/td>\n          <td id=\"file-es-sts-yaml-LC84\" class=\"blob-code blob-code-inner js-file-line\">        app: elasticsearch<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L85\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"85\"><\/td>\n          <td id=\"file-es-sts-yaml-LC85\" class=\"blob-code blob-code-inner js-file-line\">    spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L86\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"86\"><\/td>\n          <td id=\"file-es-sts-yaml-LC86\" class=\"blob-code blob-code-inner js-file-line\">      accessModes: [ &quot;ReadWriteOnce&quot; ]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L87\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"87\"><\/td>\n          <td id=\"file-es-sts-yaml-LC87\" class=\"blob-code blob-code-inner js-file-line\">#      storageClassName: do-block-storage<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L88\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"88\"><\/td>\n          <td id=\"file-es-sts-yaml-LC88\" class=\"blob-code blob-code-inner js-file-line\">      resources:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L89\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"89\"><\/td>\n          <td id=\"file-es-sts-yaml-LC89\" class=\"blob-code blob-code-inner js-file-line\">        requests:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-es-sts-yaml-L90\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"90\"><\/td>\n          <td id=\"file-es-sts-yaml-LC90\" class=\"blob-code blob-code-inner js-file-line\">          storage: 10Gi<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/e1df38d6e391af22b55a4ad6220b93bc\/raw\/5beaea0414617329f11876a887c1462d4ce5aa2f\/es-sts.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/e1df38d6e391af22b55a4ad6220b93bc#file-es-sts-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          es-sts.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p>Let\u2019s apply the elasticsearch statefulset manifest file created above, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ kubectl apply -f es-sts.yaml<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Verify Elasticsearch Deployment<\/h5>\n\n\n\n<p>Let&#8217;s check all Elastisearch pods come into the running state.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ kubectl get pods -n kube-logging<\/pre>\n\n\n\n<p>To check the health of the Elasticsearch cluster.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ curl http:\/\/localhost:9200\/_cluster\/health\/?pretty<\/pre>\n\n\n\n<p>The status of the Elasticsearch cluster will be shown in the output. If all of the steps were performed properly, the status should be \u2018green\u2019.<\/p>\n\n\n\n<p>Let\u2019s move on to Kibana now that we have an Elasticsearch cluster up and running.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Deploy Kibana as Deployment<\/h3>\n\n\n\n<p class=\"has-text-align-justify\">Deploying Kibana as a Deployment allows you to easily scale the number of replicas up or down to handle changes in load. This is especially useful for handling large amounts of data and dealing with periods of high traffic and helps you to take advantage of Kubernetes features such as automatic self-healing and automatic scaling which can save resources and cost for running Kibana pods.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Creating the Kibana&nbsp;Service<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">Let\u2019s make a NodePort service to access the Kibana UI via the node IP address. For demonstration purposes or testing, however, it\u2019s not considered a best practice for actual production use. The Kubernetes ingress with a ClusterIP service is a more secure and way to expose the Kibana UI.<\/p>\n\n\n\n<p>Let\u2019s create a Service for Kibana.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370922\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-kibana-svc-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"kibana-svc.yaml content, created by Cpriyanshi77 on 10:02AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"kibana-svc.yaml\">\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: Service<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">    app: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">  ports:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">  &#8211; port: 5601<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">  selector:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-svc-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-kibana-svc-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">    app: kibana<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/3618a8e26761823476b6500930e1a301\/raw\/f8a7cc77452e91f80db3e868433c0543f88fc92a\/kibana-svc.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/3618a8e26761823476b6500930e1a301#file-kibana-svc-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          kibana-svc.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p>Let\u2019s apply the kibana service file created above, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">Kubectl apply -f kibana-svc.yaml<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Creating the Kibana Deployment<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">Kibana can be set up as a simple Kubernetes deployment. If you look at the Kibana deployment manifest file, you\u2019ll notice that we have an env variable ELASTICSEARCH_URL defined to configure the Elasticsearch cluster endpoint. Kibana communicates to elasticsearch via the endpoint URL.<\/p>\n\n\n\n<p>Let\u2019s create a Deployment for Kibana.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370935\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-kibana-deployment-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"kibana-deployment.yaml content, created by Cpriyanshi77 on 10:03AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"kibana-deployment.yaml\">\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: apps\/v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: Deployment<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">    app: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">  replicas: 1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">  selector:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">    matchLabels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">      app: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC13\" class=\"blob-code blob-code-inner js-file-line\">  template:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC14\" class=\"blob-code blob-code-inner js-file-line\">    metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC15\" class=\"blob-code blob-code-inner js-file-line\">      labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC16\" class=\"blob-code blob-code-inner js-file-line\">        app: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC17\" class=\"blob-code blob-code-inner js-file-line\">    spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC18\" class=\"blob-code blob-code-inner js-file-line\">      containers:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC19\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC20\" class=\"blob-code blob-code-inner js-file-line\">        image: docker.elastic.co\/kibana\/kibana:7.2.0<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC21\" class=\"blob-code blob-code-inner js-file-line\">        resources:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC22\" class=\"blob-code blob-code-inner js-file-line\">          limits:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC23\" class=\"blob-code blob-code-inner js-file-line\">            cpu: 1000m<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC24\" class=\"blob-code blob-code-inner js-file-line\">            memory: 1Gi<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC25\" class=\"blob-code blob-code-inner js-file-line\">          requests:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC26\" class=\"blob-code blob-code-inner js-file-line\">            cpu: 700m<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC27\" class=\"blob-code blob-code-inner js-file-line\">            memory: 1Gi<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L28\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"28\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC28\" class=\"blob-code blob-code-inner js-file-line\">        env:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L29\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"29\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC29\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: ELASTICSEARCH_URL<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L30\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"30\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC30\" class=\"blob-code blob-code-inner js-file-line\">            value: http:\/\/elasticsearch:9200<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L31\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"31\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC31\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: ELASTICSEARCH_USERNAME<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L32\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"32\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC32\" class=\"blob-code blob-code-inner js-file-line\">            value: elastic<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L33\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"33\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC33\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; name: ELASTICSEARCH_PASSWORD<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L34\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"34\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC34\" class=\"blob-code blob-code-inner js-file-line\">            valueFrom:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L35\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"35\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC35\" class=\"blob-code blob-code-inner js-file-line\">              secretKeyRef:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L36\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"36\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC36\" class=\"blob-code blob-code-inner js-file-line\">                name: kibana-password<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L37\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"37\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC37\" class=\"blob-code blob-code-inner js-file-line\">                key: password<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L38\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"38\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC38\" class=\"blob-code blob-code-inner js-file-line\">        ports:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L39\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"39\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC39\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; containerPort: 5601<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L40\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"40\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC40\" class=\"blob-code blob-code-inner js-file-line\">          name: kibana<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-kibana-deployment-yaml-L41\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"41\"><\/td>\n          <td id=\"file-kibana-deployment-yaml-LC41\" class=\"blob-code blob-code-inner js-file-line\">          protocol: TCP<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/87d4d4fbe0e68f2de8ece136b86dfd58\/raw\/4e1d8eb380b197bd66a4a2cd5a11be22490c4ec1\/kibana-deployment.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/87d4d4fbe0e68f2de8ece136b86dfd58#file-kibana-deployment-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          kibana-deployment.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Verify Kibana Deployment<\/h5>\n\n\n\n<p>Let\u2019s check all Kibana pods come into the running state.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">kubectl get pods -n kube-logging<\/pre>\n\n\n\n<p class=\"has-text-align-justify\">Once the pods for Elasticsearch, Fluent-bit, and Kibana have entered the running state, you can verify the deployment by accessing the Kibana UI.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">To check the status using the UI access of the cluster, you can use the <code>kubectl port-forward<\/code> command to forward the Kibana pod&#8217;s 5601 port to your local machine.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ kubectl port-forward &lt;kibana-pod-name&gt; 5601:5601<\/pre>\n\n\n\n<p>After that, use curl to send a request or the web browser to access the UI.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-dark-gray-background-color has-text-color has-background\">$ curl http:\/\/localhost:5601<\/pre>\n\n\n\n<p>Now that we have a Kibana pod running, let\u2019s move on to fluent-bit.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Deploy Fluent-bit as D<strong>aemonset<\/strong><\/h3>\n\n\n\n<p>Since Fluent-bit must stream logs from every node in the clusters, it is set up as a daemonset. A DaemonSet is a type of Kubernetes resource that ensures that a specified pod is running on each node in the cluster. <\/p>\n\n\n\n<h5 class=\"wp-block-heading has-text-align-left\">Creating the Fluent-bit Service Account<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">A Service Account is a Kubernetes resource that allows you to control access to the Kubernetes API for a set of pods, which determines what the pods are allowed to do. You can attach roles and role bindings to the service account, to give it specific permissions to access the Kubernetes API, this is done through Kubernetes Role and Rolebinding resources.<\/p>\n\n\n\n<p>Let\u2019s create a Service Account for Fluent-bit.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370961\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-fluent-bit-sa-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"fluent-bit-sa.yaml content, created by Cpriyanshi77 on 10:06AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"fluent-bit-sa.yaml\">\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: ServiceAccount<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: fluent-bit-sa<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-sa-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-fluent-bit-sa-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">    app: fluent-bit-sa<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/af93fc0209138f84c8afb5d9fe5ed33b\/raw\/0cace24734f041017bbaf37964167eda66d0f9a5\/fluent-bit-sa.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/af93fc0209138f84c8afb5d9fe5ed33b#file-fluent-bit-sa-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          fluent-bit-sa.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">C<strong>reating the Fluent-bit ClusterRole<\/strong> <\/h5>\n\n\n\n<p class=\"has-text-align-justify\">ClusterRole to grant the <code>get<\/code>, <code>list<\/code>, and <code>watch<\/code> permissions to fluent-bit Service Account on the Kubernetes resources like the <strong>nodes<\/strong>, <strong>pods<\/strong> and <strong>namespaces<\/strong> objects.<\/p>\n\n\n\n<p>Let\u2019s create a ClusterRole for  Fluent-bit.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120370995\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-fluent-bit-role-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"fluent-bit-role.yaml content, created by Cpriyanshi77 on 10:11AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"fluent-bit-role.yaml\">\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: rbac.authorization.k8s.io\/v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: ClusterRole<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: fluent-bit-role<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">    app: fluent-bit-role<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">rules:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">  &#8211; nonResourceURLs:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; \/metrics<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">    verbs:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; get<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">  &#8211; apiGroups: [&quot;&quot;]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC13\" class=\"blob-code blob-code-inner js-file-line\">    resources:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC14\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; namespaces<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC15\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; pods<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC16\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; pods\/logs<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-role-yaml-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-fluent-bit-role-yaml-LC17\" class=\"blob-code blob-code-inner js-file-line\">    verbs: [&quot;get&quot;, &quot;list&quot;, &quot;watch&quot;]<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/173d24d28b8da3b9d58acb42fa7dea7d\/raw\/3ebf55b9e92d354e14fc6c0f2b4a150302e3df47\/fluent-bit-role.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/173d24d28b8da3b9d58acb42fa7dea7d#file-fluent-bit-role-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          fluent-bit-role.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Creating the Fluent-bit Role Binding<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">ClusterRoleBinding to bind this ClusterRole to the \u201cfluent-bit-sa\u201d Service Account, which will give that ServiceAccount the permissions defined in the ClusterRole. <\/p>\n\n\n\n<p>Let\u2019s create a Role Binding for Fluent-bit.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120371007\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-fluent-bit-rb-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"fluent-bit-rb.yaml content, created by Cpriyanshi77 on 10:13AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"fluent-bit-rb.yaml\">\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">kind: ClusterRoleBinding<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: rbac.authorization.k8s.io\/v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: fluent-bit-rb<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">roleRef:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  kind: ClusterRole<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">  name: fluent-bit-role<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">  apiGroup: rbac.authorization.k8s.io<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">subjects:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">&#8211; kind: ServiceAccount<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">  name: fluent-bit-sa<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-rb-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-fluent-bit-rb-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/f6ee45df61e168ea2912db2747b2439d\/raw\/ecb364d99744d21c390bd4f10a1aae2a7ab3cf5f\/fluent-bit-rb.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/f6ee45df61e168ea2912db2747b2439d#file-fluent-bit-rb-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          fluent-bit-rb.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<h5 class=\"wp-block-heading has-text-align-justify\">Creating the Fluent-bit ConfigMap<\/h5>\n\n\n\n<p class=\"has-text-align-justify has-dark-gray-color has-white-background-color has-text-color has-background\">This ConfigMap is used to configure a Fluent-bit pod, by specifying the ConfigMap field in the pod definition. This way when the pod starts it will use the configurations defined in the configmap. ConfigMap can be updates and changes, it will reflect in the pod without the need to recreate the pod itself. <\/p>\n\n\n\n<p>Let\u2019s create a ConfigMap for Fluent-bit.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120371023\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-fluent-bit-configmap-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"fluent-bit-configmap.yaml content, created by Cpriyanshi77 on 10:14AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"fluent-bit-configmap.yaml\">\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: ConfigMap<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: fluent-bit-config<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">    k8s-app: f-bit-pod<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">data:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">  # Configuration files: server, input, filters and output<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">  # ======================================================<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">  fluent-bit.conf: |<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">    [SERVICE]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC13\" class=\"blob-code blob-code-inner js-file-line\">        Flush         1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC14\" class=\"blob-code blob-code-inner js-file-line\">        Log_Level     info<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC15\" class=\"blob-code blob-code-inner js-file-line\">        Daemon        off<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC16\" class=\"blob-code blob-code-inner js-file-line\">        Parsers_File  parsers.conf<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC17\" class=\"blob-code blob-code-inner js-file-line\">        HTTP_Server   On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC18\" class=\"blob-code blob-code-inner js-file-line\">        HTTP_Listen   0.0.0.0<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC19\" class=\"blob-code blob-code-inner js-file-line\">        HTTP_Port     2020<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC20\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC21\" class=\"blob-code blob-code-inner js-file-line\">    @INCLUDE input-kubernetes.conf<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC22\" class=\"blob-code blob-code-inner js-file-line\">    @INCLUDE filter-kubernetes.conf<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC23\" class=\"blob-code blob-code-inner js-file-line\">    @INCLUDE output-elasticsearch.conf<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC24\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC25\" class=\"blob-code blob-code-inner js-file-line\">  input-kubernetes.conf: |<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC26\" class=\"blob-code blob-code-inner js-file-line\">    [INPUT]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC27\" class=\"blob-code blob-code-inner js-file-line\">        Name              tail<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L28\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"28\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC28\" class=\"blob-code blob-code-inner js-file-line\">        Tag               kube.*<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L29\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"29\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC29\" class=\"blob-code blob-code-inner js-file-line\">        Path              \/var\/log\/containers\/*.log<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L30\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"30\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC30\" class=\"blob-code blob-code-inner js-file-line\">        Parser            docker<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L31\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"31\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC31\" class=\"blob-code blob-code-inner js-file-line\">        DB                \/var\/log\/flb_kube.db<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L32\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"32\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC32\" class=\"blob-code blob-code-inner js-file-line\">        Mem_Buf_Limit     5MB<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L33\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"33\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC33\" class=\"blob-code blob-code-inner js-file-line\">        Skip_Long_Lines   On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L34\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"34\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC34\" class=\"blob-code blob-code-inner js-file-line\">        Refresh_Interval  10<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L35\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"35\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC35\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L36\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"36\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC36\" class=\"blob-code blob-code-inner js-file-line\">  filter-kubernetes.conf: |<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L37\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"37\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC37\" class=\"blob-code blob-code-inner js-file-line\">    [FILTER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L38\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"38\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC38\" class=\"blob-code blob-code-inner js-file-line\">        Name                kubernetes<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L39\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"39\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC39\" class=\"blob-code blob-code-inner js-file-line\">        Match               kube.*<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L40\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"40\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC40\" class=\"blob-code blob-code-inner js-file-line\">        Kube_URL            https:\/\/kubernetes.default.svc:443<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L41\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"41\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC41\" class=\"blob-code blob-code-inner js-file-line\">        Kube_CA_File        \/var\/run\/secrets\/kubernetes.io\/serviceaccount\/ca.crt<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L42\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"42\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC42\" class=\"blob-code blob-code-inner js-file-line\">        Kube_Token_File     \/var\/run\/secrets\/kubernetes.io\/serviceaccount\/token<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L43\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"43\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC43\" class=\"blob-code blob-code-inner js-file-line\">        Kube_Tag_Prefix     kube.var.log.containers.*<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L44\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"44\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC44\" class=\"blob-code blob-code-inner js-file-line\">        Merge_Log           On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L45\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"45\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC45\" class=\"blob-code blob-code-inner js-file-line\">        Merge_Log_Key       log_processed<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L46\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"46\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC46\" class=\"blob-code blob-code-inner js-file-line\">        K8S-Logging.Parser  On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L47\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"47\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC47\" class=\"blob-code blob-code-inner js-file-line\">        K8S-Logging.Exclude Off<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L48\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"48\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC48\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L49\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"49\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC49\" class=\"blob-code blob-code-inner js-file-line\">  output-elasticsearch.conf: |<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L50\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"50\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC50\" class=\"blob-code blob-code-inner js-file-line\">    [OUTPUT]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L51\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"51\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC51\" class=\"blob-code blob-code-inner js-file-line\">        Name            es<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L52\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"52\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC52\" class=\"blob-code blob-code-inner js-file-line\">        Match           *<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L53\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"53\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC53\" class=\"blob-code blob-code-inner js-file-line\">        Host            ${FLUENT_ELASTICSEARCH_HOST}<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L54\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"54\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC54\" class=\"blob-code blob-code-inner js-file-line\">        Port            ${FLUENT_ELASTICSEARCH_PORT}<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L55\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"55\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC55\" class=\"blob-code blob-code-inner js-file-line\">        HTTP_User       ${FLUENT_ELASTICSEARCH_USER}<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L56\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"56\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC56\" class=\"blob-code blob-code-inner js-file-line\">        HTTP_Passwd     ${FLUENT_ELASTICSEARCH_PASSWORD}<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L57\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"57\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC57\" class=\"blob-code blob-code-inner js-file-line\">        Logstash_Format On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L58\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"58\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC58\" class=\"blob-code blob-code-inner js-file-line\">        Replace_Dots    On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L59\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"59\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC59\" class=\"blob-code blob-code-inner js-file-line\">        Retry_Limit     False<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L60\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"60\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC60\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L61\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"61\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC61\" class=\"blob-code blob-code-inner js-file-line\">  parsers.conf: |<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L62\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"62\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC62\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L63\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"63\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC63\" class=\"blob-code blob-code-inner js-file-line\">        Name   apache<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L64\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"64\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC64\" class=\"blob-code blob-code-inner js-file-line\">        Format regex<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L65\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"65\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC65\" class=\"blob-code blob-code-inner js-file-line\">        Regex  ^(?&lt;host&gt;[^ ]*) [^ ]* (?&lt;user&gt;[^ ]*) \\[(?&lt;time&gt;[^\\]]*)\\] &quot;(?&lt;method&gt;\\S+)(?: +(?&lt;path&gt;[^\\&quot;]*?)(?: +\\S*)?)?&quot; (?&lt;code&gt;[^ ]*) (?&lt;size&gt;[^ ]*)(?: &quot;(?&lt;referer&gt;[^\\&quot;]*)&quot; &quot;(?&lt;agent&gt;[^\\&quot;]*)&quot;)?$<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L66\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"66\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC66\" class=\"blob-code blob-code-inner js-file-line\">        Time_Key time<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L67\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"67\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC67\" class=\"blob-code blob-code-inner js-file-line\">        Time_Format %d\/%b\/%Y:%H:%M:%S %z<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L68\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"68\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC68\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L69\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"69\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC69\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L70\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"70\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC70\" class=\"blob-code blob-code-inner js-file-line\">        Name   apache2<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L71\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"71\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC71\" class=\"blob-code blob-code-inner js-file-line\">        Format regex<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L72\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"72\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC72\" class=\"blob-code blob-code-inner js-file-line\">        Regex  ^(?&lt;host&gt;[^ ]*) [^ ]* (?&lt;user&gt;[^ ]*) \\[(?&lt;time&gt;[^\\]]*)\\] &quot;(?&lt;method&gt;\\S+)(?: +(?&lt;path&gt;[^ ]*) +\\S*)?&quot; (?&lt;code&gt;[^ ]*) (?&lt;size&gt;[^ ]*)(?: &quot;(?&lt;referer&gt;[^\\&quot;]*)&quot; &quot;(?&lt;agent&gt;[^\\&quot;]*)&quot;)?$<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L73\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"73\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC73\" class=\"blob-code blob-code-inner js-file-line\">        Time_Key time<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L74\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"74\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC74\" class=\"blob-code blob-code-inner js-file-line\">        Time_Format %d\/%b\/%Y:%H:%M:%S %z<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L75\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"75\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC75\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L76\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"76\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC76\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L77\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"77\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC77\" class=\"blob-code blob-code-inner js-file-line\">        Name   apache_error<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L78\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"78\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC78\" class=\"blob-code blob-code-inner js-file-line\">        Format regex<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L79\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"79\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC79\" class=\"blob-code blob-code-inner js-file-line\">        Regex  ^\\[[^ ]* (?&lt;time&gt;[^\\]]*)\\] \\[(?&lt;level&gt;[^\\]]*)\\](?: \\[pid (?&lt;pid&gt;[^\\]]*)\\])?( \\[client (?&lt;client&gt;[^\\]]*)\\])? (?&lt;message&gt;.*)$<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L80\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"80\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC80\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L81\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"81\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC81\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L82\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"82\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC82\" class=\"blob-code blob-code-inner js-file-line\">        Name   nginx<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L83\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"83\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC83\" class=\"blob-code blob-code-inner js-file-line\">        Format regex<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L84\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"84\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC84\" class=\"blob-code blob-code-inner js-file-line\">        Regex ^(?&lt;remote&gt;[^ ]*) (?&lt;host&gt;[^ ]*) (?&lt;user&gt;[^ ]*) \\[(?&lt;time&gt;[^\\]]*)\\] &quot;(?&lt;method&gt;\\S+)(?: +(?&lt;path&gt;[^\\&quot;]*?)(?: +\\S*)?)?&quot; (?&lt;code&gt;[^ ]*) (?&lt;size&gt;[^ ]*)(?: &quot;(?&lt;referer&gt;[^\\&quot;]*)&quot; &quot;(?&lt;agent&gt;[^\\&quot;]*)&quot;)?$<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L85\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"85\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC85\" class=\"blob-code blob-code-inner js-file-line\">        Time_Key time<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L86\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"86\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC86\" class=\"blob-code blob-code-inner js-file-line\">        Time_Format %d\/%b\/%Y:%H:%M:%S %z<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L87\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"87\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC87\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L88\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"88\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC88\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L89\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"89\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC89\" class=\"blob-code blob-code-inner js-file-line\">        Name   json<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L90\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"90\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC90\" class=\"blob-code blob-code-inner js-file-line\">        Format json<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L91\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"91\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC91\" class=\"blob-code blob-code-inner js-file-line\">        Time_Key time<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L92\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"92\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC92\" class=\"blob-code blob-code-inner js-file-line\">        Time_Format %d\/%b\/%Y:%H:%M:%S %z<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L93\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"93\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC93\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L94\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"94\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC94\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L95\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"95\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC95\" class=\"blob-code blob-code-inner js-file-line\">        Name        docker<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L96\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"96\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC96\" class=\"blob-code blob-code-inner js-file-line\">        Format      json<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L97\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"97\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC97\" class=\"blob-code blob-code-inner js-file-line\">        Time_Key    time<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L98\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"98\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC98\" class=\"blob-code blob-code-inner js-file-line\">        Time_Format %Y-%m-%dT%H:%M:%S.%L<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L99\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"99\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC99\" class=\"blob-code blob-code-inner js-file-line\">        Time_Keep   On<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L100\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"100\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC100\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L101\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"101\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC101\" class=\"blob-code blob-code-inner js-file-line\">    [PARSER]<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L102\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"102\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC102\" class=\"blob-code blob-code-inner js-file-line\">        Name        syslog<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L103\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"103\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC103\" class=\"blob-code blob-code-inner js-file-line\">        Format      regex<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L104\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"104\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC104\" class=\"blob-code blob-code-inner js-file-line\">        Regex       ^\\&lt;(?&lt;pri&gt;[0-9]+)\\&gt;(?&lt;time&gt;[^ ]* {1,2}[^ ]* [^ ]*) (?&lt;host&gt;[^ ]*) (?&lt;ident&gt;[a-zA-Z0-9_\\\/\\.\\-]*)(?:\\[(?&lt;pid&gt;[0-9]+)\\])?(?:[^\\:]*\\:)? *(?&lt;message&gt;.*)$<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L105\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"105\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC105\" class=\"blob-code blob-code-inner js-file-line\">        Time_Key    time<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-configmap-yaml-L106\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"106\"><\/td>\n          <td id=\"file-fluent-bit-configmap-yaml-LC106\" class=\"blob-code blob-code-inner js-file-line\">        Time_Format %b %d %H:%M:%S<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/80ac75258dfc09ff3fd7ff505c70b6c1\/raw\/1ed1904510eaf3d2a6cdb3d8b5d5a87518d2a859\/fluent-bit-configmap.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/80ac75258dfc09ff3fd7ff505c70b6c1#file-fluent-bit-configmap-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          fluent-bit-configmap.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p>The configuration in this manifest file specifies several different sections, including:<\/p>\n\n\n\n<ul>\n<li>[SERVICE]: in which we specify the flush time and log level of the service.<\/li>\n\n\n\n<li>[INPUT]: in which we specify the input plugin that Fluent-bit should use to collect log data. In this case, the plugin is \u201ctail\u201d, which is used to collect logs from the files at the specified path, here is \u201c\/var\/log\/containers\/*.log\u201d<\/li>\n\n\n\n<li>[FILTER]: in which we specify the filter plugin that Fluent-bit should use to process the log data. Here is \u201ckubernetes\u201d which is used to parse Kubernetes-specific metadata from the log lines.<\/li>\n\n\n\n<li>[OUTPUT]: in which we specify the output plugin that Fluent-bit should use to send log data to Elasticsearch. It also includes the Elasticsearch endpoint host and port, along with other configurations.<\/li>\n\n\n\n<li>[PARSER] in which we specify the format of the log data and how it should be parsed.<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading has-text-align-justify\">Creating the Fluent-bit Daemonset<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">The Fluent-bit Daemonset will automatically start collecting logs from all the nodes and send them to Elasticsearch.<\/p>\n\n\n\n<p>Let\u2019s create a Daemonset for Fluent-bit.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120371065\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-fluent-bit-ds-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"fluent-bit-ds.yaml content, created by Cpriyanshi77 on 10:19AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"fluent-bit-ds.yaml\">\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: apps\/v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: DaemonSet<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: f-bit-pod<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">  namespace: kube-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">    k8s-app: fluent-bit-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">    version: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">    kubernetes.io\/cluster-service: &quot;true&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC10\" class=\"blob-code blob-code-inner js-file-line\">spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC11\" class=\"blob-code blob-code-inner js-file-line\">  selector:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC12\" class=\"blob-code blob-code-inner js-file-line\">    matchLabels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC13\" class=\"blob-code blob-code-inner js-file-line\">      k8s-app: fluent-bit-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC14\" class=\"blob-code blob-code-inner js-file-line\">  template:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC15\" class=\"blob-code blob-code-inner js-file-line\">    metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC16\" class=\"blob-code blob-code-inner js-file-line\">      labels:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC17\" class=\"blob-code blob-code-inner js-file-line\">        k8s-app: fluent-bit-logging<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC18\" class=\"blob-code blob-code-inner js-file-line\">        version: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC19\" class=\"blob-code blob-code-inner js-file-line\">        kubernetes.io\/cluster-service: &quot;true&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC20\" class=\"blob-code blob-code-inner js-file-line\">      annotations:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC21\" class=\"blob-code blob-code-inner js-file-line\">        prometheus.io\/scrape: &quot;true&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC22\" class=\"blob-code blob-code-inner js-file-line\">        prometheus.io\/port: &quot;2020&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC23\" class=\"blob-code blob-code-inner js-file-line\">        prometheus.io\/path: \/api\/v1\/metrics\/prometheus<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC24\" class=\"blob-code blob-code-inner js-file-line\">    spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC25\" class=\"blob-code blob-code-inner js-file-line\">      containers:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC26\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: fluent-bit<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L27\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"27\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC27\" class=\"blob-code blob-code-inner js-file-line\">        image: fluent\/fluent-bit:1.3.11<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L28\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"28\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC28\" class=\"blob-code blob-code-inner js-file-line\">        imagePullPolicy: Always<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L29\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"29\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC29\" class=\"blob-code blob-code-inner js-file-line\">        ports:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L30\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"30\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC30\" class=\"blob-code blob-code-inner js-file-line\">          &#8211; containerPort: 2020<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L31\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"31\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC31\" class=\"blob-code blob-code-inner js-file-line\">        env:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L32\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"32\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC32\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: FLUENT_ELASTICSEARCH_HOST<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L33\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"33\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC33\" class=\"blob-code blob-code-inner js-file-line\">          value: &quot;elasticsearch&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L34\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"34\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC34\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: FLUENT_ELASTICSEARCH_PORT<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L35\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"35\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC35\" class=\"blob-code blob-code-inner js-file-line\">          value: &quot;9200&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L36\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"36\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC36\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: FLUENT_ELASTICSEARCH_USER<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L37\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"37\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC37\" class=\"blob-code blob-code-inner js-file-line\">          value: &quot;elastic&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L38\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"38\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC38\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: FLUENT_ELASTICSEARCH_PASSWORD<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L39\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"39\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC39\" class=\"blob-code blob-code-inner js-file-line\">          valueFrom:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L40\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"40\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC40\" class=\"blob-code blob-code-inner js-file-line\">            secretKeyRef:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L41\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"41\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC41\" class=\"blob-code blob-code-inner js-file-line\">              name: kibana-password<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L42\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"42\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC42\" class=\"blob-code blob-code-inner js-file-line\">              key: password<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L43\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"43\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC43\" class=\"blob-code blob-code-inner js-file-line\">        volumeMounts:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L44\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"44\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC44\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: varlog<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L45\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"45\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC45\" class=\"blob-code blob-code-inner js-file-line\">          mountPath: \/var\/log<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L46\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"46\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC46\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: varlibdockercontainers<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L47\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"47\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC47\" class=\"blob-code blob-code-inner js-file-line\">          mountPath: \/var\/lib\/docker\/containers<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L48\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"48\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC48\" class=\"blob-code blob-code-inner js-file-line\">          readOnly: true<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L49\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"49\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC49\" class=\"blob-code blob-code-inner js-file-line\">        &#8211; name: fluent-bit-config<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L50\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"50\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC50\" class=\"blob-code blob-code-inner js-file-line\">          mountPath: \/fluent-bit\/etc\/<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L51\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"51\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC51\" class=\"blob-code blob-code-inner js-file-line\">      terminationGracePeriodSeconds: 10<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L52\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"52\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC52\" class=\"blob-code blob-code-inner js-file-line\">      volumes:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L53\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"53\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC53\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: varlog<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L54\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"54\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC54\" class=\"blob-code blob-code-inner js-file-line\">        hostPath:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L55\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"55\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC55\" class=\"blob-code blob-code-inner js-file-line\">          path: \/var\/log<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L56\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"56\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC56\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: varlibdockercontainers<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L57\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"57\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC57\" class=\"blob-code blob-code-inner js-file-line\">        hostPath:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L58\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"58\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC58\" class=\"blob-code blob-code-inner js-file-line\">          path: \/var\/lib\/docker\/containers<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L59\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"59\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC59\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; name: fluent-bit-config<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L60\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"60\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC60\" class=\"blob-code blob-code-inner js-file-line\">        configMap:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L61\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"61\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC61\" class=\"blob-code blob-code-inner js-file-line\">          name: fluent-bit-config<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L62\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"62\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC62\" class=\"blob-code blob-code-inner js-file-line\">      serviceAccountName: fluent-bit-sa<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L63\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"63\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC63\" class=\"blob-code blob-code-inner js-file-line\">      tolerations:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L64\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"64\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC64\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; key: node-role.kubernetes.io\/master<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L65\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"65\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC65\" class=\"blob-code blob-code-inner js-file-line\">        operator: Exists<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L66\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"66\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC66\" class=\"blob-code blob-code-inner js-file-line\">        effect: NoSchedule<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L67\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"67\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC67\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; operator: &quot;Exists&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L68\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"68\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC68\" class=\"blob-code blob-code-inner js-file-line\">        effect: &quot;NoExecute&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L69\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"69\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC69\" class=\"blob-code blob-code-inner js-file-line\">      &#8211; operator: &quot;Exists&quot;<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-fluent-bit-ds-yaml-L70\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"70\"><\/td>\n          <td id=\"file-fluent-bit-ds-yaml-LC70\" class=\"blob-code blob-code-inner js-file-line\">        effect: &quot;NoSchedule&quot;<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/e2f65b3ba39930f1beebf17872d17e32\/raw\/b079ca55ce69d5ab7fd3198ca37ae782afca6efb\/fluent-bit-ds.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/e2f65b3ba39930f1beebf17872d17e32#file-fluent-bit-ds-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          fluent-bit-ds.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Verify Fluent-bit Deployment<\/h5>\n\n\n\n<p>By creating a pod that generates logs continuously, you can ensure that Fluent-bit is correctly collecting and forwarding the logs to Elasticsearch.<\/p>\n\n\n\n<p class=\"has-text-align-justify\">You can create a pod that generates logs continuously by using an image that has a script or a program that generates logs. For example, you can use the <code>busybox<\/code> image and run the <code>logger<\/code> command in a loop inside the pod.<\/p>\n\n\n\n<p>Let\u2019s create a test pod for Fluent-bit.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler\"><div class=\"wp-block-embed__wrapper\">\n<style>.gist table { margin-bottom: 0; }<\/style><div style=\"tab-size: 8\" id=\"gist120371076\" class=\"gist\">\n    <div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n      <div class=\"gist-data\">\n        \n<div class=\"js-gist-file-update-container js-task-list-container\">\n      <div id=\"file-test-pod-yaml\" class=\"file my-2\">\n    \n    <div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-yaml  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"test-pod.yaml content, created by Cpriyanshi77 on 10:20AM on January 20, 2023.\"\n    >\n\n        \n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n\n  <template class=\"js-file-alert-template\">\n  <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n    <span>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\" rel=\"noopener\">Learn more about bidirectional Unicode characters<\/a>\n    <\/span>\n\n\n  <div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters\n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n  <table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"test-pod.yaml\">\n        <tr>\n          <td id=\"file-test-pod-yaml-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n          <td id=\"file-test-pod-yaml-LC1\" class=\"blob-code blob-code-inner js-file-line\">apiVersion: v1<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n          <td id=\"file-test-pod-yaml-LC2\" class=\"blob-code blob-code-inner js-file-line\">kind: Pod<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n          <td id=\"file-test-pod-yaml-LC3\" class=\"blob-code blob-code-inner js-file-line\">metadata:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n          <td id=\"file-test-pod-yaml-LC4\" class=\"blob-code blob-code-inner js-file-line\">  name: log-generator<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n          <td id=\"file-test-pod-yaml-LC5\" class=\"blob-code blob-code-inner js-file-line\">spec:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n          <td id=\"file-test-pod-yaml-LC6\" class=\"blob-code blob-code-inner js-file-line\">  containers:<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n          <td id=\"file-test-pod-yaml-LC7\" class=\"blob-code blob-code-inner js-file-line\">  &#8211; name: log-generator<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n          <td id=\"file-test-pod-yaml-LC8\" class=\"blob-code blob-code-inner js-file-line\">    image: busybox<\/td>\n        <\/tr>\n        <tr>\n          <td id=\"file-test-pod-yaml-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n          <td id=\"file-test-pod-yaml-LC9\" class=\"blob-code blob-code-inner js-file-line\">    command: [&#39;sh&#39;, &#39;-c&#39;, &#39;i=0; while true; do echo &quot;$i: Log message&quot;; i=$((i+1)); sleep 1; done&#39;]<\/td>\n        <\/tr>\n  <\/table>\n<\/div>\n\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n      <\/div>\n      <div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/60889ed3d66601e54df5236f326c733a\/raw\/a9f5d6e507dee224be072b965a0da72a09b60ae0\/test-pod.yaml\" style=\"float:right\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">view raw<\/a>\n        <a href=\"https:\/\/gist.github.com\/Cpriyanshi77\/60889ed3d66601e54df5236f326c733a#file-test-pod-yaml\" class=\"Link--inTextBlock\" target=\"_blank\" rel=\"noopener\">\n          test-pod.yaml\n        <\/a>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>\n      <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-align-justify\">By doing this, you are able to verify that Fluent-bit is working as expected, and it is collecting and forwarding the logs to Elasticsearch, where they can be analyzed and visualized in Kibana.<\/p>\n\n\n\n<p>That\u2019s it!<\/p>\n\n\n\n<p>Hope you found this tutorial helpful, And that you will be able to set up the EFK stack for logging in Kubernetes with ease.<\/p>\n\n\n\n<p><strong>Blog Pundits: <a rel=\"noreferrer noopener\" href=\"https:\/\/opstree.com\/blog\/\/author\/bhupendersinghb5dca0b393\/\" target=\"_blank\">Bhupender Rawat<\/a> and <a rel=\"noreferrer noopener\" href=\"https:\/\/opstree.com\/blog\/\/author\/sandeep7c51ad81ba\/\" target=\"_blank\">Sandeep Rawat<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/opstree.com\/contact-us\/?utm_source=WordPress&amp;utm_medium=Blog&amp;utm_campaign=Protected+EFK+Stack+Setup+for+Kubernetes\" target=\"_blank\" rel=\"noreferrer noopener\">OpsTree<\/a> is an End-to-End DevOps Solution Provider.<\/strong><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/opstree.com\/contact-us\/?utm_source=WordPress&amp;utm_medium=Blog&amp;utm_campaign=Protected+EFK+Stack+Setup+for+Kubernetes\" target=\"_blank\" rel=\"noreferrer noopener\">Contact Us<\/a><\/div>\n<\/div>\n\n\n\n<p class=\"has-text-align-center\"><strong>Connect with Us<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-social-links aligncenter is-content-justification-center is-layout-flex wp-container-core-social-links-is-layout-1 wp-block-social-links-is-layout-flex\"><li class=\"wp-social-link wp-social-link-linkedin  wp-block-social-link\"><a href=\"https:\/\/www.linkedin.com\/company\/opstree-solutions\" class=\"wp-block-social-link-anchor\" target=\"_blank\" rel=\"noopener\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">LinkedIn<\/span><\/a><\/li>\n\n<li class=\"wp-social-link wp-social-link-youtube  wp-block-social-link\"><a href=\"https:\/\/www.youtube.com\/channel\/UCeLma6SpNYH7jjYKSBNSexw\" class=\"wp-block-social-link-anchor\" target=\"_blank\" rel=\"noopener\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">YouTube<\/span><\/a><\/li>\n\n<li class=\"wp-social-link wp-social-link-github  wp-block-social-link\"><a href=\"https:\/\/github.com\/OpsTree\" class=\"wp-block-social-link-anchor\" target=\"_blank\" rel=\"noopener\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">GitHub<\/span><\/a><\/li>\n\n<li class=\"wp-social-link wp-social-link-facebook  wp-block-social-link\"><a href=\"https:\/\/www.facebook.com\/opstree\" class=\"wp-block-social-link-anchor\" target=\"_blank\" rel=\"noopener\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">Facebook<\/span><\/a><\/li>\n\n<li class=\"wp-social-link wp-social-link-medium  wp-block-social-link\"><a href=\"https:\/\/medium.com\/buildpiper\" class=\"wp-block-social-link-anchor\" target=\"_blank\" rel=\"noopener\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z\"><\/path><\/svg><span class=\"wp-block-social-link-label screen-reader-text\">Medium<\/span><\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will see how we can deploy the Elasticsearch, Fluent-bit, and Kibana (EFK) stack on Kubernetes. EFK stack\u2019s prime objective is to reliably and securely retrieve data from the K8s cluster in any format, as well as to facilitate anytime searching, analyzing, and visualizing of the data. What is EFK&nbsp;Stack? EFK stands &hellip; <a href=\"https:\/\/opstree.com\/blog\/2023\/01\/24\/protected-efk-stack-setup-for-kubernetes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Protected EFK Stack Setup for Kubernetes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":230384898,"featured_media":29900,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[28070474],"tags":[44070,768739308,676319247,5265318,768739309,768739293,4996032],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2025\/11\/DevSecOps-1.jpg","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfDBOm-3jg","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/12726"}],"collection":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/users\/230384898"}],"replies":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/comments?post=12726"}],"version-history":[{"count":25,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/12726\/revisions"}],"predecessor-version":[{"id":15148,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/12726\/revisions\/15148"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/media\/29900"}],"wp:attachment":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/media?parent=12726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/categories?post=12726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/tags?post=12726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}