Skip to content

Commit 7ee2d22

Browse files
Doug Davisknative-prow-robot
authored andcommitted
Tweaks docs to create Istio CRDs first - part 2 (#731)
Continuation of #717 - get the rest of the install docs Signed-off-by: Doug Davis <[email protected]>
1 parent 5560ccb commit 7ee2d22

File tree

6 files changed

+41
-5
lines changed

6 files changed

+41
-5
lines changed

install/Knative-with-AKS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,15 @@ Knative depends on Istio.
132132

133133
1. Install Istio:
134134
```bash
135+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \
135136
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio.yaml
136137
```
138+
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
139+
also included in the `istio.yaml` file, but they are pulled out so that
140+
the CRD definitions are created first. If you see an error when creating
141+
resources about an unknown type, run the second `kubectl apply` command
142+
again.
143+
137144
1. Label the default namespace with `istio-injection=enabled`:
138145

139146
```bash

install/Knative-with-GKE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,15 @@ Knative depends on Istio.
132132

133133
1. Install Istio:
134134
```bash
135+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \
135136
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio.yaml
136137
```
138+
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
139+
also included in the `istio.yaml` file, but they are pulled out so that
140+
the CRD definitions are created first. If you see an error when creating
141+
resources about an unknown type, run the second `kubectl apply` command
142+
again.
143+
137144
1. Label the default namespace with `istio-injection=enabled`:
138145
```bash
139146
kubectl label namespace default istio-injection=enabled

install/Knative-with-Gardener.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,15 @@ Knative depends on Istio.
7171

7272
1. Install Istio:
7373
```bash
74+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \
7475
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio.yaml
7576
```
77+
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
78+
also included in the `istio.yaml` file, but they are pulled out so that
79+
the CRD definitions are created first. If you see an error when creating
80+
resources about an unknown type, run the second `kubectl apply` command
81+
again.
82+
7683
2. Label the default namespace with `istio-injection=enabled`:
7784
```bash
7885
kubectl label namespace default istio-injection=enabled

install/Knative-with-Minishift.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,14 @@ curl -s https://raw.githubusercontent.com/knative/docs/master/install/scripts/is
164164
1. Run the following to install Istio:
165165

166166
```shell
167+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \
167168
oc apply -f https://storage.googleapis.com/knative-releases/serving/latest/istio.yaml
168169
```
169-
170-
> **NOTE:** If you get a lot of errors after running the above command like:
171-
> **unable to recognize "STDIN": no matches for kind "Gateway" in version
172-
> "networking.istio.io/v1alpha3"**, just run the command above again, it's
173-
> idempotent and hence objects will be created only once.
170+
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
171+
also included in the `istio.yaml` file, but they are pulled out so that
172+
the CRD definitions are created first. If you see an error when creating
173+
resources about an unknown type, run the second `kubectl apply` command
174+
again.
174175

175176
2. Ensure the istio-sidecar-injector pods runs as provileged:
176177
```shell

install/Knative-with-PKS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,15 @@ Containers
4848

4949
1. Install Istio:
5050
```bash
51+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \
5152
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio.yaml
5253
```
54+
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
55+
also included in the `istio.yaml` file, but they are pulled out so that
56+
the CRD definitions are created first. If you see an error when creating
57+
resources about an unknown type, run the second `kubectl apply` command
58+
again.
59+
5360
1. Label the default namespace with `istio-injection=enabled`:
5461
```bash
5562
kubectl label namespace default istio-injection=enabled

install/Knative-with-any-k8s.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ Containers.
2121

2222
1. Install Istio:
2323
```bash
24+
kubectl apply --filename https://github.com/knative/serving/releases/download/v0.2.2/istio-crds.yaml && \
2425
kubectl apply --filename https://raw.githubusercontent.com/knative/serving/v0.2.2/third_party/istio-1.0.2/istio.yaml
2526
```
27+
Note: the resources (CRDs) defined in the `istio-crds.yaml`file are
28+
also included in the `istio.yaml` file, but they are pulled out so that
29+
the CRD definitions are created first. If you see an error when creating
30+
resources about an unknown type, run the second `kubectl apply` command
31+
again.
32+
2633
1. Label the default namespace with `istio-injection=enabled`:
2734
```bash
2835
kubectl label namespace default istio-injection=enabled

0 commit comments

Comments
 (0)