-
Notifications
You must be signed in to change notification settings - Fork 13
/
ledger-writer.yaml
101 lines (101 loc) · 2.79 KB
/
ledger-writer.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: apps/v1
kind: Deployment
metadata:
name: ledgerwriter
spec:
selector:
matchLabels:
app: ledgerwriter
template:
metadata:
labels:
app: ledgerwriter
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: ledgerwriter
image: ghcr.io/nginxinc/bos-ledgerwriter:v1.3.0
imagePullPolicy: Always
volumeMounts:
- name: publickey
mountPath: /root/.ssh
readOnly: true
env:
- name: APP_NAME
value: ledger-writer
- name: OTEL_EXPORTER_OTLP_ENDPOINT
valueFrom:
configMapKeyRef:
name: tracing-config
key: OTEL_EXPORTER_OTLP_ENDPOINT
- name: ENABLE_TRACING
valueFrom:
configMapKeyRef:
name: tracing-config
key: ENABLE_TRACING
- name: ENABLE_METRICS
valueFrom:
configMapKeyRef:
name: tracing-config
key: ENABLE_METRICS
- name: VERSION
value: v1.2.0
- name: PORT
value: "8080"
- name: ENABLE_TRACING
value: "true"
- name: ENABLE_METRICS
value: "true"
# tell Java to obey container memory limits
- name: JVM_OPTS
value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
# service level override of log level
- name: LOG_LEVEL
value: info
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
envFrom:
- configMapRef:
name: environment-config
- configMapRef:
name: service-api-config
# add ledger-db credentials from ConfigMap
- configMapRef:
name: ledger-db-config
readinessProbe:
httpGet:
path: /z/health/readiness
port: 8080
initialDelaySeconds: 60
periodSeconds: 5
timeoutSeconds: 10
livenessProbe:
httpGet:
path: /z/health/liveness
port: 8080
initialDelaySeconds: 120
periodSeconds: 5
timeoutSeconds: 10
volumes:
- name: publickey
secret:
secretName: jwt-key
items:
- key: jwtRS256.key.pub
path: publickey
---
apiVersion: v1
kind: Service
metadata:
name: ledgerwriter
spec:
type: ClusterIP
selector:
app: ledgerwriter
ports:
- name: http
port: 8080
targetPort: 8080