{% extends "kubernetes/base_kubernetes.html" %} {% block title %}Install Kubernetes{% endblock %} {% block meta_description %} A step-by-step installation guide to Kubernetes on your software defined infrastructure. {% endblock meta_description %} {% block meta_copydoc %} https://docs.google.com/document/d/1oiD6UUomf2daZitS3UOosujYBXPbiOMzPtXVZBq-ph0/edit {% endblock meta_copydoc %} {% block content %}

Install Kubernetes

Canonical Kubernetes is pure upstream and works on any cloud, from bare metal to public and edge. Deploy single node and multi-node clusters with Charmed Kubernetes and MicroK8s to support container orchestration, from testing to production. Both distributions bring the latest innovations from the Kubernetes community within a week of upstream release, allowing for time to learn, experiment and upskill.

Try Kubernetes as a service Get support for Kubernetes

{{ image(url="https://assets.ubuntu.com/v1/0822f908-kubernetes-instal.svg", alt="Install Kubernetes", width="140", height="188", hi_def=True, loading="lazy",) | safe }}

How to deploy Kubernetes

Canonical helps you be successful with Kubernetes, starting from where you want to deploy it and how you intend to use it.

Self-managed deployments give you greater control on Kubernetes infrastructure, from cloud to edge. Canonical Managed Kubernetes provides a hands-off experience with great economics.

