-
Notifications
You must be signed in to change notification settings - Fork 4
/
codexnode-manifest.yml
77 lines (72 loc) · 1.48 KB
/
codexnode-manifest.yml
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
apiVersion: v1
kind: Namespace
metadata:
name: codex-test-namespace
labels:
name: codex-test-namespace
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: codex-demo
namespace: codex-test-namespace
spec:
replicas: 1
selector:
matchLabels:
codex-node: dist-test
template:
metadata:
labels:
codex-node: dist-test
spec:
containers:
- name: codex-node1
image: codexstorage/nim-codex:sha-7b88ea0
ports:
- containerPort: 8080
name: api-1
env:
- name: API_PORT
value: "8080"
- name: DATA_DIR
value: datadir1
- name: DISC_PORT
value: "8081"
- name: LISTEN_ADDRS
value: "/ip4/0.0.0.0/tcp/8082"
- name: codex-node2
image: codexstorage/nim-codex:sha-7b88ea0
ports:
- containerPort: 8083
name: api-2
env:
- name: API_PORT
value: "8083"
- name: DATA_DIR
value: datadir2
- name: DISC_PORT
value: "8084"
- name: LISTEN_ADDRS
value: "/ip4/0.0.0.0/tcp/8085"
---
apiVersion: v1
kind: Service
metadata:
name: codex-entrypoint
namespace: codex-test-namespace
spec:
type: NodePort
selector:
codex-node: dist-test
ports:
- name: "node1"
protocol: TCP
port: 8080
targetPort: api-1
nodePort: 30001
- name: "node2"
protocol: TCP
port: 8083
targetPort: api-2
nodePort: 30002