añadido gitea y medio argos
This commit is contained in:
34
argos/deployments/deploy-mediamtx.yaml
Normal file
34
argos/deployments/deploy-mediamtx.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mediamtx
|
||||
namespace: argos-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: mediamtx } }
|
||||
template:
|
||||
metadata: { labels: { app: mediamtx } }
|
||||
spec:
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: mediamtx
|
||||
image: bluenviron/mediamtx:1.14.0
|
||||
command: ["/bin/sh","-c"]
|
||||
args:
|
||||
- |
|
||||
set -e
|
||||
ulimit -n 1048576
|
||||
exec mediamtx /config/mediamtx.yml
|
||||
volumeMounts:
|
||||
- name: cfg
|
||||
mountPath: /config
|
||||
ports:
|
||||
- containerPort: 8554 # RTSP
|
||||
- containerPort: 8189 # SRT
|
||||
- containerPort: 8889 # WHIP
|
||||
- containerPort: 8880 # HTTP/API
|
||||
volumes:
|
||||
- name: cfg
|
||||
configMap:
|
||||
name: mediamtx-config
|
||||
27
argos/deployments/deploy-minio.yaml
Normal file
27
argos/deployments/deploy-minio.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: minio
|
||||
namespace: argos-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: minio } }
|
||||
template:
|
||||
metadata: { labels: { app: minio } }
|
||||
spec:
|
||||
containers:
|
||||
- name: minio
|
||||
image: quay.io/minio/minio:latest
|
||||
args: ["server", "/data", "--console-address", ":9001"]
|
||||
envFrom:
|
||||
- secretRef: { name: minio-creds }
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
- containerPort: 9001
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: minio-data
|
||||
26
argos/deployments/deploy-mosquitto.yaml
Normal file
26
argos/deployments/deploy-mosquitto.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mosquitto
|
||||
namespace: argos-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: mosquitto } }
|
||||
template:
|
||||
metadata: { labels: { app: mosquitto } }
|
||||
spec:
|
||||
containers:
|
||||
- name: mosquitto
|
||||
image: harbor.c2et.net/library/eclipse-mosquitto:latest
|
||||
ports:
|
||||
- containerPort: 1883
|
||||
volumeMounts:
|
||||
- name: cfg
|
||||
mountPath: /mosquitto/config
|
||||
volumes:
|
||||
- name: cfg
|
||||
configMap:
|
||||
name: mosquitto-conf
|
||||
items:
|
||||
- key: mosquitto.conf
|
||||
path: mosquitto.conf
|
||||
35
argos/deployments/deploy-orchestrator.yaml
Normal file
35
argos/deployments/deploy-orchestrator.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: argos-orchestrator
|
||||
namespace: argos-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: argos-orchestrator } }
|
||||
template:
|
||||
metadata: { labels: { app: argos-orchestrator } }
|
||||
spec:
|
||||
containers:
|
||||
- name: orchestrator
|
||||
image: harbor.c2et.net/library/python:3.13.7-slim-bookworm
|
||||
command: ["/bin/sh","-c"]
|
||||
args:
|
||||
- |
|
||||
set -e
|
||||
apt-get update && apt-get install -y --no-install-recommends ffmpeg curl && rm -rf /var/lib/apt/lists/*
|
||||
pip install paho-mqtt minio pyyaml requests
|
||||
python /app/app.py
|
||||
envFrom:
|
||||
- secretRef: { name: argos-orchestrator-secret }
|
||||
volumeMounts:
|
||||
- { name: cfg, mountPath: /app }
|
||||
- { name: data, mountPath: /data }
|
||||
volumes:
|
||||
- name: cfg
|
||||
configMap:
|
||||
name: argos-orchestrator-config
|
||||
items:
|
||||
- { key: app.py, path: app.py }
|
||||
- { key: settings.yaml, path: settings.yaml }
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
34
argos/deployments/deploy-panel.yaml
Normal file
34
argos/deployments/deploy-panel.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: argos-panel
|
||||
namespace: argos-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: argos-panel } }
|
||||
template:
|
||||
metadata: { labels: { app: argos-panel } }
|
||||
spec:
|
||||
containers:
|
||||
- name: panel
|
||||
image: docker.io/library/python:3.13.7-slim-bookworm
|
||||
command: ["/bin/sh","-c"]
|
||||
args:
|
||||
- |
|
||||
set -e
|
||||
pip install fastapi uvicorn minio
|
||||
uvicorn app:app --host 0.0.0.0 --port 8000
|
||||
envFrom:
|
||||
- secretRef: { name: argos-panel-secret }
|
||||
volumeMounts:
|
||||
- { name: app, mountPath: /app }
|
||||
- { name: data, mountPath: /data }
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
volumes:
|
||||
- name: app
|
||||
configMap:
|
||||
name: argos-panel-config
|
||||
items: [ { key: app.py, path: app.py } ]
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
Reference in New Issue
Block a user