astrololo: manifesty k8s (data+logic+presentation)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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 }]
|
||||
Reference in New Issue
Block a user