mirror of https://github.com/knative/docs.git
31 lines
757 B
YAML
31 lines
757 B
YAML
# This is a very simple Knative Service that writes the input request to its log.
|
|
|
|
apiVersion: serving.knative.dev/v1alpha1
|
|
kind: Service
|
|
metadata:
|
|
name: message-dumper
|
|
spec:
|
|
runLatest:
|
|
configuration:
|
|
revisionTemplate:
|
|
spec:
|
|
container:
|
|
image: github.com/knative/eventing-sources/cmd/message_dumper
|
|
---
|
|
# Subscription from the GcpPubSubSource's output Channel to the Knative Service below.
|
|
|
|
apiVersion: eventing.knative.dev/v1alpha1
|
|
kind: Subscription
|
|
metadata:
|
|
name: gcppubsub-source-sample
|
|
spec:
|
|
channel:
|
|
apiVersion: eventing.knative.dev/v1alpha1
|
|
kind: Channel
|
|
name: pubsub-test
|
|
subscriber:
|
|
ref:
|
|
apiVersion: serving.knative.dev/v1alpha1
|
|
kind: Service
|
|
name: message-dumper
|