Skip to content

Commit 7f10fef

Browse files
authored
Merge pull request #8 from rubixFunctions/update-install-docs
update install docs
2 parents cc66728 + 94d0cd4 commit 7f10fef

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

install/README.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ Admin permissions are required to create the necessary
128128
Knative depends on Istio.
129129

130130
1. Install Istio:
131-
```bash
132-
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.4.0/istio-crds.yaml && \
133-
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.4.0/istio.yaml
131+
```bash
132+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.5.0/istio-crds.yaml && \
133+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.5.0/istio.yaml
134134
```
135135
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
136136
also included in the `istio.yaml` file, but they are pulled out so that
@@ -161,16 +161,37 @@ The following commands install all available Knative components as well as the
161161
standard set of observability plugins. To customize your Knative installation,
162162
see [Performing a Custom Knative Installation](Knative-custom-install.md).
163163

164-
1. Run the `kubectl apply` command to install Knative and its dependencies:
165-
```bash
166-
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.4.0/serving.yaml \
167-
--filename https://github.com/knative/build/releases/download/v0.4.0/build.yaml \
168-
--filename https://github.com/knative/eventing/releases/download/v0.4.0/in-memory-channel.yaml \
169-
--filename https://github.com/knative/eventing/releases/download/v0.4.0/release.yaml \
170-
--filename https://github.com/knative/eventing-sources/releases/download/v0.4.0/release.yaml \
171-
--filename https://github.com/knative/serving/releases/download/v0.4.0/monitoring.yaml \
172-
--filename https://raw.githubusercontent.com/knative/serving/v0.4.0/third_party/config/build/clusterrole.yaml
173-
```
164+
1. To install Knative, first install the CRDs by running the `kubectl apply`
165+
command once with the `-l knative.dev/crd-install=true` flag. This prevents
166+
race conditions during the install, which cause intermittent errors:
167+
168+
```bash
169+
kubectl apply --selector knative.dev/crd-install=true \
170+
--filename https://github.com/knative/serving/releases/download/v0.5.0/serving.yaml \
171+
--filename https://github.com/knative/build/releases/download/v0.5.0/build.yaml \
172+
--filename https://github.com/knative/eventing/releases/download/v0.5.0/release.yaml \
173+
--filename https://github.com/knative/eventing-sources/releases/download/v0.5.0/eventing-sources.yaml \
174+
--filename https://github.com/knative/serving/releases/download/v0.5.0/monitoring.yaml \
175+
--filename https://raw.githubusercontent.com/knative/serving/v0.5.0/third_party/config/build/clusterrole.yaml
176+
```
177+
178+
1. To complete the install of Knative and its dependencies, run the
179+
`kubectl apply` command again, this time without the `--selector`
180+
flag, to complete the install of Knative and its dependencies:
181+
182+
```bash
183+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.5.0/serving.yaml \
184+
--filename https://github.com/knative/build/releases/download/v0.5.0/build.yaml \
185+
--filename https://github.com/knative/eventing/releases/download/v0.5.0/release.yaml \
186+
--filename https://github.com/knative/eventing-sources/releases/download/v0.5.0/eventing-sources.yaml \
187+
--filename https://github.com/knative/serving/releases/download/v0.5.0/monitoring.yaml \
188+
--filename https://raw.githubusercontent.com/knative/serving/v0.5.0/third_party/config/build/clusterrole.yaml
189+
```
190+
191+
> **Note**: For the v0.4.0 release and newer, the `clusterrole.yaml` file is
192+
> required to enable the Build and Serving components to interact with each
193+
> other.
194+
174195
1. Monitor the Knative components until all of the components show a
175196
`STATUS` of `Running`:
176197
```bash

0 commit comments

Comments
 (0)