Jump to content

How to use Ubuntu in GKE on nodes and in containers


Recommended Posts

Google Kubernetes Engine (GKE) traces its roots back to Google’s development of Borg in 2004, a Google internal system managing clusters and applications. In 2014, Google introduced Kubernetes, an open-source platform based on Borg’s principles, gaining rapid popularity for automating containerized application deployment. In 2015, Google launched GKE, a managed Kubernetes service on Google Cloud Platform (GCP), streamlining infrastructure management for users. Over the years, GKE saw substantial growth, introducing Autopilot mode in 2017 and surpassing 2 million managed clusters by 2019. Throughout 2020 and 2021, GKE continued evolving with features like Workload Identity and Anthos Config Management, aiding in access management and configurations. In 2022, GKE maintained its status as a leading managed Kubernetes platform, introducing innovations like Anthos Service Mesh and Anthos Multi-Cluster Ingress. GKE’s trajectory underscores the significance of containerization and cloud-native tech, poised to further empower the development, deployment, and management of modern applications amidst growing industry adoption.

Ubuntu can be used as the base operating system for GKE nodes, and GKE can be used to deploy and manage containerized applications on Ubuntu nodes.

Here are some of the benefits of using Ubuntu and GKE together:

  • Flexibility: Ubuntu can be used with a variety of Kubernetes distributions, so developing teams will have a standardized experience across multiple cloud, such as Azure Kubernetes Service (AKS) and Amazon EKS.
  • Secure. Timely updates and patches, building on Ubuntu’s security track record.
  • Stable. Long-term support with a consistent, predictable lifecycle and support commitment. Each GKE version has a customized version of Ubuntu that support its latest features.
  • Seamless. Developer-friendly, smooth experience from development to production.
  • Small. Ultra-small, resource-efficient, yet robust images with chiselled (distroless) Ubuntu.

Let’s go through the steps you need to deploy Ubuntu nodes in GKE.

  1. In Google Cloud Console, locate Kubernetes Engine:
E54lnBMGcjki-LxgtM65s0QmGaBUBcEd4IP-dZCL
  1. In “Clusters”, click CREATE:
    DZ7g7qJ7fh6v8tiNf4E30ZRUpCaH5MrvG0Kxn23g
  2. Choose “Standard: You manage your cluster” in the pop-up window:
    Q8wVPCiEnrGMIasdUdnb683PZv9vs9TYdr2DQIgy
  3. In the left of the console, click “default-pool”:
    ntLeilo9Ik3ySiC2UeUKJ9UI-cSFmrsOqVBrcuil
  4. Click “Nodes”:
    EfThTVtQKsB85zGC3_ymbn_801y5CpxhuwE51W0A
  5. Find “Ubuntu with containerd (ubuntu_containerd)” in “Image type” drop-down menu:
    EWu8I0QwyMdetpygDYfTjb3Or8U34l4fxqyINnRh
  6. Choose “Ubuntu with containerd (ubuntu_containerd)” and Click “CREATE” at the bottom:
    G0bMgjZZyf4rOvWFayVzCBjt0ZAiMQylUjvhBTym
  7. Once the cluster is running, you can check “OS image” in the “Node details”:
    s3iRFR3dMEBNWtQflv63m8H9DKB14o0plVl9qtmD

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...