/
gcp-pubsub-10-blocks.yaml
62 lines (59 loc) · 1.26 KB
/
gcp-pubsub-10-blocks.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
59
60
61
62
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ${TEST_NAME}
data:
daemon.toml: |-
[source]
type = "N2N"
address = ["Tcp", "relays-new.cardano-mainnet.iohk.io:3001"]
magic = "mainnet"
[source.finalize]
max_block_quantity = 10
[source.intersect]
type = "Point"
value = [50030552, "5a091e9831bc0fcd6e6bdb2877036bb260abb4e19195517e4153fb041f956df5"]
[sink]
type = "GcpPubSub"
topic = "oura-e2e"
---
apiVersion: batch/v1
kind: Job
metadata:
name: ${TEST_NAME}
labels:
app: ${TEST_NAME}
spec:
backoffLimit: 1
template:
metadata:
labels:
app: ${TEST_NAME}
spec:
restartPolicy: "Never"
serviceAccount: test
serviceAccountName: test
containers:
- name: main
image: ${TARGET_IMAGE}
env:
- name: "RUST_LOG"
value: "warn"
- name: ""
resources:
requests:
memory: 100Mi
cpu: 50m
limits:
memory: 500Mi
cpu: 200m
args:
- "daemon"
volumeMounts:
- mountPath: /etc/oura
name: oura-config
volumes:
- name: oura-config
configMap:
name: ${TEST_NAME}