To listen to traffic in Kubernetes, you can either set up Metlo as either a
daemonset or a sidecar.Be sure to replace <YOUR_METLO_API_KEY> in the templates.By default Metlo automatically detects the interface to listen to but you can
specify the INTERFACE environment variable if you want to change it.
Daemonset
Here is an example
metlo-daemonset.yaml
file that contains just the daemonset for deploying metlo.
Sidecar
metlo-sidecar.yaml
contains an example for how to setup Metlo as a sidecar container.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Metlo","colors":{"primary":"#4152F0","light":"#9BA5FF","dark":"#272F85"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/metlo/bLaSw1tiF6Fz1nHn/logo/light.svg?fit=max\u0026auto=format\u0026n=bLaSw1tiF6Fz1nHn\u0026q=85\u0026s=d238f6c91e799714cbd822472d45cad7","dark":"https://mintcdn.com/metlo/bLaSw1tiF6Fz1nHn/logo/dark.svg?fit=max\u0026auto=format\u0026n=bLaSw1tiF6Fz1nHn\u0026q=85\u0026s=cdb7916e111cb79cb49adceaf1b0736f"},"navbar":{"links":[{"label":"Sign In","href":"https://app.metlo.com/login"}],"primary":{"type":"button","label":"Get Started","href":"https://app.metlo.com/signup"}},"footer":{"socials":{"twitter":"https://twitter.com/MetloHQ","linkedin":"https://www.linkedin.com/company/metlo/","facebook":"https://www.facebook.com/MetloHQ","github":"https://github.com/metlo-labs/metlo"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"metlo","hasAudioNarration":false,"actualSubdomain":"metlo","customDomains":["docs.metlo.com"],"gitSource":{"type":"github","owner":"metlo-labs","repo":"metlo-docs","deployBranch":"main","contentDirectory":"","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae9145c3c9e92af7614b03b:success","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"default","tag":"Documentation","count":48},{"language":"default","tag":"Connections","count":14},{"language":"default","tag":"Testing","count":10},{"language":"default","tag":"Self Hosted","count":5},{"language":"default","tag":"Introduction","count":4},{"language":"default","tag":"Inventory","count":4},{"language":"default","tag":"Contribute","count":3},{"language":"default","tag":"Protection","count":3},{"language":"default","tag":"Settings","count":3},{"language":"default","tag":"Custom Templates","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"connections/kubernetes","slug":"/connections/kubernetes","pageMetadata":{"title":"Kubernetes","description":null,"href":"/connections/kubernetes"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`To listen to traffic in Kubernetes, you can either set up Metlo as either a\ndaemonset or a sidecar.`}),`\n`,_jsxs(_components.p,{children:[`Be sure to replace `,_jsx(_components.code,{children:`\u003cYOUR_METLO_API_KEY>`}),` in the templates.`]}),`\n`,_jsxs(_components.p,{children:[`By default Metlo automatically detects the interface to listen to but you can\nspecify the `,_jsx(_components.code,{children:`INTERFACE`}),` environment variable if you want to change it.`]}),`\n`,_jsx(Heading,{level:`3`,id:`daemonset`,children:`Daemonset`}),`\n`,_jsxs(_components.p,{children:[`Here is an example\n`,_jsx(_components.a,{href:`https://github.com/metlo-labs/metlo-deploy/blob/main/kubernetes/metlo-daemonset.yaml`,children:`metlo-daemonset.yaml`}),`\nfile that contains just the daemonset for deploying metlo.`]}),`\n`,_jsx(Heading,{level:`3`,id:`sidecar`,children:`Sidecar`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://github.com/metlo-labs/metlo-deploy/blob/main/kubernetes/metlo-sidecar.yaml`,children:`metlo-sidecar.yaml`}),`\ncontains an example for how to setup Metlo as a sidecar container.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Kubernetes","description":null,"href":"/connections/kubernetes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Daemonset","slug":"daemonset","depth":3,"children":[]},{"title":"Sidecar","slug":"sidecar","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"metlo","siteName":"Metlo","title":"Kubernetes - Metlo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T22:47:17.323Z","originalFileLocation":"connections/kubernetes.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Metlo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kubernetes - Metlo\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Metlo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.metlo.com/connections/kubernetes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://metlo.mintlify.site/_mintlify/api/og/v2?division=Connections\u0026amp;title=Kubernetes\u0026amp;theme=b7c1c98cb485e15d869b5aae\u0026amp;signature=14f63619cff4be2926e4399df2a5c6e04d9e397901f29563946c3e340a2c20ad\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Kubernetes - Metlo\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://metlo.mintlify.site/_mintlify/api/og/v2?division=Connections\u0026amp;title=Kubernetes\u0026amp;theme=b7c1c98cb485e15d869b5aae\u0026amp;signature=14f63619cff4be2926e4399df2a5c6e04d9e397901f29563946c3e340a2c20ad\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/metlo/5Acj5hVSNmEkL-sJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Metlo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4152F0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.metlo.com/connections/kubernetes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/connections/kubernetes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.metlo.com/#organization\",\"name\":\"Metlo\",\"url\":\"https://docs.metlo.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/metlo/bLaSw1tiF6Fz1nHn/logo/light.svg?fit=max\u0026auto=format\u0026n=bLaSw1tiF6Fz1nHn\u0026q=85\u0026s=d238f6c91e799714cbd822472d45cad7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.metlo.com#website\",\"name\":\"Metlo\",\"url\":\"https://docs.metlo.com\",\"publisher\":{\"@id\":\"https://docs.metlo.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.metlo.com/connections/kubernetes#webpage\",\"url\":\"https://docs.metlo.com/connections/kubernetes\",\"name\":\"Kubernetes\",\"dateModified\":\"2026-01-06T22:47:17.323Z\",\"isPartOf\":{\"@id\":\"https://docs.metlo.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.metlo.com/connections/kubernetes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.metlo.com/connections/kubernetes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Connections\",\"item\":\"https://docs.metlo.com/connections/nodejs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kubernetes\",\"item\":\"https://docs.metlo.com/connections/kubernetes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.metlo.com/connections/kubernetes#article\",\"headline\":\"Kubernetes\",\"name\":\"Kubernetes\",\"url\":\"https://docs.metlo.com/connections/kubernetes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.metlo.com/connections/kubernetes#webpage\"},\"dateModified\":\"2026-01-06T22:47:17.323Z\",\"publisher\":{\"@id\":\"https://docs.metlo.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.metlo.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Metlo\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Metlo\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/connections/kubernetes.md","siteName":"Metlo","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Introduction","pages":[{"title":"Welcome to Metlo","href":"/intro/welcome"},{"title":"Getting Started with Metlo Cloud","sidebarTitle":"Getting Started","href":"/intro/getting-started"},{"title":"Security","href":"/intro/security"},{"title":"Performance","href":"/intro/performance"}]},{"group":"Inventory","pages":[{"title":"Endpoint Discovery","href":"/inventory/endpoints"},{"title":"Sensitive Data","href":"/inventory/sensitive-data"},{"title":"Authentication","href":"/inventory/configuration"},{"title":"Custom Sensitive Data","href":"/inventory/custom-sensitive-data"}]},{"group":"Protection","pages":[{"title":"Attack Detection","href":"/protection/intro"},{"title":"Attack Context","href":"/protection/attack-context"},{"title":"WAF","href":"/protection/waf"}]},{"group":"Connections","pages":[{"title":"Node","href":"/connections/nodejs"},{"title":"Python","href":"/connections/python"},{"title":"Ruby","href":"/connections/ruby"},{"title":"Java","href":"/connections/java"},{"title":"Go","href":"/connections/go"},{"title":"Nginx","href":"/connections/nginx"},{"title":"AWS Traffic Mirroring","href":"/connections/aws"},{"title":"GCP Traffic Mirroring","href":"/connections/gcp"},{"title":"Azure API Management","href":"/connections/azure-api-management"},{"title":"Docker Compose","description":null,"href":"/connections/docker-compose"},{"title":"Kubernetes","href":"/connections/kubernetes"},{"title":"Linkerd","description":null,"href":"/connections/linkerd"},{"title":"AWS Fargate","href":"/connections/aws-fargate"},{"title":"Burp Suite Extension","href":"/connections/burp-suite-plugin"}]},{"group":"Testing","pages":[{"title":"Writing a Test","href":"/testing/writing-a-test"},{"title":"Advanced Tests","href":"/testing/advanced-tests"},{"title":"Test Templates","href":"/testing/test-templates"},{"title":"Test Rules","href":"/testing/test-rules"},{"title":"Global Test Environment","href":"/testing/global-test-environment"},{"group":"Auth Tests","pages":[{"title":"Making a Testing Config","href":"/testing/auth-tests/testing-config"},{"title":"Generating Auth Tests","href":"/testing/auth-tests/generating-auth-tests"}]},{"group":"Custom Templates","pages":[{"title":"Custom Templates","sidebarTitle":"Overview","href":"/testing/templates/custom-templates"},{"title":"Typescript Templates","href":"/testing/templates/typescript-templates"},{"title":"Example Templates","href":"/testing/templates/example-templates"}]}]},{"group":"Settings","pages":[{"title":"Metlo Config","href":"/settings/metlo-config"},{"title":"Webhooks","href":"/settings/webhooks"},{"title":"Uploading Open API Specs","href":"/settings/uploading-open-api-specs"}]},{"group":"CLI","pages":[{"title":"Installing Metlo's CLI","href":"/cli/installing-metlos-cli"},{"title":"Simulate an Attack","href":"/cli/attack-simulate"}]},{"group":"Self Hosted","pages":[{"title":"Deploy","href":"/self-hosted/deploy"},{"title":"Debugging","href":"/self-hosted/debugging"},{"title":"Email","href":"/self-hosted/email"},{"title":"Data Egress","href":"/self-hosted/data-egress"},{"title":"Deploy Open Source","href":"/self-hosted/opensource"}]},{"group":"Contribute","pages":[{"title":"Overview","href":"/contribute/overview"},{"title":"Development Guide","href":"/contribute/development-guide"},{"title":"Making a New Ingestor","href":"/contribute/making-a-new-ingestor"}]}]},{"anchor":"Blog","href":"https://blog.metlo.com","icon":"newspaper"},{"anchor":"GitHub","href":"https://github.com/metlo-labs/metlo","icon":"github"},{"anchor":"Discord","href":"https://discord.com/invite/4xhumff9BX","icon":"discord"},{"anchor":"Contact Us","href":"mailto:akshay@metlo.com","icon":"envelope"}]},"basePath":"","title":"Kubernetes - Metlo","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":[],"chunks":[]}