mirror of https://github.com/knative/docs.git
Correct the file path for iot example. (#898)
This commit is contained in:
parent
18025f8109
commit
6ad310055b
|
@ -54,7 +54,7 @@ export IOTCORE_TOPIC_DEVICE="iot-demo-device-pubsub-topic"
|
||||||
1. Have [gcloud](https://cloud.google.com/sdk/gcloud/) installed and pointing
|
1. Have [gcloud](https://cloud.google.com/sdk/gcloud/) installed and pointing
|
||||||
at that project.
|
at that project.
|
||||||
|
|
||||||
1. Enable the 'Cloud Pub/Sub API' on that project.
|
1. Enable the `Cloud Pub/Sub API` on that project.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
gcloud services enable pubsub.googleapis.com
|
gcloud services enable pubsub.googleapis.com
|
||||||
|
@ -109,7 +109,7 @@ export IOTCORE_TOPIC_DEVICE="iot-demo-device-pubsub-topic"
|
||||||
1. Create a `Channel`.
|
1. Create a `Channel`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" eventing/samples/iot-core/channel.yaml |
|
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" channel.yaml |
|
||||||
kubectl -n default apply -f -
|
kubectl -n default apply -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ export IOTCORE_TOPIC_DEVICE="iot-demo-device-pubsub-topic"
|
||||||
sed -e "s/MY_GCP_PROJECT/$IOTCORE_PROJECT/" \
|
sed -e "s/MY_GCP_PROJECT/$IOTCORE_PROJECT/" \
|
||||||
-e "s/TOPIC_NAME/$IOTCORE_TOPIC_DATA/" \
|
-e "s/TOPIC_NAME/$IOTCORE_TOPIC_DATA/" \
|
||||||
-e "s/CHANNEL_NAME/$CHANNEL_NAME/" \
|
-e "s/CHANNEL_NAME/$CHANNEL_NAME/" \
|
||||||
eventing/samples/iot-core/gcp-pubsub-source.yaml |
|
gcp-pubsub-source.yaml |
|
||||||
kubectl apply -f -
|
kubectl apply -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -133,8 +133,7 @@ Even though the `Source` isn't completely ready yet, we can setup the
|
||||||
1. Deploy `subscription.yaml`.
|
1. Deploy `subscription.yaml`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" \
|
sed "s/CHANNEL_NAME/$CHANNEL_NAME/" subscription.yaml |
|
||||||
eventing/samples/iot-core/subscription.yaml |
|
|
||||||
ko apply -f -
|
ko apply -f -
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue