mirror of https://github.com/dapr/docs.git
Merge branch 'v1.9' into fix-2708
This commit is contained in:
commit
f5f5017f35
|
@ -14,9 +14,12 @@ To address this issue the Dapr sidecar has an endpoint to `Shutdown` the sidecar
|
||||||
|
|
||||||
When running a basic [Kubernetes Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) you will need to call the `/shutdown` endpoint for the sidecar to gracefully stop and the job will be considered `Completed`.
|
When running a basic [Kubernetes Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) you will need to call the `/shutdown` endpoint for the sidecar to gracefully stop and the job will be considered `Completed`.
|
||||||
|
|
||||||
When a job is finish without calling `Shutdown` your job will be in a `NotReady` state with only the `daprd` container running endlessly.
|
When a job is finished without calling `Shutdown`, your job will be in a `NotReady` state with only the `daprd` container running endlessly.
|
||||||
|
|
||||||
Be sure and use the *POST* HTTP verb when calling the shutdown API.
|
Stopping the dapr sidecar will cause its readiness and liveness probes to fail in your container because the dapr sidecar was shutdown.
|
||||||
|
To prevent Kubernetes from trying to restart your job, set your job's `restartPolicy` to `Never`.
|
||||||
|
|
||||||
|
Be sure to use the *POST* HTTP verb when calling the shutdown HTTP API.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
|
@ -37,7 +40,7 @@ spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also call the `Shutdown` from any of the Dapr SDK
|
You can also call the `Shutdown` from any of the Dapr SDKs
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
|
@ -32,25 +32,25 @@ description: "How to install Fluentd, Elastic Search, and Kibana to search logs
|
||||||
By default, the chart creates 3 replicas which must be on different nodes. If your cluster has fewer than 3 nodes, specify a smaller number of replicas. For example, this sets the number of replicas to 1:
|
By default, the chart creates 3 replicas which must be on different nodes. If your cluster has fewer than 3 nodes, specify a smaller number of replicas. For example, this sets the number of replicas to 1:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install elasticsearch elastic/elasticsearch -n dapr-monitoring --set replicas=1
|
helm install elasticsearch elastic/elasticsearch --version 7.17.3 -n dapr-monitoring --set replicas=1
|
||||||
```
|
```
|
||||||
|
|
||||||
Otherwise:
|
Otherwise:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install elasticsearch elastic/elasticsearch -n dapr-monitoring
|
helm install elasticsearch elastic/elasticsearch --version 7.17.3 -n dapr-monitoring
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are using minikube or simply want to disable persistent volumes for development purposes, you can do so by using the following command:
|
If you are using minikube or simply want to disable persistent volumes for development purposes, you can do so by using the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install elasticsearch elastic/elasticsearch -n dapr-monitoring --set persistence.enabled=false,replicas=1
|
helm install elasticsearch elastic/elasticsearch --version 7.17.3 -n dapr-monitoring --set persistence.enabled=false,replicas=1
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Install Kibana
|
4. Install Kibana
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm install kibana elastic/kibana -n dapr-monitoring
|
helm install kibana elastic/kibana --version 7.17.3 -n dapr-monitoring
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Ensure that Elastic Search and Kibana are running in your Kubernetes cluster
|
5. Ensure that Elastic Search and Kibana are running in your Kubernetes cluster
|
||||||
|
|
|
@ -230,6 +230,7 @@ Consider an example where you store documents like that:
|
||||||
},
|
},
|
||||||
"city": "Seattle",
|
"city": "Seattle",
|
||||||
"state": "WA"
|
"state": "WA"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue