From cd528abbe32bf0179e96baf939f6e8de21b35030 Mon Sep 17 00:00:00 2001 From: Sam O'Dell Date: Wed, 16 Jan 2019 11:17:59 -0800 Subject: [PATCH 1/2] v0.3 updates for Gardener, ICP, Minikube, Minishift installs --- install/Knative-with-Gardener.md | 6 ++--- install/Knative-with-ICP.md | 44 ++++++++++++++++++------------- install/Knative-with-Minikube.md | 13 ++++----- install/Knative-with-Minishift.md | 7 ++--- 4 files changed, 40 insertions(+), 30 deletions(-) diff --git a/install/Knative-with-Gardener.md b/install/Knative-with-Gardener.md index 8c788e08b3a..0cc362c1901 100644 --- a/install/Knative-with-Gardener.md +++ b/install/Knative-with-Gardener.md @@ -148,11 +148,11 @@ spec: And of course create the respective `ConfigMaps`: ``` -curl https://github.com/knative/serving/releases/download/v0.2.3/istio.yaml +curl https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml kubectl create configmap istio-chart-080 --from-file=istio.yaml -curl https://github.com/knative/serving/releases/download/v0.2.3/release.yaml -kubectl create configmap knative-chart-001 --from-file=release.yaml +curl https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml +kubectl create configmap knative-chart-001 --from-file=serving.yaml ``` With this preparation, your team can just activate Knative in the "Addons" tab diff --git a/install/Knative-with-ICP.md b/install/Knative-with-ICP.md index 9e9e44174d7..ca34ce92d8a 100644 --- a/install/Knative-with-ICP.md +++ b/install/Knative-with-ICP.md @@ -126,36 +126,45 @@ components together, or individually. 1. Run one of the following commands to install Knative: - - Specify `release-lite.yaml` to install the - [Knative Serving](https://github.com/knative/serving) and + - To install the [Knative Serving](https://github.com/knative/serving) and [Knative Build](https://github.com/knative/build) components with metrics - monitoring: + and monitoring, enter the following commands: ```shell - curl -L https://github.com/knative/serving/releases/download/v0.2.3/release-lite.yaml \ + curl -L https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml \ + | sed 's/LoadBalancer/NodePort/' \ + | kubectl apply --filename - + + curl -L https://github.com/knative/build/releases/download/v0.3.0/build.yaml \ + | sed 's/LoadBalancer/NodePort/' \ + | kubectl apply --filename - + + curl -L https://github.com/knative/serving/releases/download/v0.3.0/monitoring.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl apply --filename - ``` + See [Installing logging, metrics, and traces](../serving/installing-logging-metrics-traces.md) + for details about installing the various supported observability plug-ins. - - Specify `serving.yaml` to install only - [Knative Serving](https://github.com/knative/serving): + - To install only [Knative Serving](https://github.com/knative/serving), + enter the following command: ```shell - curl -L https://github.com/knative/serving/releases/download/v0.2.3/serving.yaml \ + curl -L https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl apply --filename - ``` - - Specify `build.yaml` to install only - [Knative Serving](https://github.com/knative/build): + - To install only [Knative Build](https://github.com/knative/build), + enter the following command: ```shell - curl -L https://github.com/knative/serving/releases/download/v0.2.3/build.yaml \ + curl -L https://github.com/knative/build/releases/download/v0.3.0/build.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl apply --filename - ``` -1. Depending on the Knative that you chose to install, ensure that the +1. Depending on which Knative components you chose to install, ensure that the installation is successful by running the following commands until the namespace shows a `STATUS` of `Running`: @@ -198,25 +207,24 @@ echo $(ICP cluster ip):$(kubectl get svc knative-ingressgateway --namespace isti To remove Knative from your IBM Cloud Private cluster by running one of the following commands: -- If you installed `release-lite.yaml`, run: +- If you installed the Knative Serving, run: ```shell - curl -L https://github.com/knative/serving/releases/download/v0.2.3/release-lite.yaml \ + curl -L https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl delete --filename - ``` -- If you installed `serving.yaml`, run: - +- If you installed Knative Build, run: ```shell - curl -L https://github.com/knative/serving/releases/download/v0.2.3/serving.yaml \ + curl -L https://github.com/knative/build/releases/download/v0.3.0/build.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl delete --filename - ``` -- If you installed `build.yaml`, run: +- If you installed Knative monitoring and metrics, run: ```shell - curl -L https://github.com/knative/serving/releases/download/v0.2.3/build.yaml \ + curl -L https://github.com/knative/serving/releases/download/v0.3.0/monitoring.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl delete --filename - ``` diff --git a/install/Knative-with-Minikube.md b/install/Knative-with-Minikube.md index 14ae05ae652..80b733a651c 100644 --- a/install/Knative-with-Minikube.md +++ b/install/Knative-with-Minikube.md @@ -56,7 +56,7 @@ Knative depends on Istio. Run the following to install Istio. (We are changing `LoadBalancer` to `NodePort` for the `istio-ingress` service). ```shell -curl -L https://github.com/knative/serving/releases/download/v0.2.2/istio.yaml \ +curl -L https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl apply --filename - @@ -82,13 +82,14 @@ rerun the command to see the current status. Next, install [Knative Serving](https://github.com/knative/serving): -Because you have limited resources available, use the -`https://github.com/knative/serving/releases/download/v0.2.2/release-lite.yaml` -file, which omits some of the monitoring components to reduce the memory used by -the Knative components. To use the provided `release-lite.yaml` release, run: +Because you have limited resources available, install only the Knative Serving +component, omitting the other Knative components as well as the observability +and monitoring plugins. + +Enter the following command: ```shell -curl -L https://github.com/knative/serving/releases/download/v0.2.2/release-lite.yaml \ +curl -L https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml \ | sed 's/LoadBalancer/NodePort/' \ | kubectl apply --filename - ``` diff --git a/install/Knative-with-Minishift.md b/install/Knative-with-Minishift.md index 1403ae4caaf..e5e4091027f 100644 --- a/install/Knative-with-Minishift.md +++ b/install/Knative-with-Minishift.md @@ -164,8 +164,8 @@ curl -s https://raw.githubusercontent.com/knative/docs/master/install/scripts/is 1. Run the following to install Istio: ```shell - kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \ - oc apply -f https://storage.googleapis.com/knative-releases/serving/latest/istio.yaml + kubectl apply --filename https://github.com/knative/serving/releases/download/v0.3.0/istio-crds.yaml && \ + oc apply -f https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml ``` Note: the resources (CRDs) defined in the `istio-crds.yaml`file are also included in the `istio.yaml` file, but they are pulled out so that @@ -206,7 +206,8 @@ curl -s https://raw.githubusercontent.com/knative/docs/master/install/scripts/kn 1. Install Knative serving: ```shell - oc apply -f https://storage.googleapis.com/knative-releases/serving/latest/release-no-mon.yaml + oc apply -f https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml \ + oc apply -f https://github.com/knative/build/releases/download/v0.3.0/build.yaml ``` 2. Monitor the Knative components until all of the components show a `STATUS` of From 029d7f40f7bdc9b6c8bc9318d9d0182f338f475c Mon Sep 17 00:00:00 2001 From: Sam O'Dell <31352624+samodell@users.noreply.github.com> Date: Wed, 23 Jan 2019 11:11:39 -0800 Subject: [PATCH 2/2] Update Knative-with-Gardener.md --- install/Knative-with-Gardener.md | 43 -------------------------------- 1 file changed, 43 deletions(-) diff --git a/install/Knative-with-Gardener.md b/install/Knative-with-Gardener.md index 22bb5aa0ae5..390d45927fb 100644 --- a/install/Knative-with-Gardener.md +++ b/install/Knative-with-Gardener.md @@ -118,49 +118,6 @@ see [Performing a Custom Knative Installation](Knative-custom-install.md). kubectl get pods --namespace knative-monitoring ``` -## Alternative way to enable Knative with Gardener - -Ask your Gardener administrator to configure the Gardener Bouquet addon manager -with the following CRDs: - -``` -apiVersion: "garden.sapcloud.io/v1alpha1" -kind: "AddonManifest" -metadata: - name: "istio-1.0.2" - finalizers: - - "bouquet" -spec: - configMap: "istio-chart-080" -``` - -``` -apiVersion: "garden.sapcloud.io/v1alpha1" -kind: "AddonManifest" -metadata: - name: "knative-0.0.1" - finalizers: - - "bouquet" -spec: - configMap: "knative-chart-001" - dependencies: - istio: "1.0.2" -``` - -And of course create the respective `ConfigMaps`: - -``` -curl https://github.com/knative/serving/releases/download/v0.3.0/istio.yaml -kubectl create configmap istio-chart-080 --from-file=istio.yaml - -curl https://github.com/knative/serving/releases/download/v0.3.0/serving.yaml -kubectl create configmap knative-chart-001 --from-file=serving.yaml -``` - -With this preparation, your team can just activate Knative in the "Addons" tab -when creating a new cluster: -![alt text](images/gardener_addon_checkboxes.png "Addon Checkboxes") - ## Set your custom domain 1. Fetch the external IP or CNAME of the knative-ingressgateway