{"id":9255,"date":"2021-05-30T14:29:16","date_gmt":"2021-05-30T14:29:16","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=9255"},"modified":"2024-03-21T11:18:14","modified_gmt":"2024-03-21T11:18:14","slug":"configuring-and-expanding-gke-clusters","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/","title":{"rendered":"Configuring and Expanding GKE Clusters."},"content":{"rendered":"\r\n<h2><span data-sheets-root=\"1\" data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Best practices for GKE cluster configuration&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:513,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0}\">Best practices for GKE cluster configuration<\/span><\/h2>\r\n<p>&nbsp;<\/p>\r\n<p>Configuring Google Kubernetes Engine (GKE) clusters effectively is essential for optimizing performance, reliability, and security in Kubernetes-based environments. Best practices for GKE cluster configuration encompass a set of guidelines, recommendations, and techniques aimed at ensuring the stability, scalability, and efficiency of Kubernetes clusters within Google Cloud Platform (GCP).<\/p>\r\n<p>At the core of GKE cluster configuration best practices is defining cluster attributes such as node pools, networking, security policies, and add-on features to align with workload requirements and operational objectives. This involves carefully selecting node types, machine configurations, and autoscaling settings to optimize resource utilization and cost efficiency.<\/p>\r\n<p><strong>Prerequisites<\/strong><\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/www.prwatech.com\/course\/gcptraining\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/www.prwatech.com\/course\/gcptraining\">GCP<\/a> <a href=\"https:\/\/prwatech.in\/blog\/\">account<\/a><\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"><strong>Running GPUs<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>To see GPUs available in your zone<\/p>\r\n\r\n\r\n\r\n<p>$\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gcloud compute accelerator-types list<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"628\" height=\"310\" class=\"wp-image-9256\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556-300x148.png 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In Cluster, Click Add Node Pool.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"329\" class=\"wp-image-9257\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-557.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-557.png 605w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-557-300x163.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Give the name for pool.<\/p>\r\n\r\n\r\n\r\n<p>Choose the node version.<\/p>\r\n\r\n\r\n\r\n<p>Choose the size of pool and Click Enable Autoscaling.<\/p>\r\n\r\n\r\n\r\n<p>In Automation, Enable auto-upgrade and Enable auto repair.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"697\" class=\"wp-image-9258\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-558.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-558.png 528w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-558-227x300.png 227w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Choose the OS for nodes.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"197\" class=\"wp-image-9259\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-559.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-559.png 441w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-559-300x134.png 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In Machine Configuration, Click on GPU.<\/p>\r\n\r\n\r\n\r\n<p>Choose the GPU type for node pool and give number of GPU<\/p>\r\n\r\n\r\n\r\n<p>Click Enable Virtual Workstation and Tick I understand the limitations.<\/p>\r\n\r\n\r\n\r\n<p>Choose the machine configuration for nodes as per your requirement. Click Create. The GPU pool will be created.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"702\" class=\"wp-image-9260\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-560.png\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-560.png 484w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-560-207x300.png 207w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Using Shell.<\/p>\r\n\r\n\r\n\r\n<p>$\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gcloud container node-pools create gpu-pool &#8211;accelerator type=nvidia-tesla-p4,count=1 &#8211;zone us-central1-c &#8211;cluster gke-cluster-1 &#8211;num-nodes 2 &#8211;min-nodes 0 &#8211;max-nodes 3 &#8211;enable-autoscaling&#8211;machine-type n1-standard-1<\/p>\r\n\r\n\r\n\r\n<p>It will create gpu node pools with 2 nodes in cluster.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9262\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/49-1024x172.jpg\" alt=\"\" width=\"903\" height=\"151\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/49-1024x172.jpg 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/49-300x50.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/49-768x129.jpg 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/49-1200x201.jpg 1200w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/49.jpg 1287w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/figure>\r\n","protected":false},"excerpt":{"rendered":"<p>Best practices for GKE cluster configuration &nbsp; Configuring Google Kubernetes Engine (GKE) clusters effectively is essential for optimizing performance, reliability, and security in Kubernetes-based environments. Best practices for GKE cluster configuration encompass a set of guidelines, recommendations, and techniques aimed at ensuring the stability, scalability, and efficiency of Kubernetes clusters within Google Cloud Platform (GCP). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1639],"tags":[605,699,700,1476,1452,617,683,684,685,611,1400,692,1478,1453],"class_list":["post-9255","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","category-kubernetes","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gke","tag-gke-cluster","tag-google-cloud","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-platform-tutorial","tag-google-cloud-training","tag-gpu-cluster","tag-kubernetes"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Best practices for GKE cluster configuration - Prwatech<\/title>\n<meta name=\"description\" content=\"Master Best Practices for GKE Cluster Configuration - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best practices for GKE cluster configuration - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Master Best Practices for GKE Cluster Configuration - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-30T14:29:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-21T11:18:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/\",\"name\":\"Best practices for GKE cluster configuration - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png\",\"datePublished\":\"2021-05-30T14:29:16+00:00\",\"dateModified\":\"2024-03-21T11:18:14+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Master Best Practices for GKE Cluster Configuration - Dive deep with our expert instructors and comprehensive curriculum.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png\",\"width\":628,\"height\":310},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring and Expanding GKE Clusters.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Best practices for GKE cluster configuration - Prwatech","description":"Master Best Practices for GKE Cluster Configuration - Dive deep with our expert instructors and comprehensive curriculum.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Best practices for GKE cluster configuration - Prwatech","og_description":"Master Best Practices for GKE Cluster Configuration - Dive deep with our expert instructors and comprehensive curriculum.","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2021-05-30T14:29:16+00:00","article_modified_time":"2024-03-21T11:18:14+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/","name":"Best practices for GKE cluster configuration - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png","datePublished":"2021-05-30T14:29:16+00:00","dateModified":"2024-03-21T11:18:14+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Master Best Practices for GKE Cluster Configuration - Dive deep with our expert instructors and comprehensive curriculum.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-556.png","width":628,"height":310},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/kubernetes\/configuring-and-expanding-gke-clusters\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Configuring and Expanding GKE Clusters."}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=9255"}],"version-history":[{"count":4,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9255\/revisions"}],"predecessor-version":[{"id":11081,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/9255\/revisions\/11081"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=9255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=9255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=9255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}