2
0
mirror of synced 2025-01-23 14:59:14 +00:00

example yml

This commit is contained in:
benbierens 2023-03-23 12:36:36 +01:00
parent 1a31f32456
commit 6e068882ca
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA

View File

@ -27,26 +27,30 @@ spec:
image: thatbenbierens/nim-codex:sha-b204837 image: thatbenbierens/nim-codex:sha-b204837
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: codex-api-port1 name: api-1
env: env:
- name: API_PORT - name: API_PORT
value: "8080" value: "8080"
- name: DATA_DIR - name: DATA_DIR
value: datadir1 value: datadir1
- name: DISC_PORT
value: "8081"
- name: LISTEN_ADDRS
value: "/ip4/0.0.0.0/tcp/8082"
- name: codex-node2 - name: codex-node2
image: thatbenbierens/nim-codex:sha-b204837 image: thatbenbierens/nim-codex:sha-b204837
ports: ports:
- containerPort: 8081 - containerPort: 8083
name: codex-api-port2 name: api-2
env: env:
- name: API_PORT - name: API_PORT
value: "8081" value: "8083"
- name: DATA_DIR - name: DATA_DIR
value: datadir2 value: datadir2
- name: DISC_PORT - name: DISC_PORT
value: "8091" value: "8084"
- name: LISTEN_ADDRS - name: LISTEN_ADDRS
value: "/ip4/0.0.0.0/tcp/8072" value: "/ip4/0.0.0.0/tcp/8085"
--- ---
@ -63,11 +67,11 @@ spec:
- name: "node1" - name: "node1"
protocol: TCP protocol: TCP
port: 8080 port: 8080
targetPort: codex-api-port1 targetPort: api-1
nodePort: 30001 nodePort: 30001
- name: "node2" - name: "node2"
protocol: TCP protocol: TCP
port: 8081 port: 8083
targetPort: codex-api-port2 targetPort: api-2
nodePort: 30002 nodePort: 30002