CAST AI vs. GKE Autopilot: Where to manage Kubernetes on GKE?
Tags: kubernetes, devops, cloud, googlecloud
Published: 2021-10-29 07:45:05

<!-- wp:paragraph -->
<p><strong>Bonus content:<a href="#pricingsimulation"> Detailed simulation of cluster costs with CAST AI vs. GKE Autopilot</a></strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Running Kubernetes is a complex task, but luckily teams using Google Cloud Platform can choose from a few solutions that make the job easier.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Let’s take a closer look at two of them - CAST AI and the GKE Autopilot mode - to see which one is a better fit for efficient teams looking to automate their Kubernetes workloads and cut cloud costs.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>TL;DR</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>CAST AI is a great serverless option for Kubernetes, it simplifies Kubernetes for both convenience and cost. CAST AI also <strong>reduces cloud expenses</strong> by at least 50%.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><br>Autopilot is a great serverless option for Kubernetes, it simplifies Kubernetes for convenience. But it’s not free and <strong>comes with a cost increase</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:html -->
<br>
<!-- /wp:html -->

<!-- wp:tadv/classic-paragraph -->
<table>
<tbody>
<tr>
<td>
<p><span style="font-size: 24px;"><b>CAST AI - full-scale GKE automation and cost optimization</b></span></p>
</td>
<td>
<p><span style="font-size: 24px;"><b>GKE Autopilot - cluster automation for a hands-off GKE experience</b></span></p>
</td>
</tr>
<tr>
<td>
<p><span style="font-weight: 400;">CAST AI is cloud-native platform that automatically analyzes, monitors, and optimizes Kubernetes environments. Companies across e-commerce and adtech use CAST AI to cut their cloud bills by 50% to even 90%.</span></p>
</td>
<td>
<p><span style="font-weight: 400;">GKE Autopilot is one of the two modes of operation GKE offers to its users. In Autopilot, the provider both provisions and manages the cluster's underlying infrastructure to optimize the clusters running in GKE.</span></p>
</td>
</tr>
</tbody>
</table>
<!-- /wp:tadv/classic-paragraph -->

<!-- wp:heading -->
<h2>CAST AI vs. Google Autopilot - quick feature comparison</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":4223,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://cast.ai/wp-content/uploads/2021/10/Feature-Comparison.jpg" alt="CAST AI vs. GKE Autopilot" class="wp-image-4223"/></figure>
<!-- /wp:image -->

<!-- wp:heading -->
<h2>Detailed feature comparison of Google Autopilot and CAST AI</h2>
<!-- /wp:heading -->

<!-- wp:html -->
<ol><li><a href="#observabilityloggingandcostvisibility">Observability, logging, and cost visibility</a></li>
<li><a href="#automatedcostoptimization">Automated cost optimization</a></li>
<li><a href="#preemptibleandspotvmsautomation">Preemptible and Spot VMs automation</a></li>
<li><a href="#fullmulticloudoptimization">Full multi cloud optimization</a></li>
<li><a href="#security">Security</a></li>
<li><a href="#pricing">Pricing</a></li></ol>
<!-- /wp:html -->

