Files
deploy/astrololo/presentation.yaml
T
2026-07-19 21:51:29 +02:00

34 lines
913 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: presentation
namespace: astrololo
spec:
replicas: 1
selector: { matchLabels: { app: presentation } }
template:
metadata: { labels: { app: presentation } }
spec:
imagePullSecrets: [{ name: gitea-registry }]
containers:
- name: presentation
image: gitea.czernobog.pl/gitea/astrololo-presentation:9323803c
ports: [{ containerPort: 8000 }]
env:
- name: LOGIC_URL
value: "http://logic:8001"
resources:
requests: { cpu: "100m", memory: "128Mi" }
limits: { cpu: "300m", memory: "256Mi" }
---
apiVersion: v1
kind: Service
metadata:
name: presentation
namespace: astrololo
spec:
type: NodePort # wejście z przeglądarki
selector: { app: presentation }
ports: [{ port: 8000, targetPort: 8000 }]