mirror of https://github.com/knative/docs.git
Revert ksvc changes (#442)
This commit is contained in:
parent
3944f6ec80
commit
08ab237cb3
|
@ -69,15 +69,10 @@ kubectl apply --filename serviceaccount.yaml
|
|||
1. Check that your service is running using:
|
||||
|
||||
```shell
|
||||
kubectl get ksvc --output "custom-columns=NAME:.metadata.name,READY:.status.conditions[2].status,REASON:.status.conditions[2].message"
|
||||
kubectl get services.serving.knative.dev --output "custom-columns=NAME:.metadata.name,READY:.status.conditions[2].status,REASON:.status.conditions[2].message"
|
||||
NAME READY REASON
|
||||
read-k8s-events True <none>
|
||||
```
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Create the flow sending Kubernetes Events to the service:
|
||||
|
||||
|
|
|
@ -107,21 +107,15 @@ asssigned an external IP address.
|
|||
1. To find the host URL for your service, enter:
|
||||
|
||||
```shell
|
||||
kubectl get ksvc helloworld-go --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-go --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-go helloworld-go.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
You can also export the host URL as a variable using the following command:
|
||||
|
||||
```shell
|
||||
export HOST_URL=$(kubectl get ksvc helloworld-go --output jsonpath='{.status.domain}')
|
||||
export HOST_URL=$(kubectl get services.serving.knative.dev helloworld-go --output jsonpath='{.status.domain}')
|
||||
```
|
||||
|
||||
If you changed the name from `helloworld-go` to something else when creating
|
||||
|
|
|
@ -102,19 +102,13 @@ service "gitwebhook" created
|
|||
1. Retrieve the hostname for this service, using the following command:
|
||||
|
||||
```shell
|
||||
$ kubectl get ksvc gitwebhook \
|
||||
$ kubectl get services.serving.knative.dev gitwebhook \
|
||||
--output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
|
||||
NAME DOMAIN
|
||||
gitwebhook gitwebhook.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Browse on GitHub to the repository where you want to create a webhook.
|
||||
1. Click **Settings**, then **Webhooks**, then **Add webhook**.
|
||||
1. Enter the **Payload URL** as `http://{DOMAIN}`, with the value of DOMAIN listed above.
|
||||
|
|
|
@ -130,17 +130,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-csharp --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-csharp --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-csharp helloworld-csharp.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -161,18 +161,12 @@ knative-ingressgateway LoadBalancer 10.35.254.218 35.225.171.32 80:32380
|
|||
1. To find the URL for your service, use
|
||||
|
||||
```
|
||||
kubectl get ksvc helloworld-elixir --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-elixir --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
|
||||
NAME DOMAIN
|
||||
helloworld-elixir helloworld-elixir.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the results. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -141,17 +141,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-go --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-go --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-go helloworld-go.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the results. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -175,17 +175,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, enter:
|
||||
```
|
||||
kubectl get ksvc helloworld-haskell --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-haskell --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-haskell helloworld-haskell.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -154,17 +154,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-java --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-java --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-java helloworld-java.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -172,17 +172,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-nodejs --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-nodejs --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-nodejs helloworld-nodejs.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -113,17 +113,11 @@ you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-php --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-php --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-php helloworld-php.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -125,17 +125,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-python --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-python --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-python helloworld-python.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}`
|
||||
with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -140,15 +140,10 @@ you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, use
|
||||
```
|
||||
kubectl get ksvc helloworld-ruby --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-ruby --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-ruby helloworld-ruby.default.example.com
|
||||
```
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}`
|
||||
with the address you see returned in the previous step.
|
||||
|
|
|
@ -156,17 +156,11 @@ folder) you're ready to build and deploy the sample app.
|
|||
|
||||
1. To find the URL for your service, enter:
|
||||
```
|
||||
kubectl get ksvc helloworld-rust --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
kubectl get services.serving.knative.dev helloworld-rust --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
helloworld-rust helloworld-rust.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
`{IP_ADDRESS}` with the address you see returned in the previous step.
|
||||
|
||||
|
|
|
@ -213,17 +213,11 @@ container for the application.
|
|||
1. To find the URL for your service, type:
|
||||
|
||||
```shell
|
||||
$ kubectl get ksvc app-from-source --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
$ kubectl get services.serving.knative.dev app-from-source --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
|
||||
NAME DOMAIN
|
||||
app-from-source app-from-source.default.example.com
|
||||
```
|
||||
|
||||
> Note: `ksvc` is an alias for `services.serving.knative.dev`. If you have
|
||||
an older version (version 0.1.0) of Knative installed, you'll need to use
|
||||
the long name until you upgrade to version 0.1.1 or higher. See
|
||||
[Checking Knative Installation Version](../../../install/check-install-version.md)
|
||||
to learn how to see what version you have installed.
|
||||
|
||||
1. Now you can make a request to your app to see the result. Replace
|
||||
`{IP_ADDRESS}` with the address that you got in the previous step:
|
||||
|
||||
|
|
Loading…
Reference in New Issue