Queries, k8s.

This commit is contained in:
jimmy committed 2024-09-30 00:11:59 +00:00
1 parent 3250a5adc6
commit 0f20533eaa
21 files changed
+324 -23

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: zenoh-conf
data:
peer.yaml: |
mode: peer
listen:
endpoints:
- "tcp/0.0.0.0:1223"
connect:
endpoints:
- "tcp/zenohd-zenoh-service.default.svc.cluster.local:7447"
scouting:
multicast:
enabled: false
gossip:
enabled: true
routing:
router:
peers_failover_brokering: true
peer:
mode: linkstate
+34
View File
@@ -0,0 +1,34 @@
---
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
+6
View File
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- deployment.yaml
- service.yaml
+12
View File
@@ -0,0 +1,12 @@
---
apiVersion: v1
kind: Service
metadata:
name: zenoh-publisher-service
spec:
selector:
app: zenoh-publisher
ports:
- protocol: TCP
port: 1223
name: zenoh-port