forked from dapr/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidation-worker-deploy.yml
53 lines (51 loc) · 1.17 KB
/
validation-worker-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------------------------------
kind: Service
apiVersion: v1
metadata:
name: validation-worker
labels:
app: validation-worker
spec:
selector:
app: validation-worker
ports:
- protocol: TCP
port: 9988
targetPort: 9988
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: validation-worker-app
labels:
app: validation-worker
spec:
replicas: 1
selector:
matchLabels:
app: validation-worker
template:
metadata:
labels:
app: validation-worker
annotations:
dapr.io/enabled: "true"
dapr.io/app-id: "validation-worker"
dapr.io/log-as-json: "true"
prometheus.io/scrape: 'true'
prometheus.io/port: '9988'
spec:
containers:
- name: validation-worker
image: daprtests.azurecr.io/validation-worker:dev
ports:
- containerPort: 3000
- containerPort: 9988
imagePullPolicy: Always
env:
- name: DELAY_IN_SEC
value: "60"