2023-03-17 09:05:00 +00:00
|
|
|
# apiVersion: v1
|
|
|
|
# kind: Pod
|
|
|
|
# metadata:
|
|
|
|
# name: codex-pod
|
|
|
|
# spec:
|
|
|
|
# containers:
|
|
|
|
# - name: codex-node-container
|
|
|
|
# image: thatbenbierens/nim-codex:sha-c9a62de
|
|
|
|
# ports:
|
|
|
|
# - containerPort: 8080
|
|
|
|
|
|
|
|
# kind: PersistentVolumeClaim
|
|
|
|
# apiVersion: v1
|
|
|
|
# metadata:
|
2023-03-17 09:23:28 +00:00
|
|
|
# name: codex-volume
|
2023-03-17 09:05:00 +00:00
|
|
|
# spec:
|
|
|
|
# accessModes:
|
|
|
|
# - ReadWriteOnce
|
|
|
|
# resources:
|
|
|
|
# requests:
|
|
|
|
# storage: 1Gi
|
|
|
|
# storageClassName: rbd
|
|
|
|
|
|
|
|
# ---
|
|
|
|
|
2023-03-17 10:09:55 +00:00
|
|
|
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
|
2023-03-17 10:09:55 +00:00
|
|
|
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:
|
|
|
|
- name: codex-node
|
|
|
|
image: thatbenbierens/nim-codex:sha-c9a62de
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: codex-api-port
|
|
|
|
env:
|
|
|
|
- name: LOG_LEVEL
|
|
|
|
value: WARN
|
2023-03-17 09:23:28 +00:00
|
|
|
# volumeMounts:
|
|
|
|
# - mountPath: /datadir
|
|
|
|
# name: codex-data
|
2023-03-17 09:05:00 +00:00
|
|
|
# volumes:
|
|
|
|
# - name: codex-data
|
|
|
|
# persistentVolumeClaim:
|
2023-03-17 09:23:28 +00:00
|
|
|
# claimName: codex-volume
|
2023-03-17 09:05:00 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: codex-entrypoint
|
2023-03-17 10:09:55 +00:00
|
|
|
namespace: codex-test-namespace
|
2023-03-17 09:05:00 +00:00
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
selector:
|
|
|
|
codex-node: dist-test
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 8080
|
|
|
|
targetPort: codex-api-port
|
|
|
|
nodePort: 30001
|