-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstacks-signer-1.template.yaml
More file actions
83 lines (83 loc) · 2.65 KB
/
stacks-signer-1.template.yaml
File metadata and controls
83 lines (83 loc) · 2.65 KB
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: stacks-signer-1
app.kubernetes.io/instance: "{user_id}"
app.kubernetes.io/managed-by: stacks-devnet-api
app.kubernetes.io/name: stacks-signer-1
argocd.argoproj.io/instance: platform-user-resources.platform
annotations:
argocd.argoproj.io/tracking-id: platform-user-resources.platform:apps/Deployment:{user_id}/argo-cd
name: stacks-signer-1
namespace: "{namespace}"
spec:
replicas: 1
serviceName: stacks-signer-1
selector:
matchLabels:
app.kubernetes.io/component: stacks-signer-1
app.kubernetes.io/instance: "{user_id}"
app.kubernetes.io/managed-by: stacks-devnet-api
app.kubernetes.io/name: stacks-signer-1
template:
metadata:
labels:
app.kubernetes.io/component: stacks-signer-1
app.kubernetes.io/instance: "{user_id}"
app.kubernetes.io/managed-by: stacks-devnet-api
app.kubernetes.io/name: stacks-signer-1
annotations:
argocd.argoproj.io/tracking-id: platform-user-resources.platform:apps/Deployment:{user_id}/argo-cd
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cloud.google.com/gke-preemptible
operator: DoesNotExist
containers:
- name: stacks-signer-1
command:
- stacks-signer
- run
- --config=/src/stacks-signer-1/Signer.toml
image: quay.io/hirosystems/stacks-signer:devnet-3.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 30001
name: signer-event
protocol: TCP
resources:
requests:
cpu: 250m
memory: 750Mi # todo: revisit allocation
limits:
memory: 750Mi # todo: revisit allocation
volumeMounts:
- mountPath: /chainstate/
name: signer-db
- mountPath: /src/stacks-signer-1
name: stacks-signer-1
readOnly: true
resources:
requests:
cpu: 250m
memory: 750Mi # todo: revisit allocation
limits:
memory: 750Mi # todo: revisit allocation
volumes:
- configMap:
name: stacks-signer-1
name: stacks-signer-1
volumeClaimTemplates:
- metadata:
name: signer-db
spec:
accessModes:
- ReadWriteOnce
storageClassName: premium-rwo
resources:
requests:
storage: 1Gi