-
Notifications
You must be signed in to change notification settings - Fork 0
/
pub.yaml
58 lines (58 loc) · 1.13 KB
/
pub.yaml
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
54
55
56
57
58
---
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: pubsub
namespace: gatekeeper-system
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: redis-master.default.svc.cluster.local:6379
- name: redisPassword
secretKeyRef:
name: redis
key: redis-password
# ---
# apiVersion: dapr.io/v1alpha1
# kind: Component
# metadata:
# name: pubsub
# namespace: gatekeeper-system
# spec:
# type: pubsub.in-memory
# version: v1
# metadata: []
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pub
namespace: gatekeeper-system
labels:
app: pub
spec:
replicas: 1
selector:
matchLabels:
app: pub
template:
metadata:
labels:
app: pub
annotations:
dapr.io/enabled: "true"
dapr.io/app-id: "orders"
dapr.io/metrics-port: "9999"
dapr.io/enable-api-logging: "true"
spec:
containers:
- name: go-pub
image: docker.io/jaydipgabani/publisher:latest
imagePullPolicy: Always
env:
- name: NUMBER
value: "1000"
- name: BROKERNAME
value: "Redis"