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

+33
View File
@@ -0,0 +1,33 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: zenohd-conf
data:
router.yaml: |
mode: router
listen:
endpoints:
- "tcp/0.0.0.0:7447"
scouting:
multicast:
enabled: false
gossip:
enabled: true
multihop: true
routing:
router:
peers_failover_brokering: true
peer:
mode: linkstate
plugins_loading:
enabled: true
plugins:
rest:
__required__: true
http_port: 8000
storage_manager:
storages:
primary_memory:
key_expr: "**"
volume: memory
+35
View File
@@ -0,0 +1,35 @@
---
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
+6
View File
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- deployment.yaml
- service.yaml
+28
View File
@@ -0,0 +1,28 @@
---
apiVersion: v1
kind: Service
metadata:
name: zenohd-zenoh-service
spec:
selector:
app: zenohd
type: LoadBalancer
ports:
- protocol: TCP
port: 7447
name: zenoh-port
---
apiVersion: v1
kind: Service
metadata:
name: zenohd-web-service
spec:
selector:
app: zenohd
ports:
- protocol: TCP
port: 8000
name: rest-port
- protocol: TCP
port: 8001
name: websocket-port