cs-codex-dist-tests/codexnode-manifest.yml

78 lines
1.5 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: Namespace
metadata:
name: codex-test-namespace
labels:
name: codex-test-namespace
---
2023-03-17 09:05:00 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: codex-demo
namespace: codex-test-namespace
2023-03-17 09:05:00 +00:00
spec:
replicas: 1
selector:
matchLabels:
codex-node: dist-test
template:
metadata:
labels:
codex-node: dist-test
spec:
containers:
2023-03-22 09:38:10 +00:00
- name: codex-node1
image: codexstorage/nim-codex:sha-7b88ea0
2023-03-17 09:05:00 +00:00
ports:
- containerPort: 8080
2023-03-23 11:36:36 +00:00
name: api-1
2023-03-17 09:05:00 +00:00
env:
2023-03-22 09:38:10 +00:00
- name: API_PORT
value: "8080"
- name: DATA_DIR
value: datadir1
2023-03-23 11:36:36 +00:00
- name: DISC_PORT
value: "8081"
- name: LISTEN_ADDRS
value: "/ip4/0.0.0.0/tcp/8082"
2023-03-22 09:38:10 +00:00
- name: codex-node2
image: codexstorage/nim-codex:sha-7b88ea0
2023-03-22 09:38:10 +00:00
ports:
2023-03-23 11:36:36 +00:00
- containerPort: 8083
name: api-2
2023-03-22 09:38:10 +00:00
env:
- name: API_PORT
2023-03-23 11:36:36 +00:00
value: "8083"
2023-03-22 09:38:10 +00:00
- name: DATA_DIR
value: datadir2
- name: DISC_PORT
2023-03-23 11:36:36 +00:00
value: "8084"
2023-03-22 09:38:10 +00:00
- name: LISTEN_ADDRS
2023-03-23 11:36:36 +00:00
value: "/ip4/0.0.0.0/tcp/8085"
2023-03-22 09:38:10 +00:00
2023-03-17 09:05:00 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: codex-entrypoint
namespace: codex-test-namespace
2023-03-17 09:05:00 +00:00
spec:
type: NodePort
selector:
codex-node: dist-test
ports:
2023-03-22 09:38:10 +00:00
- name: "node1"
protocol: TCP
2023-03-17 09:05:00 +00:00
port: 8080
2023-03-23 11:36:36 +00:00
targetPort: api-1
2023-03-17 09:05:00 +00:00
nodePort: 30001
2023-03-22 09:38:10 +00:00
- name: "node2"
protocol: TCP
2023-03-23 11:36:36 +00:00
port: 8083
targetPort: api-2
2023-03-22 09:38:10 +00:00
nodePort: 30002