85 lines
1.8 KiB
YAML
85 lines
1.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: eveai-app
|
|
namespace: eveai-staging
|
|
labels:
|
|
app: eveai-app
|
|
component: frontend
|
|
role: web
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: eveai-app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: eveai-app
|
|
component: frontend
|
|
role: web
|
|
spec:
|
|
containers:
|
|
- name: eveai-app
|
|
image: josakola/eveai_app:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
envFrom:
|
|
- secretRef:
|
|
name: eveai-secrets
|
|
env:
|
|
- name: COMPONENT_NAME
|
|
value: "eveai_app"
|
|
- name: ROLE
|
|
value: "web"
|
|
- name: PORT
|
|
value: "8080"
|
|
- name: PUSH_GATEWAY_HOST
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: eveai-secrets
|
|
key: PUSH_GATEWAY_HOST
|
|
optional: true
|
|
- name: PUSH_GATEWAY_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: eveai-secrets
|
|
key: PUSH_GATEWAY_PORT
|
|
optional: true
|
|
resources:
|
|
requests:
|
|
cpu: "150m"
|
|
memory: "256Mi"
|
|
limits:
|
|
cpu: "500m"
|
|
memory: "512Mi"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz/ready
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz/live
|
|
port: http
|
|
initialDelaySeconds: 25
|
|
periodSeconds: 20
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: eveai-app-service
|
|
namespace: eveai-staging
|
|
labels:
|
|
app: eveai-app
|
|
spec:
|
|
selector:
|
|
app: eveai-app
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 8080
|
|
type: ClusterIP
|