mirror of https://github.com/knative/docs.git
Version updates and CE update (#1915)
This commit is contained in:
parent
093675762a
commit
dbae4d819c
|
@ -125,22 +125,19 @@ You should see log lines showing the request headers and body of the event
|
||||||
message sent by the heartbeats source to the display function:
|
message sent by the heartbeats source to the display function:
|
||||||
|
|
||||||
```
|
```
|
||||||
☁️ CloudEvent: valid ✅
|
☁️ cloudevents.Event
|
||||||
|
Validation: valid
|
||||||
Context Attributes,
|
Context Attributes,
|
||||||
SpecVersion: 0.2
|
specversion: 0.3
|
||||||
Type: dev.knative.eventing.samples.heartbeat
|
type: dev.knative.eventing.samples.heartbeat
|
||||||
Source: https://github.com/knative/eventing-contrib/cmd/heartbeats/#event-test/mypod
|
source: https://knative.dev/eventing-contrib/cmd/heartbeats/#event-test/mypod
|
||||||
ID: cd1f5f24-12dd-489d-aff4-23302c6091fa
|
id: 2b72d7bf-c38f-4a98-a433-608fbcdd2596
|
||||||
Time: 2019-04-04T08:38:24.833521851Z
|
time: 2019-10-18T15:23:20.809775386Z
|
||||||
ContentType: application/json
|
contenttype: application/json
|
||||||
Extensions:
|
Extensions,
|
||||||
beats: true
|
beats: true
|
||||||
heart: yes
|
heart: yes
|
||||||
the: 42
|
the: 42
|
||||||
Transport Context,
|
|
||||||
URI: /
|
|
||||||
Host: event-display.default.svc.cluster.local
|
|
||||||
Method: POST
|
|
||||||
Data,
|
Data,
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
|
|
|
@ -8,7 +8,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
# This corresponds to a heartbeats image uri you build and publish,
|
# This corresponds to a heartbeats image uri you build and publish,
|
||||||
# e.g. gcr.io/[gcloud-project]/github.com/knative/eventing-contrib/cmd/heartbeats
|
# e.g. gcr.io/[gcloud-project]/github.com/knative/eventing-contrib/cmd/heartbeats
|
||||||
- image: github.com/knative/eventing-contrib/cmd/heartbeats
|
- image: knative.dev/eventing-contrib/cmd/heartbeats
|
||||||
name: heartbeats
|
name: heartbeats
|
||||||
args:
|
args:
|
||||||
- --period=1
|
- --period=1
|
||||||
|
@ -18,6 +18,6 @@ spec:
|
||||||
- name: POD_NAMESPACE
|
- name: POD_NAMESPACE
|
||||||
value: "event-test"
|
value: "event-test"
|
||||||
sink:
|
sink:
|
||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1alpha1
|
||||||
kind: Service
|
kind: Service
|
||||||
name: event-display
|
name: event-display
|
||||||
|
|
|
@ -77,18 +77,16 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container --si
|
||||||
You should see log lines showing the request headers and body from the source:
|
You should see log lines showing the request headers and body from the source:
|
||||||
|
|
||||||
```
|
```
|
||||||
2019/03/14 14:28:06 Message Dumper received a message: POST / HTTP/1.1
|
☁️ cloudevents.Event
|
||||||
Host: event-display.default.svc.cluster.local
|
Validation: valid
|
||||||
Transfer-Encoding: chunked
|
Context Attributes,
|
||||||
Accept-Encoding: gzip
|
specversion: 0.3
|
||||||
Ce-Cloudeventsversion: 0.1
|
type: dev.knative.cronjob.event
|
||||||
Ce-Eventid: 9790bf44-914a-4e66-af59-b43c06ccb73b
|
source: /apis/v1/namespaces/default/cronjobsources/test-cronjob-source
|
||||||
Ce-Eventtime: 2019-03-14T14:28:00.005163309Z
|
id: 7f88a38f-35f1-41f6-b72d-6b1af1d64e6e
|
||||||
Ce-Eventtype: dev.knative.cronjob.event
|
time: 2019-10-18T15:18:00.000829514Z
|
||||||
Ce-Source: CronJob
|
Data,
|
||||||
...
|
{"message":"Hello world!"}
|
||||||
|
|
||||||
{"message":"Hello world!"}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs`
|
You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs`
|
||||||
|
|
|
@ -41,7 +41,7 @@ spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/knative-releases/github.com/knative/eventing-sources/cmd/event_display
|
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
|
||||||
```
|
```
|
||||||
|
|
||||||
Enter the following command to create the service from `service.yaml`:
|
Enter the following command to create the service from `service.yaml`:
|
||||||
|
@ -126,7 +126,7 @@ spec:
|
||||||
sink:
|
sink:
|
||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
name: github-event-display
|
name: github-message-dumper
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, apply that yaml using `kubectl`:
|
Then, apply that yaml using `kubectl`:
|
||||||
|
|
|
@ -47,7 +47,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
|
||||||
- Replicas
|
- Replicas
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: kafka.strimzi.io/v1alpha1
|
apiVersion: kafka.strimzi.io/v1beta1
|
||||||
kind: KafkaTopic
|
kind: KafkaTopic
|
||||||
metadata:
|
metadata:
|
||||||
name: knative-demo-topic
|
name: knative-demo-topic
|
||||||
|
@ -109,7 +109,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
|
||||||
bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092 #note the kafka namespace
|
bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092 #note the kafka namespace
|
||||||
topics: knative-demo-topic
|
topics: knative-demo-topic
|
||||||
sink:
|
sink:
|
||||||
apiVersion: serving.knative.dev/v1alpha1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
name: event-display
|
name: event-display
|
||||||
```
|
```
|
||||||
|
@ -158,20 +158,17 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over
|
||||||
```
|
```
|
||||||
$ kubectl logs --selector='serving.knative.dev/service=event-display' -c user-container
|
$ kubectl logs --selector='serving.knative.dev/service=event-display' -c user-container
|
||||||
|
|
||||||
☁️ CloudEvent: valid ✅
|
☁️ cloudevents.Event
|
||||||
|
Validation: valid
|
||||||
Context Attributes,
|
Context Attributes,
|
||||||
SpecVersion: 0.2
|
specversion: 0.3
|
||||||
Type: dev.knative.kafka.event
|
type: dev.knative.kafka.event
|
||||||
Source: dubee
|
source: dubee
|
||||||
ID: partition:0/offset:333
|
id: partition:0/offset:333
|
||||||
Time: 2019-03-19T22:32:06.535321588Z
|
time: 2019-10-18T15:23:20.809775386Z
|
||||||
ContentType: application/json
|
contenttype: application/json
|
||||||
Extensions:
|
Extensions,
|
||||||
key:
|
key:
|
||||||
Transport Context,
|
|
||||||
URI: /
|
|
||||||
Host: event-display.default.svc.cluster.local
|
|
||||||
Method: POST
|
|
||||||
Data,
|
Data,
|
||||||
{
|
{
|
||||||
"msg": "This is a test!"
|
"msg": "This is a test!"
|
||||||
|
|
|
@ -70,6 +70,6 @@ spec:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
sink:
|
sink:
|
||||||
apiVersion: serving.knative.dev/v1alpha1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
name: event-display
|
name: event-display
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
apiVersion: kafka.strimzi.io/v1alpha1
|
apiVersion: kafka.strimzi.io/v1beta1
|
||||||
kind: KafkaTopic
|
kind: KafkaTopic
|
||||||
metadata:
|
metadata:
|
||||||
name: knative-demo-topic
|
name: knative-demo-topic
|
||||||
|
|
|
@ -189,21 +189,15 @@ kubectl logs -l serving.knative.dev/service=event-display -c user-container
|
||||||
You should see log lines similar to:
|
You should see log lines similar to:
|
||||||
|
|
||||||
```
|
```
|
||||||
☁️ CloudEvent: valid ✅
|
☁️ cloudevents.Event
|
||||||
|
Validation: valid
|
||||||
Context Attributes,
|
Context Attributes,
|
||||||
SpecVersion: 0.2
|
specversion: 0.3
|
||||||
Type: dev.knative.apiserver.resource.add
|
type: dev.knative.apiserver.resource.add
|
||||||
Source: https://10.39.240.1:443
|
source: https://10.96.0.1:443
|
||||||
ID: 716d4536-3b92-4fbb-98d9-14bfcf94683f
|
subject: /apis/v1/namespaces/default/events/busybox.15cec7980c1702d1
|
||||||
Time: 2019-05-10T23:27:06.695575294Z
|
id: 6ea84c37-c2b4-4687-866b-fb1b2c0fe969
|
||||||
ContentType: application/json
|
time: 2019-10-18T15:32:55.855413776Z
|
||||||
Extensions:
|
|
||||||
knativehistory: default-broker-b7k2p-channel-z7mqq.default.svc.cluster.local
|
|
||||||
subject: /apis/v1/namespaces/default/events/busybox.159d7608e3a3572c
|
|
||||||
Transport Context,
|
|
||||||
URI: /
|
|
||||||
Host: auto-event-display.default.svc.cluster.local
|
|
||||||
Method: POST
|
|
||||||
Data,
|
Data,
|
||||||
{
|
{
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
|
|
|
@ -10,6 +10,6 @@ spec:
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: Event
|
kind: Event
|
||||||
sink:
|
sink:
|
||||||
apiVersion: eventing.knative.dev/v1alpha1
|
apiVersion: serving.knative.dev/v1alpha1
|
||||||
kind: Broker
|
kind: Service
|
||||||
name: default
|
name: event-display
|
||||||
|
|
Loading…
Reference in New Issue