zkt24/z2/deployment.yml

60 lines
1.2 KiB
YAML
Raw Normal View History

2024-04-25 11:51:47 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: p2p-node
namespace: veritas
spec:
replicas: 1
selector:
matchLabels:
name: p2p-node
template:
metadata:
labels:
name: p2p-node
spec:
containers:
- env:
- name: PORT
value: "6000"
name: p2pnode
image: localhost:5000/veritasnode
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
ports:
- containerPort: 6000
hostPort: 6000
protocol: TCP
volumeMounts:
- mountPath: /app
name: node-data
volumes:
- name: node-data
persistentVolumeClaim:
claimName: node-data
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: veritasfe
namespace: veritas
spec:
replicas: 1
selector:
matchLabels:
app: veritasfe
template:
metadata:
labels:
app: veritasfe
spec:
containers:
- image: localhost:5000/veritasfe
name: frontend
ports:
- containerPort: 3000
hostPort: 3000
protocol: TCP
restartPolicy: Always