Kubernetes set-up on ubuntu on Google compute
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.
Introduction
Kubernetes is an open-source platform designed for automating deployment, scaling, and operation of application containers. Running Kubernetes on Google Compute Engine (GCE) is a popular choice due to its flexibility and powerful features. This guide will walk you through setting up Kubernetes on an Ubuntu server hosted on Google Cloud Platform (GCP).
Prerequisites
Before we dive into the setup process, ensure you have the following prerequisites:
- Google Cloud Account: A valid Google Cloud account with billing enabled.
- Google Cloud SDK: Installed and configured locally for interacting with GCP.
- Basic Linux and Kubernetes Knowledge: Familiarity with command-line operations and basic Kubernetes concepts.
- Ubuntu VM Instance: A virtual machine instance running Ubuntu 18.04 LTS or later.
Setting Up Kubernetes on Ubuntu
Step 1: Set Up Google Compute Engine
- Create a Google Cloud Project: Start by creating a new project in the Google Cloud Console.
- Enable Billing: Make sure that billing is enabled for your project.
- Enable Required APIs:
- Compute Engine API
- Kubernetes Engine API
To enable these APIs, use the following commands in your terminal:
- Image: Ubuntu 18.04 LTS
- Machine Type: e2-medium or higher
- Firewall: Allow HTTP and HTTPS
Related reading
- Kubernetes set service annotation value dynamically
- Kubernetes, simple SpringBoot app OOMKilled
- kubernetes Single service definition with multiple pod selectors
- Kubernetes size definitions What's the difference of Gi and G?
- Kubernetes storageClass for Postgresql database
- Kubernetes support for Internal Load Balancers in AWS
- kubernetes slaves cannot register to jenkins master
- Kubernetes version installed by minikube

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseTrack what you have practised
A free account saves your progress, solutions and study plan across every problem on Codemia.
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.