-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitcoind-us-west1.yaml
117 lines (117 loc) · 2.25 KB
/
bitcoind-us-west1.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
apiVersion: v1
kind: PersistentVolume
metadata:
name: bitcoind-1
spec:
capacity:
storage: 250Gi
accessModes:
- ReadWriteOnce
gcePersistentDisk:
pdName: bitcoind-1
fsType: ext4
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: bitcoind-1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 250Gi
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: bitcoind
spec:
serviceName: bitcoind
replicas: 1
template:
metadata:
labels:
app: bitcoind
spec:
containers:
- name: bitcoind
image: us.gcr.io/ompldr/bitcoind:latest
args: [
"-conf=/bitcoin/bitcoin.conf",
"-disablewallet",
"-printtoconsole",
"-testnet",
"-externalip=35.203.138.238",
"-port=18333",
"-rpcport=18332",
]
resources:
requests:
cpu: "0.25"
memory: "0.5Gi"
ports:
- containerPort: 18333
name: bitcoind
- containerPort: 18332
name: bitcoind-rpc
- containerPort: 18501
name: bitcoind-zmq
volumeMounts:
- name: bitcoind-1
mountPath: /root/.bitcoin
readinessProbe:
tcpSocket:
port: 18332
initialDelaySeconds: 120
periodSeconds: 5
livenessProbe:
tcpSocket:
port: 18332
initialDelaySeconds: 120
periodSeconds: 5
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
name: bitcoind-1
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 250Gi
---
apiVersion: v1
kind: Service
metadata:
name: bitcoind-internal
labels:
app: bitcoind
annotations:
cloud.google.com/load-balancer-type: "Internal"
spec:
selector:
app: bitcoind
ports:
- port: 18332
name: bitcoind-rpc
targetPort: 18332
- port: 18501
name: bitcoind-zmq
targetPort: 18501
---
apiVersion: v1
kind: Service
metadata:
name: bitcoind-external
labels:
app: bitcoind
spec:
type: LoadBalancer
selector:
app: bitcoind
ports:
- port: 18333
name: bitcoind
targetPort: 18333
loadBalancerIP: "35.203.138.238"