From dfa037a7ad0ebf78f9aaee95afce9e931a42b352 Mon Sep 17 00:00:00 2001 From: ammarn911 <49419471+ammarn911@users.noreply.github.com> Date: Wed, 28 Aug 2019 16:36:15 -0500 Subject: [PATCH 1/6] Create Knative-with-MicroK8s.md --- docs/install/Knative-with-MicroK8s.md | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docs/install/Knative-with-MicroK8s.md diff --git a/docs/install/Knative-with-MicroK8s.md b/docs/install/Knative-with-MicroK8s.md new file mode 100644 index 00000000000..d0c91e3d311 --- /dev/null +++ b/docs/install/Knative-with-MicroK8s.md @@ -0,0 +1,56 @@ +--- +title: "Install on MicroK8s" +linkTitle: "MicroK8s" +weight: 10 +type: "docs" +--- + +This guide walks you through the installation of Knative using [MicroK8s](https://microk8s.io). + +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 +``` + +This command will install all available Knative components. + +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-build +``` + +```shell + kubectl get pods -n knative-eventing +``` + +```shell + kubectl get pods -n knative-monitoring +``` + +## Cleaning up + +Delete MicroK8s along with Knative, Istio, and any deployed apps: + +```shell +sudo snap remove microk8s +``` From f546313ef7eb0881f84eec378fa254a8ad6149d4 Mon Sep 17 00:00:00 2001 From: ammarn911 <49419471+ammarn911@users.noreply.github.com> Date: Mon, 9 Sep 2019 12:29:04 -0500 Subject: [PATCH 2/6] Knative-with-MicroK8s.md Doc edits Addressing suggestions. --- docs/install/Knative-with-MicroK8s.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/install/Knative-with-MicroK8s.md b/docs/install/Knative-with-MicroK8s.md index d0c91e3d311..68fca715278 100644 --- a/docs/install/Knative-with-MicroK8s.md +++ b/docs/install/Knative-with-MicroK8s.md @@ -5,7 +5,8 @@ weight: 10 type: "docs" --- -This guide walks you through the installation of Knative using [MicroK8s](https://microk8s.io). +[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. You can find [guides for other platforms here](./README.md). @@ -27,7 +28,7 @@ You can find [guides for other platforms here](./README.md). echo 'N;' | microk8s.enable knative ``` -This command will install all available Knative components. +This command will install all available Knative components, Serving, Eventing and Monitoring. You can check the status of Knative pods using the following commands: @@ -35,10 +36,6 @@ You can check the status of Knative pods using the following commands: kubectl get pods -n knative-serving ``` -```shell - kubectl get pods -n knative-build -``` - ```shell kubectl get pods -n knative-eventing ``` @@ -49,8 +46,8 @@ You can check the status of Knative pods using the following commands: ## Cleaning up -Delete MicroK8s along with Knative, Istio, and any deployed apps: +Knative can be removed from MicroK8s using the following command: ```shell -sudo snap remove microk8s +sudo microk8s.disable knative ``` From e708d7644d73396fcd86e69c4948e71ef60e728a Mon Sep 17 00:00:00 2001 From: ammarn911 <49419471+ammarn911@users.noreply.github.com> Date: Mon, 9 Sep 2019 12:32:09 -0500 Subject: [PATCH 3/6] Updating Knative-with-MicroK8s.md Addressing suggestions. --- docs/install/Knative-with-MicroK8s.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/Knative-with-MicroK8s.md b/docs/install/Knative-with-MicroK8s.md index 68fca715278..6e1778cd9d5 100644 --- a/docs/install/Knative-with-MicroK8s.md +++ b/docs/install/Knative-with-MicroK8s.md @@ -28,7 +28,7 @@ You can find [guides for other platforms here](./README.md). echo 'N;' | microk8s.enable knative ``` -This command will install all available Knative components, Serving, Eventing and Monitoring. +This command will install all available Knative v0.7.1 components. You can check the status of Knative pods using the following commands: From c783a14942680f140e99fa988c99555bc5bd2644 Mon Sep 17 00:00:00 2001 From: ammarn911 <49419471+ammarn911@users.noreply.github.com> Date: Mon, 9 Sep 2019 15:59:30 -0500 Subject: [PATCH 4/6] Updating Knative-with-MicroK8s.md Better version info and delete command --- docs/install/Knative-with-MicroK8s.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/install/Knative-with-MicroK8s.md b/docs/install/Knative-with-MicroK8s.md index 6e1778cd9d5..b2a76170b88 100644 --- a/docs/install/Knative-with-MicroK8s.md +++ b/docs/install/Knative-with-MicroK8s.md @@ -27,8 +27,9 @@ You can find [guides for other platforms here](./README.md). ```shell echo 'N;' | microk8s.enable knative ``` +This command will install all available Knative components. -This command will install all available Knative v0.7.1 components. +NOTE: As of this writing, MicroK8s comes with Knative 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: @@ -51,3 +52,9 @@ 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 +``` From df5506b2d0e9e7b1c4a8e35cc2c14cf44c50105e Mon Sep 17 00:00:00 2001 From: ammarn911 <49419471+ammarn911@users.noreply.github.com> Date: Mon, 9 Sep 2019 18:01:16 -0500 Subject: [PATCH 5/6] Updating Knative-with-MicroK8s.md Adding lines of communication for support/contributing. --- docs/install/Knative-with-MicroK8s.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/install/Knative-with-MicroK8s.md b/docs/install/Knative-with-MicroK8s.md index b2a76170b88..4e88417288a 100644 --- a/docs/install/Knative-with-MicroK8s.md +++ b/docs/install/Knative-with-MicroK8s.md @@ -8,6 +8,9 @@ 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 From 1092b878a2aa9c2d6b591ba55910be18a084e07a Mon Sep 17 00:00:00 2001 From: ammarn911 <49419471+ammarn911@users.noreply.github.com> Date: Tue, 17 Sep 2019 15:41:15 -0500 Subject: [PATCH 6/6] Update Knative-with-MicroK8s.md Addressing suggestions. --- docs/install/Knative-with-MicroK8s.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/install/Knative-with-MicroK8s.md b/docs/install/Knative-with-MicroK8s.md index 4e88417288a..0876c4634e0 100644 --- a/docs/install/Knative-with-MicroK8s.md +++ b/docs/install/Knative-with-MicroK8s.md @@ -16,36 +16,36 @@ You can find [guides for other platforms here](./README.md). ### Install MicroK8s ```shell - sudo snap install --classic microk8s +sudo snap install --classic microk8s ``` ## Alias MicroK8s kubectl for convenience ```shell - sudo snap alias microk8s.kubectl kubectl +sudo snap alias microk8s.kubectl kubectl ``` ## Enable Knative ```shell - echo 'N;' | microk8s.enable knative +echo 'N;' | microk8s.enable knative ``` -This command will install all available Knative components. +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 Knative version 0.7.1, this doc will be updated to reflect versioning changes. +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 +kubectl get pods -n knative-serving ``` ```shell - kubectl get pods -n knative-eventing +kubectl get pods -n knative-eventing ``` ```shell - kubectl get pods -n knative-monitoring +kubectl get pods -n knative-monitoring ``` ## Cleaning up