dapr / dapr/samples

dapr-apim-integration sample: event-subscriber missing dapr.io/app-id annotation

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
443
Forks
180
PR merge metrics
No merged PRs in 30d

Description

In file: https://github.com/dapr/samples/blob/master/dapr-apim-integration/k8s/event-subscriber.yaml

When I run: `kubectl get pods`

I see no pods for event-subscriber.

When I run `kubctl get deploy event-subscriber -o yaml`, I see an error under `status:`

```
message: 'admission webhook "sidecar-injector.dapr.io" denied the request: value
for the dapr.io/app-id annotation is empty'
```

Updating and applying `k8s/event-subscriber.yaml` fixes this issue:

```yaml
# dapr.io/id: "event-subscriber"
dapr.io/app-id: "event-subscriber"
```

My environment:

* Dapr 1.5.1
* Kubernetes: v1.21.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.