<!-- wp:heading -->
<h2 id="observabilityloggingandcostvisibility">1. Observability, logging, and cost visibility</h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3} -->
<h3>Cost visibility</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>CAST AI</strong> divides cloud costs into project, cluster, namespace, and deployment levels. You can track expenses down to individual microservices before calculating the total cost of your cluster.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The solution uses industry-standard metrics that work with any cloud provider, not only Google Cloud Platform.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Cost allocation is also an option in <strong>CAST AI</strong> - it’s done per cluster and per node. The team plans to add features like control plane, network, egress, storage, and other cost dimensions soon.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot</strong> comes with pre-configured use of Cloud Operations for GKE monitoring dashboards. Users can customize the system and workload logging to get the right metrics.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3>Multi cloud metrics</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Many teams use more than one cloud platform today, so multi-cloud support is essential for visibility and optimization.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>CAST AI </strong>comes with a range of multi-cloud capabilities. It works with any cloud service provider and provides cross-cloud visibility thanks to universal metrics from Grafana and Kibana.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot</strong> only displays metrics for clusters running in GKE. If you use Amazon Elastic Kubernetes Service (EKS) or Azure Kubernetes Service (EKS), you won’t be able to compare the metrics from all your clusters in one place.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="automatedcostoptimization">2. Automated cost optimization&nbsp;</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Automated instance selection for best cost/performance</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>CAST AI</strong> selects the most cost-effective instance types and sizes to meet your application's requirements while reducing cloud spending. When a cluster requires more nodes, the automation engine selects the instances with the highest performance at the lowest cost. Engineers don’t need to do anything here because everything is automated.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Since using the same instance shape for every node in a cluster can lead to overprovisioning, <strong>CAST AI</strong> also allows you to create multi-shape clusters. It gives the application the optimal mix of several instance types.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot</strong> uses E2 standard and E2 shared-core machine types that fail to offer an optimal balance between cost and performance. These instances are overcommitted, shared-core, and latency insensitive. <strong>GKE Autopilot </strong>also<strong> </strong>doesn't offer multi-shape clusters. GKE Autopilot <strong>doesn’t allow you to use GPU instances</strong> or multi-shape clusters.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Horizontal and vertical pod autoscaling&nbsp;</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>CAST AI </strong>automates pod scaling parameters to help companies reduce cloud waste. The Horizontal Pod Autoscaler determines the correct number of pod instances based on business KPIs. If no work needs to be done, the platform decreases the replica count of pods until it reaches 0 and then removes all pods.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>CAST AI </strong>also ensures that the number of nodes in use is always adequate for the application's needs, scaling nodes up and down dynamically.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot </strong>automatically scales cluster resources based on the user’s pod specifications, but users need to configure Horizontal and Vertical Pod Autoscalers on their own. You can implement Horizontal pod autoscaling to automatically increase or decrease the number of pods via the standard Kubernetes CPU or memory metrics, or with custom metrics in Cloud Monitoring.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Note that <strong>GKE Autopilot </strong>is not a suitable solution for very small pods since the minimum is 0.25 CPU and 0.5GB RAM per pod. Tailoring with the VPA exact requirements is challenging as well since 0.25CPU is used as the increment - you can't assign 0.66 CPUs to the pod because only values like 0.5 or 0.75 CPUs are allowed.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="preemptibleandspotvmsautomation">3. Preemptible and Spot VMs automation</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When compared to pay-as-you-go VM instances, Preemptible VMs instances provide considerable cost savings - up to 91%! But Google Cloud Platform can reclaim these instances at any time. Teams wishing to take advantage of Preemptible VMs need to automate their processes.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In <strong>CAST AI</strong>, the replacement of interrupted Spot VMs is fully automated. Teams no longer need to worry about the capacity of their application running out. The platform continuously looks for the best instance alternatives and spins up new instances in milliseconds to provide high availability.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot</strong> doesn’t support Preemptible VMs at the moment.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="fullmulticloudoptimization">4. Full multi cloud optimization</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>As we enter the era of multi cloud, it's more important than ever to monitor, manage, and optimize cloud costs across providers.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>CAST AI</strong> provides a number of <a href="https://cast.ai/blog/how-to-spin-a-multi-cloud-application-with-cast-ai/">multi cloud</a> capabilities to meet this need:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Active-Active Multi Cloud</strong> - the solution distributes apps and replicates data over many cloud services to ensure that even if one fails, the applications continue to operate, ensuring business continuity.</li><li><strong>Traffic distribution </strong>- CAST AI distributes traffic among all cloud services in use and always picks up and healthy endpoints for global server load balancing.</li><li><strong>Metrics across clouds</strong> - thanks to data from Grafana and Kibana, the platform provides cost allocation insights across cloud services.</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot </strong>doesn’t offer multi cloud support at the moment.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="security">5. Security</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot</strong> comes with a number of security limitations:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>The VMs in Autopilot don’t run in the customer tenancy</strong>, so you don't get the security visibility at the level of the host operating system level. In CAST AI, VMs run inside a customer tenancy or VPC and customers retain full access to the VM host (including security visibility).&nbsp;</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>This point is often overlooked. It’s uncomfortable that – as a DevOps engineer – <strong>you cannot control who else you may share a node with</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It was just a few years ago when sharing the same Intel processors over several VMs resulted in memory leak issues. <a href="https://en.wikipedia.org/wiki/Meltdown_(security_vulnerability)">Meltdown and Spectre vulnerability</a> allowed a rogue process to read all memory, even when it wasn’t authorized to do so.</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>GKE Autopilot clusters don’t support</strong> the Kubernetes <a href="https://kubernetes.io/docs/concepts/policy/pod-security-policy/">PodSecurityPolicy</a>. In GKE versions older than 1.21, OPA Gatekeeper and Policy Controller aren’t supported either.</li></ul>
<!-- /wp:list -->

