forked from Pier-Two/ChainlinkKubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
40 lines (40 loc) · 1.02 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: chainlink-deployment
labels:
app: chainlink-node
spec:
replicas: 2
selector:
matchLabels:
app: chainlink-node
template:
metadata:
labels:
app: chainlink-node
spec:
containers:
- name: chainlink
image: smartcontract/chainlink:latest
#command: ["/bin/bash", "-c", "echo $(ETH_URL)"]
args: ["local", "n", "-p", "/chainlink/.password", "-a", "/chainlink/.api"]
envFrom:
- configMapRef:
name: node-env
ports:
- containerPort: 6688
volumeMounts:
- name: api-volume
mountPath: /chainlink/.api
subPath: .api
- name: password-volume
mountPath: /chainlink/.password
subPath: .password
volumes:
- name: api-volume
secret:
secretName: api-env
- name: password-volume
secret:
secretName: password-env