zenoh-exp/k8s/publisher/deployment.yaml

34 lines
728 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: zenoh-publisher-deployment
labels:
app: zenoh-publisher
spec:
replicas: 1
selector:
matchLabels:
app: zenoh-publisher
template:
metadata:
labels:
app: zenoh-publisher
spec:
containers:
- name: publisher
image: zenoh-k3s-registry:5000/zenoh-exp:latest
args: ["pub"]
env:
- name: ZENOH_CONFIG
value: "/opt/zenoh/peer.yaml"
volumeMounts:
- mountPath: /opt/zenoh
name: zenoh-conf
ports:
- containerPort: 1223
name: zenoh-port
volumes:
- name: zenoh-conf
configMap:
name: zenoh-conf