Skip to content

Commit

Permalink
fix: define resiliency policy
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <hey@mike.ee>
  • Loading branch information
mikeee committed Jul 25, 2024
1 parent ff7603a commit 231fb83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tutorials/hello-kubernetes/dapr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 1
common:
resourcesPath: ./resources
apps:
- appDirPath: ./node
appID: nodeapp
Expand All @@ -7,4 +9,4 @@ apps:
createService: true
- appDirPath: ./python
appID: pythonapp
containerImage: ghcr.io/dapr/samples/hello-k8s-python:latest
containerImage: ghcr.io/dapr/samples/hello-k8s-python:latest
8 changes: 8 additions & 0 deletions tutorials/hello-kubernetes/resources/resiliency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
spec:
policies:
retries:
# Global Retry Policy
DefaultRetryPolicy:
policy: constant
duration: 1s
maxRetries: -1

0 comments on commit 231fb83

Please sign in to comment.