Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions docs/install/Knative-with-MicroK8s.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: "Install on MicroK8s"
linkTitle: "MicroK8s"
weight: 10
type: "docs"
---

[MicroK8s](https://microk8s.io) is a lightweight, powerful fully-conformant Kubernetes that tracks upstream releases and makes clustering trivial. It can run on any flavor of Linux that supports [Snap](https://snapcraft.io) packages. It can run on Windows and Mac OS using [Mutlipass](https://multipass.run).
This guide walks you through the installation of Knative using MicroK8s.

If you need help or support please reach out on the [Kubernetes forum](https://discuss.kubernetes.io/tags/microk8s) or Kubernetes.slack.com channel #microk8s.
Additionally if you wish to contribute or report an issue please visit [MicroK8s Github](https://github.com/ubuntu/microk8s).

You can find [guides for other platforms here](./README.md).

### Install MicroK8s

```shell
sudo snap install --classic microk8s
```

## Alias MicroK8s kubectl for convenience

```shell
sudo snap alias microk8s.kubectl kubectl
```

## Enable Knative

```shell
echo 'N;' | microk8s.enable knative
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a description of what gets installed and which version. This feels a bit too magical with little information

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 It would be great to know what version gets installed and how this will be kept up-to-date.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ammarn911 Can you explicitly list what gets installed with this command? With that change, I'll be able to approve and LGTM this so it merges.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samodell done. Added what gets installed; Knative Serving v0.7.1 and Knative Eventing v0.7.1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ammarn911 do you know if these versions are updated and reflect the current versions?
I am working on #1850 so I was wondering if you can confirm whether we can remove mention of the versions or not.
Thanks! 🙂

This command will install Knative Serving version 0.7.1 and Eventing version 0.7.1 components.

NOTE: As of this writing, MicroK8s comes with version 0.7.1, this doc will be updated to reflect versioning changes.

You can check the status of Knative pods using the following commands:

```shell
kubectl get pods -n knative-serving
```

```shell
kubectl get pods -n knative-eventing
```

```shell
kubectl get pods -n knative-monitoring
```

## Cleaning up

Knative can be removed from MicroK8s using the following command:

```shell
sudo microk8s.disable knative
```

To delete MicroK8s along with Knative, Istio, and any deployed apps run:

```shell
sudo snap remove microk8s
```