|
7 | 7 |
|
8 | 8 | ## Installation |
9 | 9 |
|
| 10 | +This guide walks you through the deployment of Knative version 1.0.0 [using YAML files](https://knative.dev/docs/admin/install/serving/install-serving-with-yaml/). Please refer to the upstream Knative [documentation](https://knative.dev/docs/install/) for other deployment options. |
| 11 | + |
10 | 12 | 1. Follow the [Getting Started with Tanzu Community Edition](https://tanzucommunityedition.io/docs/latest/getting-started-standalone/) installation instructions and create your Tanzu cluster on your platform of choice. |
| 13 | + |
11 | 14 | 1. Ensure you are in the context of your Tanzu cluster |
12 | | -``` |
| 15 | + |
| 16 | +```bash |
13 | 17 | kubectl config use-context <STANDALONE-CLUSTER-NAME>-admin@<STANDALONE-CLUSTER-NAME> |
14 | 18 | ``` |
15 | 19 |
|
16 | 20 | 1. Install Knative Serving following the [Installing Knative Serving using YAML files](https://knative.dev/docs/admin/install/serving/install-serving-with-yaml/) instructions. |
17 | | -``` |
18 | | -kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-crds.yam |
19 | | -kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-core.yaml |
| 21 | + |
| 22 | +```bash |
| 23 | +kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.0.2/serving-crds.yaml |
| 24 | +kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.0.2/serving-core.yaml |
20 | 25 | ``` |
21 | 26 |
|
22 | 27 | 1. Wait until the pods have started before proceeding. |
23 | | -``` |
| 28 | + |
| 29 | +```bash |
24 | 30 | kubectl get pods -n knative-serving |
25 | 31 | ``` |
26 | 32 |
|
27 | 33 | 1. The version of Contour provided with the Tanzu Community Edition package repository is older than the version of `knative-serving` we have installed, so install it from YAML as well. |
28 | | -``` |
29 | | -kubectl apply -f https://github.com/knative/net-contour/releases/download/v0.26.0/contour.yaml |
30 | | -kubectl apply -f https://github.com/knative/net-contour/releases/download/v0.26.0/net-contour.yaml |
| 34 | + |
| 35 | +```bash |
| 36 | +kubectl apply -f https://github.com/knative-sandbox/net-contour/releases/download/knative-v1.0.0/contour.yaml |
| 37 | +kubectl apply -f https://github.com/knative-sandbox/net-contour/releases/download/knative-v1.0.0/net-contour.yaml |
31 | 38 | ``` |
32 | 39 |
|
33 | 40 | 1. Verify the pods have started before proceeding. |
34 | | -``` |
| 41 | + |
| 42 | +```bash |
35 | 43 | kubectl get pods -n contour-external |
36 | 44 | kubectl get pods -n contour-internal |
37 | 45 | ``` |
38 | 46 |
|
39 | 47 | 1. Configure Knative Serving to use Contour by default by running the command: |
40 | | -``` |
| 48 | + |
| 49 | +```bash |
41 | 50 | kubectl patch configmap/config-network \ |
42 | 51 | --namespace knative-serving \ |
43 | 52 | --type merge \ |
44 | | - --patch '{"data":{"ingress.class":"contour.ingress.networking.knative.dev"}}' |
| 53 | + --patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}' |
45 | 54 | ``` |
46 | 55 |
|
47 | 56 | 1. Get the External IP address or CNAME by running the command: |
48 | | -``` |
| 57 | + |
| 58 | +```bash |
49 | 59 | kubectl --namespace contour-external get service envoy |
50 | 60 | ``` |
51 | 61 |
|
52 | 62 | 1. You will need to configure DNS following the [Knative Serving DNS instructions](https://knative.dev/docs/admin/install/serving/install-serving-with-yaml/#configure-dns) for your requirements. |
| 63 | + |
53 | 64 | 1. Install Knative Eventing following the [Installing Knative Eventing using YAML files](https://knative.dev/docs/admin/install/eventing/install-eventing-with-yaml/) instructions. |
54 | | -``` |
55 | | -kubectl apply -f https://github.com/knative/eventing/releases/download/v0.26.0/eventing-crds.yaml |
56 | | -kubectl apply -f https://github.com/knative/eventing/releases/download/v0.26.0/eventing-core.yaml |
| 65 | + |
| 66 | +```bash |
| 67 | +kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.0.3/eventing-crds.yaml |
| 68 | +kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.0.3/eventing-core.yaml |
57 | 69 | ``` |
58 | 70 |
|
59 | 71 | 1. Verify your installation. |
60 | | -``` |
| 72 | + |
| 73 | +```bash |
61 | 74 | kubectl get pods -n knative-eventing |
62 | 75 | ``` |
63 | 76 |
|
|
0 commit comments