{"id":9514,"date":"2023-04-05T07:26:24","date_gmt":"2023-04-05T07:26:24","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=9514"},"modified":"2023-04-05T07:31:56","modified_gmt":"2023-04-05T07:31:56","slug":"optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/","title":{"rendered":"Optimizing application resources in a cost-effective manner in Kubernetes"},"content":{"rendered":"<p>At times, we may question the high costs of Cloud providers. However, when constructing infrastructure, the Total Cost of Ownership (TCO) is a crucial factor that must be considered. To maintain a favorable TCO, various measures must be taken, and there are numerous online discussions available on cost optimization.<!--more--><\/p>\n<p>In this article, we will explore one method of maintaining a reasonable number of worker nodes by adjusting application requests. In Kubernetes, the request and limit features are utilized to manage resources efficiently. By specifying resource requests for containers in a Pod, the kube-scheduler can determine which node to allocate the Pod to.<\/p>\n<p><span style=\"font-size: 1rem;\">Request configuration is crucial for cost optimization. If requests are set too high, nodes may be provisioned to allocate PODs with excessive resource requests, leading to the wastage of compute resources and a loss of money for the cloud provider.<\/span><\/p>\n<div class=\"flex-1 overflow-hidden\">\n<div class=\"react-scroll-to-bottom--css-qyoew-79elbk h-full dark:bg-gray-800\">\n<div class=\"react-scroll-to-bottom--css-qyoew-1n7m0yu\">\n<div class=\"flex flex-col items-center text-sm dark:bg-gray-800\">\n<div class=\"group w-full text-gray-800 dark:text-gray-100 border-b border-black\/10 dark:border-gray-900\/50 bg-gray-50 dark:bg-[#444654]\">\n<div class=\"text-base gap-4 md:gap-6 md:max-w-2xl lg:max-w-xl xl:max-w-3xl p-4 md:py-6 flex lg:px-0 m-auto\">\n<div class=\"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]\">\n<div class=\"flex flex-grow flex-col gap-3\">\n<div class=\"min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>In many articles on cost optimization, the resource aspect is often overlooked. It is necessary to review the resources allocated, requested, and utilized for Namespaces in your Kubernetes cluster. However, doing this manually can be a tedious process. Fortunately, all of this information can be obtained from metrics, and dashboards can be created to display this data.<\/p>\n<p>We will cover the following in this article:<\/p>\n<ol>\n<li>A Grafana dashboard that provides an overview of overall CPU\/memory\/ephemeral disk usage in your K8s cluster.<\/li>\n<li>A Grafana dashboard or table that lists current CPU usage, CPU request, current CPU request usage percentage, average CPU request usage percentage, resource limits, etc.<\/li>\n<li>A Grafana dashboard that displays the overall CPU\/memory\/POD usage in your Namespace.<\/li>\n<li>A Grafana dashboard that analyzes the resources used by PODs in a K8s Namespace.<\/li>\n<\/ol>\n<p>Several dashboards are available for this purpose. As part of a recent analysis, I have created three dashboards (L1, L2, and L3) that provide a resource summary of your Kubernetes cluster and Namespace. The L1 dashboard provides an overview, while the L2 and L3 dashboards allow you to drill down for more detailed information.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>At times, we may question the high costs of Cloud providers. However, when constructing infrastructure, the Total Cost of Ownership (TCO) is a crucial factor that must be considered. To maintain a favorable TCO, various measures must be taken, and there are numerous online discussions available on cost optimization. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-9514","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Optimizing application resources in a cost-effective manner in Kubernetes - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Optimizing application resources in a cost-effective manner in Kubernetes - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"At times, we may question the high costs of Cloud providers. However, when constructing infrastructure, the Total Cost of Ownership (TCO) is a crucial factor that must be considered. To maintain a favorable TCO, various measures must be taken, and there are numerous online discussions available on cost optimization. [...]Continue Reading...\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"Optimizing application resources in a cost-effective manner in Kubernetes\",\"datePublished\":\"2023-04-05T07:26:24+00:00\",\"dateModified\":\"2023-04-05T07:31:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\"},\"wordCount\":343,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\",\"name\":\"Optimizing application resources in a cost-effective manner in Kubernetes - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"datePublished\":\"2023-04-05T07:26:24+00:00\",\"dateModified\":\"2023-04-05T07:31:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Optimizing application resources in a cost-effective manner in Kubernetes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Optimizing application resources in a cost-effective manner in Kubernetes - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/","twitter_card":"summary_large_image","twitter_title":"Optimizing application resources in a cost-effective manner in Kubernetes - cPanel Plesk","twitter_description":"At times, we may question the high costs of Cloud providers. However, when constructing infrastructure, the Total Cost of Ownership (TCO) is a crucial factor that must be considered. To maintain a favorable TCO, various measures must be taken, and there are numerous online discussions available on cost optimization. [...]Continue Reading...","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"Optimizing application resources in a cost-effective manner in Kubernetes","datePublished":"2023-04-05T07:26:24+00:00","dateModified":"2023-04-05T07:31:56+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/"},"wordCount":343,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/","url":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/","name":"Optimizing application resources in a cost-effective manner in Kubernetes - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"datePublished":"2023-04-05T07:26:24+00:00","dateModified":"2023-04-05T07:31:56+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/optimizing-application-resources-in-a-cost-effective-manner-in-kubernetes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Optimizing application resources in a cost-effective manner in Kubernetes"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=9514"}],"version-history":[{"count":4,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9514\/revisions"}],"predecessor-version":[{"id":9518,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/9514\/revisions\/9518"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=9514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=9514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=9514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}