|
1 | 1 | GitHub Source example shows how to wire GitHub events for consumption
|
2 | 2 | by a Knative Service.
|
3 | 3 |
|
4 |
| -## Deployment Steps |
| 4 | +## Before you begin |
5 | 5 |
|
6 |
| -### Prerequisites |
7 |
| - |
8 |
| -You will need: |
9 |
| - |
10 |
| -1. An internet-accessible Kubernetes cluster with Knative Serving |
11 |
| - installed. Follow the [installation instructions](../../../install/README.md) |
12 |
| - if you need to create one. |
| 6 | +1. Set up [Knative Serving](../../../serving). |
13 | 7 | 1. Ensure Knative Serving is [configured with a domain
|
14 | 8 | name](../../../serving/using-a-custom-domain.md)
|
15 | 9 | that allows GitHub to call into the cluster.
|
16 | 10 | 1. If you're using GKE, you'll also want to [assign a static IP address](../../../serving/gke-assigning-static-ip-address.md).
|
17 |
| -1. Install [Knative |
18 |
| - Eventing](../../../eventing). Those |
19 |
| - instructions also install the default eventing sources, including |
20 |
| - the `GitHubSource` we'll use. |
21 |
| - |
22 |
| -### Install Github Event Source |
23 |
| - |
24 |
| -Github Event source lives in the [knative/eventing-contrib](https://github.com/knative/eventing-contrib). |
25 |
| -You can install it by running the following (this is currently the latest released version (0.11.2)) |
26 |
| - |
27 |
| -```shell |
28 |
| -kubectl apply -f https://github.com/knative/eventing-contrib/releases/download/v0.15.0/github.yaml |
29 |
| -``` |
| 11 | +1. Set up [Knative Eventing](../../../eventing) with the GitHub source. |
30 | 12 |
|
31 | 13 | ### Create a Knative Service
|
32 | 14 |
|
33 |
| -To verify the `GitHubSource` is working, we will create a simple Knative |
34 |
| -`Service` that dumps incoming messages to its log. The `service.yaml` file |
35 |
| -defines this basic service. |
| 15 | +To verify the GitHub source is working, create a simple Knative |
| 16 | +Service that dumps incoming messages to its log. The `service.yaml` file |
| 17 | +defines this basic Service. |
36 | 18 |
|
37 | 19 | ```yaml
|
38 | 20 | apiVersion: serving.knative.dev/v1
|
|
0 commit comments