<!-- wp:list -->
<ul><li>GKE Autopilot <strong>doesn’t support security features </strong>such as binary authorization, Kubernetes Alpha APIs, or legacy authentication options</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p><strong>CAST AI</strong>&nbsp;comes with <a href="https://cast.ai/blog/a-quick-guide-to-data-and-security-in-cast-ai/" target="_blank" rel="noreferrer noopener">a comprehensive set of security</a> features such as encryption at rest/in transit, secrets management, network security, logging, visibility, and more. It provides automatic patching and upgrades to VMs and Kubernetes, so setups are always kept up to date and the chance of errors in your clusters is eliminated.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="pricing">6. Pricing</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>To check for potential savings, users can run the <strong>CAST AI</strong> free Cluster Analyzer. The <a href="https://cast.ai/blog/how-does-the-read-only-cast-ai-agent-work-and-what-data-can-it-read/">read-only agent</a> evaluates their infrastructure and makes specific recommendations free of charge. Users can then implement these results manually or turn automatic cost optimization features on, choosing between two options (both with a free trial): Growth and Enterprise. Cost reductions of at least 50% are guaranteed using CAST AI.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>GKE Autopilot</strong> clusters come at a flat fee of $0.10/h per cluster for every cluster after the free tier, adding to that the CPU, memory, and ephemeral storage compute resources provisioned for the pods. The Autopilot control plane and simple GKE cost $72 per month. But compared to standard GKE, the CPU and RAM costs in Autopilot are double.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For example, an e2-standard-2 machine costs $0.075462 per hour. With Autopilot, the same instance will cost $0.1445536 (calculated for the Northern Virginia region).&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 id="pricingsimulation"><strong>Pricing simulation </strong></h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Here's a pricing simulation that explains the difference between the optimization results from applying CAST AI and GKE Autopilot. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Let's start with a look at GKE Autopilot pricing:</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":4231,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://cast.ai/wp-content/uploads/2021/10/1200x628-Node-Pricing.jpg" alt="CAST AI vs. GKE Autopilot pricing" class="wp-image-4231"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>In this scenario, we have a manually optimized cluster that wastes only 25% of resources. We pay some $20k for the cluster but the actual pod requests amount to c. $15k. By switching to <strong>GKE Autopilot</strong>, the cluster costs rise to almost $30k. If you run the free analysis at <strong>CAST AI</strong> and implement its recommendations manually, you can slash the cost of your GKE cluster by 50%.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":4230,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://cast.ai/wp-content/uploads/2021/10/1200x628-25.jpg" alt="CAST AI vs. GKE Autopilot pricing" class="wp-image-4230"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>What if you're dealing with a much larger waste volume? Using <strong>GKE Autopilot</strong> helps to reduce the costs significantly. But <strong>CAST AI </strong>brings even greater savings, as visualized in this example:</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":4229,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://cast.ai/wp-content/uploads/2021/10/1200x628-75.jpg" alt="CAST AI vs. GKE Autopilot pricing" class="wp-image-4229"/></figure>
<!-- /wp:image -->

<!-- wp:heading -->
<h2>Overall winner: CAST AI</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":4222,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://cast.ai/wp-content/uploads/2021/10/CAST-AI-vs.-GKE-Autopilot.jpg" alt="CAST AI vs. GKE Autopilot" class="wp-image-4222"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Both GKE Autopilot and CAST AI are great solutions for automating many important features of workloads running on GKE.&nbsp;&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>While Google Autopilot offers several helpful automation features, it comes with many limitations. CAST AI provides teams with a rich array of automation features and gives them customization opportunities for more flexibility. By picking the best VMs - including the heavily-discounted Preemptible VMs - CAST AI guarantees cloud cost savings of at least 50%.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Combined with unique multi cloud functionality and cloud-native architecture, this positions CAST AI as the top cloud cost optimization platform.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:html -->
<br>
<div id="wisepops-demo"></div>
<br>
<!-- /wp:html -->

<!-- wp:tadv/classic-paragraph -->
<p><strong>P.S.</strong> If you'd like to start with something more hands-on, <strong>run the free <a href="https://console.cast.ai/?screen_hint=SIGNUP" target="_blank" rel="noreferrer noopener">CAST AI Cost Analyzer</a></strong> to check how much you could save and how to get there.</p>
<!-- /wp:tadv/classic-paragraph -->