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

74 lines
1.4 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: thatbenbierens/nim-codex:sha-b204837
2023-03-17 09:05:00 +00:00
ports:
- containerPort: 8080
2023-03-22 09:38:10 +00:00
name: codex-api-port1
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
- name: codex-node2
image: thatbenbierens/nim-codex:sha-b204837
ports:
- containerPort: 8081
name: codex-api-port2
env:
- name: API_PORT
value: "8081"
- name: DATA_DIR
value: datadir2
- name: DISC_PORT
value: "8091"
- name: LISTEN_ADDRS
value: "/ip4/0.0.0.0/tcp/8072"
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-22 09:38:10 +00:00
targetPort: codex-api-port1
2023-03-17 09:05:00 +00:00
nodePort: 30001
2023-03-22 09:38:10 +00:00
- name: "node2"
protocol: TCP
port: 8081
targetPort: codex-api-port2
nodePort: 30002