mirror of https://github.com/knative/docs.git
404 Fixes and Cherry-picks from 0.10 (#2048)
* Secrets use GOOGLE_APPLICATION_CREDENTIALS as key (#1769) * [DOC] Add alternative shell command to delete knative service (#1727) * Update getting-started-knative-app.md It is very useful when `kservice` are created via API and not with files. * Delete the word "record" per review. * Fix typo in microk8s doc (#1912) * Fix the Subscription's apiVersion in debugging. (#1914) Fix the Subscription's apiVersion in eventing debugging example.yaml file. According to the api register in `https://github.com/knative/eventing/tree/master/pkg/apis/messaging`. The Subscription Kind should be in messaging.knative.dev/v1alpha1, while the original file is "eventing.knative.dev/v1alpha1". If apply the original file, the error happened "error: unable to recognize "example.yaml": no matches for kind "Subscription" in version "eventing.knative.dev/v1alpha1"" This update fix this bug. * minor typo fix (#1932) * fix small typo in sample READMEs (#1967) * fix more broken links * fix broken links * update old readfile syntax * revert dynamic var * link to folder not readfile source * fix bad markdown * fix broken titles and links
This commit is contained in:
parent
055be70b8b
commit
a446321306
|
@ -5,4 +5,4 @@ weight: 40
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -146,7 +146,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-clojure.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -145,7 +145,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-dart.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -172,7 +172,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-haskell.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -265,7 +265,7 @@ To verify that your sample app has been successfully deployed:
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-java-micronaut.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -259,7 +259,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-java-quarkus.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -173,7 +173,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-r.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -144,7 +144,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-rserver.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -170,7 +170,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-rust.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -153,7 +153,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-swift.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -233,7 +233,7 @@ To verify that your sample app has been successfully deployed:
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-vertx.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -12,4 +12,4 @@ Learn how to join the community of Knative contributors.
|
|||
Also see our [Community page](../community) for links to Knative chats,
|
||||
discussions, or Q&A.
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -12,7 +12,7 @@ focus on solving mundane but difficult tasks such as:
|
|||
|
||||
- [Deploying a container](./serving/getting-started-knative-app.md)
|
||||
- [Routing and managing traffic with blue/green deployment](./serving/samples/blue-green-deployment.md)
|
||||
- [Scaling automatically and sizing workloads based on demand](./serving/autoscaling.md)
|
||||
- [Scaling automatically and sizing workloads based on demand](./serving/configuring-autoscaling.md)
|
||||
- [Binding running services to eventing ecosystems](./eventing/samples/kubernetes-event-source/)
|
||||
|
||||
Developers on Knative can use familiar idioms, languages, and frameworks to
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 10
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -75,7 +75,7 @@ a
|
|||
Each channel is a separate Kubernetes [Custom Resource](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
|
||||
Events are delivered to Services or forwarded to other channels
|
||||
(possibly of a different type) using
|
||||
[Subscriptions](https://github.com/knative/eventing/blob/master/pkg/apis/eventing/v1alpha1/subscription_types.go#L35).
|
||||
[Subscriptions](https://github.com/knative/eventing/blob/master/pkg/apis/messaging/v1alpha1/subscription_types.go).
|
||||
This allows message delivery in a cluster to vary based on requirements, so that
|
||||
some events might be handled by an in-memory implementation while others would
|
||||
be persisted using Apache Kafka or NATS Streaming.
|
||||
|
@ -117,7 +117,7 @@ The eventing infrastructure supports two forms of event delivery at the moment:
|
|||
using
|
||||
[Channels](https://github.com/knative/eventing/blob/master/pkg/apis/messaging/v1alpha1/channel_types.go#L57)
|
||||
and
|
||||
[Subscriptions](https://github.com/knative/eventing/blob/master/pkg/apis/eventing/v1alpha1/subscription_types.go#L35).
|
||||
[Subscriptions](https://github.com/knative/eventing/blob/master/pkg/apis/messaging/v1alpha1/subscription_types.go).
|
||||
In this case, the Channel implementation ensures that messages are delivered
|
||||
to the requested destinations and should buffer the events if the destination
|
||||
Service is unavailable.
|
||||
|
@ -311,7 +311,7 @@ Knative Serving application so that they can be consumed.
|
|||
certificate.
|
||||
|
||||
See the
|
||||
[Kafka Source](https://github.com/knative/eventing-contrib/tree/{{< branch >}}/kafka/source)
|
||||
[Kafka Source](https://github.com/knative/eventing-contrib/tree/master/kafka/source)
|
||||
example.
|
||||
|
||||
### CamelSource
|
||||
|
@ -341,7 +341,7 @@ to be installed into the current namespace.
|
|||
development purposes.
|
||||
|
||||
See the
|
||||
[CamelSource](https://github.com/knative/eventing-contrib/tree/{{< branch >}}/camel/source/samples)
|
||||
[CamelSource](https://github.com/knative/eventing-contrib/tree/master/camel/source/samples)
|
||||
example.
|
||||
|
||||
## Getting Started
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 60
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Channels are Kubernetes [Custom Resources]((https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)) which define a single event forwarding
|
||||
Channels are Kubernetes [Custom Resources](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) which define a single event forwarding
|
||||
and persistence layer. Messaging implementations may provide implementations of
|
||||
Channels via a Kubernetes Custom Resource, supporting different technologies, such as Apache Kafka or NATS
|
||||
Streaming.
|
||||
|
|
|
@ -6,4 +6,4 @@ type: "docs"
|
|||
showlandingtoc: "true"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -40,7 +40,7 @@ metadata:
|
|||
|
||||
# The Subscription to the InMemoryChannel.
|
||||
|
||||
apiVersion: eventing.knative.dev/v1alpha1
|
||||
apiVersion: messaging.knative.dev/v1alpha1
|
||||
kind: Subscription
|
||||
metadata:
|
||||
name: sub
|
||||
|
|
|
@ -8,7 +8,7 @@ type: "docs"
|
|||
|
||||
The Event Registry maintains a catalog of the event types that can be consumed
|
||||
from the different Brokers. It introduces a new
|
||||
[EventType](../reference/eventing/eventing.md) CRD in order to persist the event
|
||||
[EventType](../reference/eventing/) CRD in order to persist the event
|
||||
type's information in the cluster's data store.
|
||||
|
||||
## Before you begin
|
||||
|
@ -258,7 +258,7 @@ the next topic: How do we actually populate the registry in the first place?
|
|||
|
||||
If you are interested in more information regarding configuration options of a
|
||||
KafkaSource, please refer to the
|
||||
[KafKaSource example](https://github.com/knative/eventing-contrib/tree/{{< branch >}}/kafka/source/samples).
|
||||
[KafKaSource sample](./samples/kafka/).
|
||||
|
||||
For this discussion, the relevant information from the yaml above are the
|
||||
`sink` and the `topics`. We observe that the `sink` is of kind `Broker`. We
|
||||
|
|
|
@ -498,7 +498,7 @@ After sending events, verify that your events were received by the appropriate `
|
|||
|
||||
After you finish this guide, delete your namespace to conserve resources if you do not plan to use them.
|
||||
|
||||
Note: If you plan to continue learning about Knative Eventing with one of our [code samples](./samples/_index.md), check the requirements of the sample and make sure you do not need a namespace before you delete `event-example`. You can always reuse your namespaces.
|
||||
Note: If you plan to continue learning about Knative Eventing with one of our [code samples](./samples/), check the requirements of the sample and make sure you do not need a namespace before you delete `event-example`. You can always reuse your namespaces.
|
||||
|
||||
Run the following command to delete `event-example`:
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ CamelSources from the namespace:
|
|||
kubectl delete camelsource --all
|
||||
```
|
||||
|
||||
Install the [mqtt CamelSource](mqtt_telegram.yaml):
|
||||
Install the [mqtt CamelSource](source_telegram.yaml):
|
||||
|
||||
```shell
|
||||
kubectl apply -f source_mqtt.yaml
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
Following examples include a simple web app written in the language of your choice that you can use to test knative eventing. It shows how to consume a [CloudEvent](https://cloudevents.io/) in Knative eventing, and optionally how to respond back with another CloudEvent in the http response.
|
||||
Following examples include a simple web app written in the language of your choice that you can
|
||||
use to test knative eventing. It shows how to consume a [CloudEvent](https://cloudevents.io/)
|
||||
in Knative eventing, and optionally how to respond back with another CloudEvent in the HTTP response.
|
||||
|
||||
We will deploy the app as a [Kubernetes Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) along with a [Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service/). However, you can also deploy the app as a [Knative Serving Service](../../../serving/README.md)
|
||||
We will deploy the app as a
|
||||
[Kubernetes Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/)
|
||||
along with a
|
||||
[Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service/).
|
||||
However, you can also deploy the app as a [Knative Serving Service](../../../serving/README.md)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- A Kubernetes cluster with [Knative Eventing](../../getting-started.md#installing-knative-eventing) installed.
|
||||
- If you decide to deploy the app as a Knative Serving Service then you will have to install [Knative Serving](../../../install/README.md).
|
||||
- A Kubernetes cluster with [Knative Eventing](../../getting-started.md#installing-knative-eventing)
|
||||
installed.
|
||||
- If you decide to deploy the app as a Knative Serving Service then you will have to install
|
||||
[Knative Serving](../../../install/README.md).
|
||||
- [Docker](https://www.docker.com) installed and running on your local machine,
|
||||
and a Docker Hub account configured (we'll use it for a container registry).
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 10
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 20
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 10
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
---
|
||||
title: "Apache Kafka Channel Example"
|
||||
linkTitle: "Apache Kafka Channel Example"
|
||||
linkTitle: "Channel Example"
|
||||
weight: 20
|
||||
type: "docs"
|
||||
---
|
||||
|
||||
# Apache Kafka CRD default channel
|
||||
|
||||
You can install and configure the Apache Kafka CRD (`KafkaChannel`) as the default channel configuration in Knative Eventing.
|
||||
|
||||
## Prerequisites
|
||||
|
@ -47,7 +45,9 @@ You can now set the `KafkaChannel` CRD as the default channel configuration.
|
|||
|
||||
## Specifying the default channel configuration
|
||||
|
||||
To configure the usage of the `KafkaChannel` CRD as the [default channel configuration](../../../channels/default-channels.md), edit the `default-ch-webhook` ConfigMap as follows:
|
||||
To configure the usage of the `KafkaChannel` CRD as the
|
||||
[default channel configuration](../../../channels/default-channels.md),
|
||||
edit the `default-ch-webhook` ConfigMap as follows:
|
||||
|
||||
```
|
||||
cat <<-EOF | kubectl apply -f -
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
---
|
||||
title: "Apache Kafka Source Example"
|
||||
linkTitle: "Apache Kafka Source Example"
|
||||
linkTitle: "Source Example"
|
||||
weight: 20
|
||||
type: "docs"
|
||||
---
|
||||
|
||||
# Apache Kafka - Source Example
|
||||
|
||||
Tutorial on how to build and deploy a `KafkaSource` [Eventing source](../../../sources/README.md) using a Knative Serving `Service`.
|
||||
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 10
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 20
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 20
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -12,7 +12,7 @@ taking the output of that `Sequence` and displaying the resulting output.
|
|||

|
||||
|
||||
The functions used in these examples live in
|
||||
(https://github.com/vaikas/transformer)[https://github.com/vaikas/transformer]
|
||||
[https://github.com/vaikas/transformer](https://github.com/vaikas/transformer).
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ finally displaying the resulting output.
|
|||

|
||||
|
||||
The functions used in these examples live in
|
||||
(https://github.com/vaikas/transformer)[https://github.com/vaikas/transformer]
|
||||
[https://github.com/vaikas/transformer](https://github.com/vaikas/transformer).
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ can then do either external work, or out of band create additional events.
|
|||

|
||||
|
||||
The functions used in these examples live in
|
||||
(https://github.com/vaikas/transformer)[https://github.com/vaikas/transformer]
|
||||
[https://github.com/vaikas/transformer](https://github.com/vaikas/transformer).
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ If you want to use different type of `Channel`, you will have to modify the
|
|||

|
||||
|
||||
The functions used in these examples live in
|
||||
(https://github.com/vaikas/transformer)[https://github.com/vaikas/transformer]
|
||||
[https://github.com/vaikas/transformer](https://github.com/vaikas/transformer).
|
||||
|
||||
## Setup
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ git commit -m "Initial commit" --allow-empty
|
|||
## Create a Kubebuilder project
|
||||
|
||||
_When in doubt, the
|
||||
[Kubebuilder Quick Start docs](https://book.kubebuilder.io/quick_start.html) are
|
||||
[Kubebuilder Quick Start docs](https://book.kubebuilder.io/quick-start.html) are
|
||||
likely more current than these instructions._
|
||||
|
||||
Use the `kubebuilder init` command in the repo root directory to create the
|
||||
|
|
|
@ -13,7 +13,7 @@ to learn more about Kubebuilder.
|
|||
## Create the Source CRD Skeleton
|
||||
|
||||
_When in doubt, the
|
||||
[Kubebuilder Quick Start docs](https://book.kubebuilder.io/quick_start.html) are
|
||||
[Kubebuilder Quick Start docs](https://book.kubebuilder.io/quick-start.html) are
|
||||
likely more current than these instructions._
|
||||
|
||||
Use the `kubebuilder create api` command to create the API definition for a new
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 60
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -3,7 +3,6 @@ title: "Performing a Custom Knative Installation"
|
|||
linkTitle: "Customizing your install"
|
||||
weight: 15
|
||||
type: "docs"
|
||||
markup: "mmark"
|
||||
---
|
||||
|
||||
Use this guide to perform a custom installation of Knative on an existing
|
||||
|
|
|
@ -5,7 +5,7 @@ weight: 10
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
[MicroK8s](https://microk8s.io) is a lightweight, powerful fully-conformant Kubernetes that tracks upstream releases and makes clustering trivial. It can run on any flavor of Linux that supports [Snap](https://snapcraft.io) packages. It can run on Windows and Mac OS using [Mutlipass](https://multipass.run).
|
||||
[MicroK8s](https://microk8s.io) is a lightweight, powerful fully-conformant Kubernetes that tracks upstream releases and makes clustering trivial. It can run on any flavor of Linux that supports [Snap](https://snapcraft.io) packages. It can run on Windows and Mac OS using [Multipass](https://multipass.run).
|
||||
This guide walks you through the installation of Knative using MicroK8s.
|
||||
|
||||
If you need help or support please reach out on the [Kubernetes forum](https://discuss.kubernetes.io/tags/microk8s) or Kubernetes.slack.com channel #microk8s.
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 05
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 30
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{< readfile file="eventing.md" relative="true" >}}
|
||||
{{< readfile file="eventing.md" >}}
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 50
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{< readfile file="eventing-contrib.md" relative="true" >}}
|
||||
{{< readfile file="eventing-contrib.md" >}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<p>See the <a href="https://github.com/knative/eventing/tree/{{< branch >}}/pkg/apis">Knative Eventing repo</a> for the API.</p>
|
||||
<p>See the <a href="https://github.com/knative/eventing/tree/master/pkg/apis">Knative Eventing repo</a> for the API.</p>
|
||||
|
||||
<p>There is currently an <a href="https://github.com/knative/docs/issues/1661">API doc build tool issue</a> that we hope to resolve soon.</p>
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 50
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{< readfile file="serving.md" relative="true" >}}
|
||||
{{< readfile file="serving.md" >}}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<p>See the <a href="https://github.com/knative/serving/tree/{{< branch >}}/pkg/apis">Knative Serving repo</a> for the API.</p>
|
||||
<p>See the <a href="https://github.com/knative/serving/tree/master/pkg/apis">Knative Serving repo</a> for the API.</p>
|
||||
|
||||
<p>There is currently an <a href="https://github.com/knative/docs/issues/1661">API doc build tool issue</a> that we hope to resolve soon.</p>
|
||||
|
|
|
@ -36,7 +36,7 @@ serverless workload behaves on the cluster:
|
|||
are immutable objects and can be retained for as long as useful. Knative
|
||||
Serving Revisions can be automatically scaled up and down according to
|
||||
incoming traffic. See
|
||||
[Configuring the Autoscaler](./configuring-the-autoscaler.md) for more
|
||||
[Configuring the Autoscaler](./configuring-autoscaling.md) for more
|
||||
information.
|
||||
|
||||

|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 20
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -30,7 +30,7 @@ includes the desired output plugin. Two examples below:
|
|||
### Send logs to Elasticsearch
|
||||
|
||||
Operators can use
|
||||
[k8s.gcr.io/fluentd-elasticsearch:v2.0.4](https://github.com/kubernetes/kubernetes/tree/{{< branch >}}/cluster/addons/fluentd-elasticsearch/fluentd-es-image)
|
||||
[k8s.gcr.io/fluentd-elasticsearch:v2.0.4](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch/fluentd-es-image)
|
||||
which includes
|
||||
[fluent-plugin-elasticsearch](https://github.com/uken/fluent-plugin-elasticsearch)
|
||||
that allows sending logs to a Elasticsearch service.
|
||||
|
@ -38,7 +38,7 @@ that allows sending logs to a Elasticsearch service.
|
|||
### Send logs to Stackdriver
|
||||
|
||||
This sample [Dockerfile](./stackdriver/Dockerfile) is based on
|
||||
[k8s.gcr.io/fluentd-elasticsearch:v2.0.4](https://github.com/kubernetes/kubernetes/tree/{{< branch >}}/cluster/addons/fluentd-elasticsearch).
|
||||
[k8s.gcr.io/fluentd-elasticsearch:v2.0.4](https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch).
|
||||
It additionally adds one more plugin -
|
||||
[fluent-plugin-google-cloud](https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud)
|
||||
which allows sending logs to Stackdriver.
|
||||
|
|
|
@ -134,3 +134,9 @@ To remove the sample app from your cluster, delete the service record:
|
|||
```shell
|
||||
kubectl delete --filename service.yaml
|
||||
```
|
||||
|
||||
Alternatively, delete the service by name:
|
||||
|
||||
```shell
|
||||
kubectl delete kservice helloworld-go
|
||||
```
|
||||
|
|
|
@ -93,5 +93,5 @@ The networking-istio deployment reconciles a cluster's ingress into an
|
|||
click
|
||||
[here](https://github.com/knative/serving/blob/master/docs/spec/overview.md#service).
|
||||
- For a high-level analysis of Serving, look at the [documentation here](./).
|
||||
- Check out the Knative Seriving code samples [here](./samples/) for more
|
||||
- Check out the Knative Serving code samples [here](./samples/) for more
|
||||
hands-on tutorials.
|
||||
|
|
|
@ -5,4 +5,4 @@ weight: 100
|
|||
type: "docs"
|
||||
---
|
||||
|
||||
{{% readfile file="README.md" relative="true" markdown="true" %}}
|
||||
{{% readfile file="README.md" %}}
|
||||
|
|
|
@ -179,7 +179,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-csharp.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -177,7 +177,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-go.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -136,7 +136,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-java.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -186,7 +186,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-java-spring.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -206,7 +206,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-kotlin.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -189,7 +189,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-nodejs.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -135,7 +135,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-php.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -151,7 +151,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-python.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -148,7 +148,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-ruby.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -187,7 +187,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://helloworld-shell.default.1.2.3.4.xip.io
|
||||
|
|
|
@ -56,7 +56,7 @@ cd knative-docs/serving/samples/secrets-go
|
|||
log.Print("Secrets sample started.")
|
||||
|
||||
// This sets up the standard GCS storage client, which will pull
|
||||
// credentials from GOOGLE_APPLICATION_DEFAULT if specified.
|
||||
// credentials from GOOGLE_APPLICATION_CREDENTIALS if specified.
|
||||
ctx := context.Background()
|
||||
client, err := storage.NewClient(ctx)
|
||||
if err != nil {
|
||||
|
@ -184,7 +184,7 @@ cd knative-docs/serving/samples/secrets-go
|
|||
# - `robot.json` is determined by the "key" that is used to hold the
|
||||
# secret content in the Kubernetes secret. This can be changed
|
||||
# if both places are changed.
|
||||
- name: GOOGLE_APPLICATION_DEFAULT
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secret/robot.json
|
||||
|
||||
# This section specified where in the container we want the
|
||||
|
@ -248,7 +248,7 @@ folder) you're ready to build and deploy the sample app.
|
|||
```
|
||||
|
||||
1. Now you can make a request to your app and see the result. Replace
|
||||
the URL below the with URL returned in the previous command.
|
||||
the URL below with the URL returned in the previous command.
|
||||
|
||||
```shell
|
||||
curl http://secrets-go.default.1.2.3.4.xip.io
|
||||
|
|
Loading…
Reference in New Issue