GKE Cost Optimization with Kaslin Fields and Anthony Bushong

Google Cloud Platform Podcast

Episode | Podcast

Date: Wed, 24 Mar 2021 00:00:00 +0000

<p>This week on the podcast, fellow Googlers <a href="https://twitter.com/kaslinfields">Kaslin Fields</a> and <a href="https://twitter.com/agmsbush">Anthony Bushong</a> chat with hosts <a href="https://twitter.com/markmirch">Mark Mirchandani</a> and <a href="https://twitter.com/stephr_wong">Stephanie Wong</a> about how to optimize your spending with Google Kubernetes Engine.</p> <p>Cost optimization doesn’t necessarily mean lower costs, Kaslin explains. It means running your application the best possible way and accommodating things like traffic spikes while keeping costs as low as possible. As our guests tell us, standard best practices can aid in optimization, but when it comes to efficiently running on a budget, there are more tips and tricks available in GKE. One of GKE’s newest operation modes, Autopilot, means Kubernetes nodes are now managed by Google. Customers pay by the pod so the focus can be on the application rather than the details of clusters and their optimization. Best practices for resource utilization and autoscaling are included with Autopilot.</p> <p>Kaslin and Anthony break up Google’s GKE cost optimization tips into four categories: multi-tenancy, autoscaling, infrastructure choice, and workload best practices and tell us how company culture effects these decisions. Proper education around Kubernetes and GKE specifically is the first step to using resources the most efficiently, Anthony tells us. Keeping tenants separate and resources well managed on multi-tenant clusters is made easier with Namespaces. Scaling pods and the infrastructure around them is an important part of optimization as well, and Anthony helps us understand the best practices for fine tuning the autoscaling features in GKE. Scaling infrastructure to handle spikes or lulls is an automatic feature with Autopilot, helping projects run smoothly. To control workloads efficiency, GKE now offers a host of features, including horizontal, vertical, and multidimensional pod autoscaling.</p> <p>Later, we walk through the steps for implementing some of these optimizations decisions while keeping your application running. GKE Usage Metering is a useful tool for measuring tenant usage in a cluster so resource distribution can be managed easier.</p> <h5 id="kaslin-fields">Kaslin Fields</h5> <p><a href="https://twitter.com/kaslinfields">Kaslin</a> is a Developer Advocate at Google Cloud where she focuses on Google Kubernetes Engine.</p> <h5 id="anthony-bushong">Anthony Bushong</h5> <p><a href="https://twitter.com/agmsbush">Anthony</a> is a Specialist Customer Engineer at Google Cloud, where he focuses on Kubernetes.</p> <h5 id="cool-things-of-the-week">Cool things of the week</h5> <ul> <li>A2 VMs now GA—the largest GPU cloud instances with NVIDIA A100 GPUs <a href="https://cloud.google.com/blog/products/compute/a2-vms-with-nvidia-a100-gpus-are-ga"> blog</a></li> <li>How carbon-free is your cloud? New data lets you know <a href="https://cloud.google.com/blog/topics/sustainability/sharing-carbon-free-energy-percentage-for-google-cloud-regions"> blog</a> <ul> <li>Our third decade of climate action: Realizing a carbon-free future <a href="https://blog.google/outreach-initiatives/sustainability/our-third-decade-climate-action-realizing-carbon-free-future/"> blog</a></li> </ul> </li> </ul> <h5 id="interview">Interview</h5> <ul> <li>Kubernetes <a href="https://kubernetes.io">site</a></li> <li>GKE <a href="https://cloud.google.com/kubernetes-engine">site</a></li> <li>Best practices for running cost-optimized Kubernetes applications on GKE <a href="https://cloud.google.com/solutions/best-practices-for-running-cost-effective-kubernetes-applications-on-gke"> docs</a></li> <li>Docker <a href="https://www.docker.com">site</a></li> <li>Autopilot overview <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/autopilot-overview"> docs</a></li> <li>Namespaces <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"> docs</a></li> <li>Kubernetes best practices: Organizing with Namespaces <a href="https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-organizing-with-namespaces"> blog</a></li> <li>Optimize cost to performance on Google Kubernetes Engine <a href="https://www.youtube.com/watch?v=ry7XfEHivgE">video</a></li> <li>Using node auto-provisioning <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning"> docs</a></li> <li>Scaling workloads across multiple dimensions in GKE <a href="https://cloud.google.com/blog/topics/developers-practitioners/scaling-workloads-across-multiple-dimensions-gke"> blog</a></li> <li>Enabling GKE usage metering <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-usage-metering#enabling"> docs</a></li> <li>Kubernetes in Google Cloud Qwiklabs <a href="https://www.qwiklabs.com/quests/29">site</a></li> <li>Kubernetes Engine Qwiklabs <a href="https://www.qwiklabs.com/focuses/878?parent=catalog">site</a></li> <li>Cloud Operations for GKE Qwiklabs <a href="https://www.qwiklabs.com/focuses/5157?parent=catalog">site</a></li> <li>Earn the new Google Kubernetes Engine skill badge for free <a href="https://cloud.google.com/blog/topics/training-certifications/how-to-get-the-new-optimize-costs-for-google-kubernetes-engine-skills-badge?utm_campaign=CDR_kas_GCP_earnkubernetesengine_031721"> blog</a></li> <li>Beyond Your Bill <a href="https://www.youtube.com/playlist?list=PLIivdWyY5sqKJx6FwJMRcsnFIkkNFtsX9"> videos</a></li> <li>Cloud On Air Webinar: Hands-on Lab: Optimizing Your Costs on Google Kubernetes Engine <a href="https://cloudonair.withgoogle.com/events/multi-cloud-challenge">site</a></li> <li>Cloud OnBoard <a href="https://cloud.google.com/training/cloudonboard">site</a></li> <li>Adopting Kubernetes with Spotify <a href="https://www.youtube.com/watch?v=eFE-X8FlyLQ">video</a></li> </ul>