mirror of https://github.com/dapr/docs.git
Merge branch 'v1.1' into common-issues-update-link-liveness
This commit is contained in:
commit
8a61fe1ca1
|
@ -9,9 +9,16 @@ description: "Common issues and problems faced when running Dapr applications"
|
||||||
## I don't see the Dapr sidecar injected to my pod
|
## I don't see the Dapr sidecar injected to my pod
|
||||||
|
|
||||||
There could be several reasons to why a sidecar will not be injected into a pod.
|
There could be several reasons to why a sidecar will not be injected into a pod.
|
||||||
First, check your Deployment or Pod YAML file, and check that you have the following annotations in the right place:
|
First, check your deployment or pod YAML file, and check that you have the following annotations in the right place:
|
||||||
|
|
||||||
Sample deployment:
|
```yaml
|
||||||
|
annotations:
|
||||||
|
dapr.io/enabled: "true"
|
||||||
|
dapr.io/app-id: "nodeapp"
|
||||||
|
dapr.io/app-port: "3000"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Sample deployment:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
@ -31,9 +38,9 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: node
|
app: node
|
||||||
annotations:
|
annotations:
|
||||||
<b>dapr.io/enabled: "true"</b>
|
dapr.io/enabled: "true"
|
||||||
<b>dapr.io/app-id: "nodeapp"</b>
|
dapr.io/app-id: "nodeapp"
|
||||||
<b>dapr.io/app-port: "3000"</b>
|
dapr.io/app-port: "3000"
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: node
|
- name: node
|
||||||
|
|
Loading…
Reference in New Issue