Files
goalfylearning-admin/k8s/deployment.yaml

63 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: goalfymax-admin
namespace: goalfyagent
labels:
app: goalfymax-admin
spec:
replicas: 2
selector:
matchLabels:
app: goalfymax-admin
template:
metadata:
labels:
app: goalfymax-admin
spec:
containers:
- name: goalfymax-admin
image: 177603749739.dkr.ecr.us-west-2.amazonaws.com/goalfy/goalfymax-admin:latest
imagePullPolicy: Always
ports:
- containerPort: 8087
name: http
protocol: TCP
args:
- "--config"
- "/app/etc/config-prod.yaml"
- "--env"
- "prod"
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
livenessProbe:
httpGet:
path: /health
port: 8087
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 8087
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
volumeMounts:
- name: config
mountPath: /app/etc
readOnly: true
volumes:
- name: config
configMap:
name: goalfymax-admin-config
restartPolicy: Always