57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
# Verification service deployment
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: verify-service
|
|
namespace: eveai-staging
|
|
labels:
|
|
app: verify-service
|
|
component: verification
|
|
environment: staging
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: verify-service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: verify-service
|
|
component: verification
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:alpine
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: html-content
|
|
mountPath: /usr/share/nginx/html
|
|
- name: nginx-config
|
|
mountPath: /etc/nginx/conf.d
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "64Mi"
|
|
cpu: "100m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /verify/health
|
|
port: 80
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /verify/health
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
volumes:
|
|
- name: html-content
|
|
configMap:
|
|
name: verify-content
|
|
- name: nginx-config
|
|
configMap:
|
|
name: verify-nginx-config |