Product Infrastructure Use case Enterprise Support Managed Kubernetes
MicroK8s
  • Laptops (Linux, Windows, macOS)
  • Workstations
  • Edge/Micro clouds
  • IoT devices
  • Opinionated Kubernetes
  • Small to medium clusters
  • CI/CD pipelines
{{ image(url="https://assets.ubuntu.com/v1/f1a7515d-tick-darkaubergine.svg", alt="", width="14", hi_def=True, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/f1a7515d-tick-darkaubergine.svg", alt="", width="14", hi_def=True, loading="lazy") | safe }}
Charmed Kubernetes
  • Bare metal
  • Private clouds
  • Public clouds
  • Hybrid clouds
  • Configurable Kubernetes
  • Medium to large clusters
{{ image(url="https://assets.ubuntu.com/v1/f1a7515d-tick-darkaubergine.svg", alt="", width="14", hi_def=True, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/f1a7515d-tick-darkaubergine.svg", alt="", width="14", hi_def=True, loading="lazy") | safe }}
Cloud Hosted (i)
  • Public clouds
  • Traffic peaks
{{ image(url="https://assets.ubuntu.com/v1/f1a7515d-tick-darkaubergine.svg", alt="", width="14", hi_def=True, loading="lazy") | safe }} Provided by the clouds
Kubeadm
  • Bare metal
  • Private clouds
  • Edge/Micro clouds
  • DIY Kubernetes
{{ image(url="https://assets.ubuntu.com/v1/f1a7515d-tick-darkaubergine.svg", alt="", width="14", hi_def=True, loading="lazy") | safe }} -

(i). Use Ubuntu’s platform to run worker nodes on all public clouds (AKS, EKS, and GKE)

Looking for help running Kubernetes? Get in touch ›

How to install Kubernetes

Single node Kubernetes with MicroK8s

MicroK8s installs a single node, CNCF-certified Kubernetes cluster in seconds

MicroK8s is a lightweight, zero-ops Kubernetes for Linux, Windows and macOS. A single command installs all upstream Kubernetes services and their dependencies. With support for x86 and ARM64, MicroK8s runs from local workstations to the edge and IoT appliances.

Learn more about Microk8s

{{ image(url="https://assets.ubuntu.com/v1/dc735dc5-single-line-install.svg", alt="", width="300", hi_def=True, loading="lazy") | safe }}
Select platform for install steps
{{ image(url="https://assets.ubuntu.com/v1/53c3be42-linuc-logo.svg", alt="", width="60", hi_def=True, attrs={"style": "margin-top: 1rem"}, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/11ecbd2d-2018-logo-windows.svg", alt="", width="100", hi_def=True, attrs={"style": "margin-top: 1rem"}, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/236f314d-macos.svg", alt="", width="100", hi_def=True, attrs={"style": "margin-top: 1rem"}, loading="lazy") | safe }}
{% include "/kubernetes/_install-linux.html" %}
{% include "/kubernetes/_install-windows.html" %}
{% include "/kubernetes/_install-macos.html" %}

Multi-node clusters

Charmed Kubernetes installs CNCF-certified Kubernetes clusters across clouds

Charmed Kubernetes is a fully automated, model-driven approach to installing and managing Kubernetes from bare-metal to the cloud. Build your Kubernetes cloud from the ground up, integrate it with your favorite tools, and create multi-cloud topologies.

Learn more about Charmed Kubernetes ›

{{ image(url="https://assets.ubuntu.com/v1/90155bc0-Multi-node_K8s_installation-02.svg", alt="", width="250", hi_def=True, loading="lazy") | safe }}
Select platform for install steps
{{ image(url="https://assets.ubuntu.com/v1/ac9a0e00-lxd_primary.svg", alt="", width="100", hi_def=True, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/a82add58-profile-aws.svg", alt="", width="76", hi_def=True, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/e3914def-partner-logo-azure.svg", alt="", width="100", hi_def=True, loading="lazy") | safe }} {{ image(url="https://assets.ubuntu.com/v1/6e176d9a-Google+Cloud+stacked.svg", alt="", width="100", hi_def=True, loading="lazy") | safe }}
{% include "/kubernetes/_install-lxd.html" %}
{% include "/kubernetes/_install-aws.html" %}
{% include "/kubernetes/_install-azure.html" %}
{% include "/kubernetes/_install-google.html" %}

Multi-node, highly available Kubernetes with MicroK8s

To create a cluster out of two or more already-running MicroK8s instances, use the microk8s add-node command. As of MicroK8s 1.19, clustering of three or more nodes will automatically enable high availability.

The MicroK8s instance on which the command is run will host the Kubernetes control plane:

microk8s add-node

The add-node command prints a microk8s join command which should be executed on the MicroK8s instance(s) that you wish to join to the cluster (NOT THE NODE YOU RAN add-node FROM). For example:

microk8s join ip-172-31-20-243:25000/DDOkUupkmaBezNnMheTBqFYHLWINGDbf

Joining a node to the cluster should only take a few seconds. Afterwards you should be able to see the node has joined:

microk8s kubectl get no

Learn more about MicroK8s clustering

Read the docs

{{ image(url="https://assets.ubuntu.com/v1/5edefef9-Datasheet.svg", alt="", width="32", height="28", hi_def=True, loading="lazy", attrs={"class": "p-heading-icon__img"},) | safe }}

Charmed Kubernetes

If you want to know more about our enterprise multi-cloud Kubernetes read the Charmed Kubernetes documentation ›

{{ image(url="https://assets.ubuntu.com/v1/5edefef9-Datasheet.svg", alt="", width="32", height="28", hi_def=True, loading="lazy", attrs={"class": "p-heading-icon__img"},) | safe }}

MicroK8s

Are you a developer looking to quickly run local K8s clusters or an enterprise looking for K8s at the edge? Read the MicroK8s documentation

{{ image(url="https://assets.ubuntu.com/v1/5edefef9-Datasheet.svg", alt="", width="32", height="28", hi_def=True, loading="lazy", attrs={"class": "p-heading-icon__img"},) | safe }}

Juju

Curious to learn about our Charmed Operators and how they automate DevOps and application lifecycle tasks? Browse through the Charmed OLM documentation

Kubernetes resources

{{ image(url="https://assets.ubuntu.com/v1/271921af-Datasheet+-+white.svg", alt="", width="32", height="28", hi_def=True, loading="lazy", attrs={"class": "p-heading-icon__img"},) | safe }}

Data Sheet

Kubernetes for the enterprise

{{ image(url="https://assets.ubuntu.com/v1/816ae23b-Webinar+-+white.svg", alt="", width="32", height="28", hi_def=True, loading="lazy", attrs={"class": "p-heading-icon__img"},) | safe }}

Industry Report

The Kubernetes and cloud native operations report 2021

{{ image(url="https://assets.ubuntu.com/v1/4ab8ff35-Whitepaper+-+white.svg", alt="", width="32", height="28", hi_def=True, loading="lazy", attrs={"class": "p-heading-icon__img"},) | safe }}

Whitepaper

Five strategies to accelerate Kubernetes deployment in the enterprise

Find more resources ›

{{ image(url="https://assets.ubuntu.com/v1/c4b290c8-Contact+us.svg", alt="", width="280", height="199", hi_def=True, loading="lazy",) | safe }}

Need more help?

Let our Kubernetes experts help you take the next step.

Contact us

{% with first_item="_cloud_bootstack", second_item="_cloud_ubuntu_advantage", third_item="_cloud_further_reading" %} {% include "shared/contextual_footers/_contextual_footer.html" %} {% endwith %}
{% endblock content %} {% block footer_extra %} {% endblock footer_extra %}