añadido Argos Core
This commit is contained in:
@@ -5,30 +5,30 @@ metadata:
|
||||
namespace: argos-core
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: argos-panel } }
|
||||
selector:
|
||||
matchLabels: { app: argos-panel }
|
||||
template:
|
||||
metadata: { labels: { app: argos-panel } }
|
||||
metadata:
|
||||
labels: { app: argos-panel }
|
||||
spec:
|
||||
containers:
|
||||
- name: panel
|
||||
image: harbor.c2et.net/library/python:3.13.7-slim-bookworm
|
||||
image: 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
|
||||
exec uvicorn app:app --host 0.0.0.0 --port 8000 --app-dir /app
|
||||
envFrom:
|
||||
- secretRef: { name: argos-panel-secret }
|
||||
volumeMounts:
|
||||
- { name: app, mountPath: /app }
|
||||
- { name: data, mountPath: /data }
|
||||
- { name: app, mountPath: /app }
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
- { containerPort: 8000, name: http }
|
||||
volumes:
|
||||
- name: app
|
||||
configMap:
|
||||
name: argos-panel-config
|
||||
items: [ { key: app.py, path: app.py } ]
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
items:
|
||||
- { key: app.py, path: app.py }
|
||||
|
||||
Reference in New Issue
Block a user