Skip to content

Commit 4270b17

Browse files
ammarn911knative-prow-robot
authored andcommitted
Create Knative-with-MicroK8s.md (#1747)
* Create Knative-with-MicroK8s.md * Knative-with-MicroK8s.md Doc edits Addressing suggestions. * Updating Knative-with-MicroK8s.md Addressing suggestions. * Updating Knative-with-MicroK8s.md Better version info and delete command * Updating Knative-with-MicroK8s.md Adding lines of communication for support/contributing. * Update Knative-with-MicroK8s.md Addressing suggestions.
1 parent 61d24a1 commit 4270b17

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: "Install on MicroK8s"
3+
linkTitle: "MicroK8s"
4+
weight: 10
5+
type: "docs"
6+
---
7+
8+
[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).
9+
This guide walks you through the installation of Knative using MicroK8s.
10+
11+
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.
12+
Additionally if you wish to contribute or report an issue please visit [MicroK8s Github](https://github.com/ubuntu/microk8s).
13+
14+
You can find [guides for other platforms here](./README.md).
15+
16+
### Install MicroK8s
17+
18+
```shell
19+
sudo snap install --classic microk8s
20+
```
21+
22+
## Alias MicroK8s kubectl for convenience
23+
24+
```shell
25+
sudo snap alias microk8s.kubectl kubectl
26+
```
27+
28+
## Enable Knative
29+
30+
```shell
31+
echo 'N;' | microk8s.enable knative
32+
```
33+
This command will install Knative Serving version 0.7.1 and Eventing version 0.7.1 components.
34+
35+
NOTE: As of this writing, MicroK8s comes with version 0.7.1, this doc will be updated to reflect versioning changes.
36+
37+
You can check the status of Knative pods using the following commands:
38+
39+
```shell
40+
kubectl get pods -n knative-serving
41+
```
42+
43+
```shell
44+
kubectl get pods -n knative-eventing
45+
```
46+
47+
```shell
48+
kubectl get pods -n knative-monitoring
49+
```
50+
51+
## Cleaning up
52+
53+
Knative can be removed from MicroK8s using the following command:
54+
55+
```shell
56+
sudo microk8s.disable knative
57+
```
58+
59+
To delete MicroK8s along with Knative, Istio, and any deployed apps run:
60+
61+
```shell
62+
sudo snap remove microk8s
63+
```

0 commit comments

Comments
 (0)