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