35 lines
761 B
YAML
35 lines
761 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: zenohd-deployment
|
|
labels:
|
|
app: zenohd
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: zenohd
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: zenohd
|
|
spec:
|
|
containers:
|
|
- name: zenohd
|
|
image: zenoh-k3s-registry:5000/zenoh-router:latest
|
|
args: ["-c", "/opt/zenohd/router.yaml"]
|
|
volumeMounts:
|
|
- mountPath: /opt/zenohd
|
|
name: zenohd-conf
|
|
ports:
|
|
- containerPort: 8000
|
|
name: rest-port
|
|
- containerPort: 8001
|
|
name: websocket-port
|
|
- containerPort: 7447
|
|
name: zenoh-port
|
|
volumes:
|
|
- name: zenohd-conf
|
|
configMap:
|
|
name: zenohd-conf |