35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: logic
|
|
namespace: astrololo
|
|
spec:
|
|
replicas: 1
|
|
selector: { matchLabels: { app: logic } }
|
|
template:
|
|
metadata: { labels: { app: logic } }
|
|
spec:
|
|
imagePullSecrets: [{ name: gitea-registry }]
|
|
containers:
|
|
- name: logic
|
|
image: gitea.czernobog.pl/gitea/astrololo-logic:v0.1.0
|
|
ports: [{ containerPort: 8001 }]
|
|
env:
|
|
- name: DATA_URL
|
|
value: "http://data:8002" # discovery po nazwie Service
|
|
- name: EPHEMERIS_ENGINE
|
|
value: "own" # silnik własny; swisseph pominięty
|
|
# ENGINE_SWISSEPH_URL celowo NIE ustawiamy — engine-swisseph nie jest wdrażany
|
|
resources:
|
|
requests: { cpu: "100m", memory: "128Mi" }
|
|
limits: { cpu: "500m", memory: "512Mi" }
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: logic
|
|
namespace: astrololo
|
|
spec:
|
|
selector: { app: logic }
|
|
ports: [{ port: 8001, targetPort: 8001 }]
|