mirror of https://github.com/knative/docs.git
Merge 74539d64c4
into 4b84e8d825
This commit is contained in:
commit
d031fdfa35
|
@ -29,6 +29,6 @@ spec:
|
||||||
app: node-server
|
app: node-server
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 8080
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
|
@ -15,8 +15,4 @@ spec:
|
||||||
type: moderated-comment # This is the filter that will be applied to the event, only events with the ce-type moderated-comment will be processed
|
type: moderated-comment # This is the filter that will be applied to the event, only events with the ce-type moderated-comment will be processed
|
||||||
badwordfilter: good # This is the filter that will be applied to the event, only events with the ce-extension badwordfilter: good will be processed
|
badwordfilter: good # This is the filter that will be applied to the event, only events with the ce-extension badwordfilter: good will be processed
|
||||||
subscriber:
|
subscriber:
|
||||||
ref:
|
uri: http://node-server-svc.default.svc.cluster.local:8080/insert # This is the path where the event will be sent to the subscriber, see /insert in node-server code: index.js
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
name: node-server-svc
|
|
||||||
uri: /insert # This is the path where the event will be sent to the subscriber, see /insert in node-server code: index.js
|
|
||||||
|
|
|
@ -29,6 +29,6 @@ spec:
|
||||||
app: node-server
|
app: node-server
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 8080
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
|
@ -270,7 +270,7 @@ node-server-svc LoadBalancer 10.101.90.35 <pending> 80:31792/T
|
||||||
If port forwarding is required, open a new terminal and run:
|
If port forwarding is required, open a new terminal and run:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl port-forward svc/node-server-svc 8080:80
|
kubectl port-forward svc/node-server-svc 8080:8080
|
||||||
```
|
```
|
||||||
You should see the following output:
|
You should see the following output:
|
||||||
|
|
||||||
|
|
|
@ -36,11 +36,7 @@ Append the following Trigger configuration to the existing `node-server/config/2
|
||||||
type: moderated-comment # This is the filter that will be applied to the event, only events with the ce-type moderated-comment will be processed
|
type: moderated-comment # This is the filter that will be applied to the event, only events with the ce-type moderated-comment will be processed
|
||||||
badwordfilter: good # This is the filter that will be applied to the event, only events with the ce-extension badwordfilter: good will be processed
|
badwordfilter: good # This is the filter that will be applied to the event, only events with the ce-extension badwordfilter: good will be processed
|
||||||
subscriber:
|
subscriber:
|
||||||
ref:
|
uri: http://node-server-svc.default.svc.cluster.local:8080/insert # This is the path where the event will be sent to the subscriber, see /insert in node-server code: index.js
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
name: node-server-svc
|
|
||||||
uri: /insert # This is the path where the event will be sent to the subscriber, see /insert in node-server code: index.js
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
Loading…
Reference in New Issue