35 lines
913 B
YAML
35 lines
913 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: glucose-dashboard
|
|
labels:
|
|
app: glucose-dashboard
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: glucose-dashboard
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: glucose-dashboard
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
containers:
|
|
- name: glucose-dashboard
|
|
image: PLACEHOLDER
|
|
envFrom:
|
|
- configMapRef:
|
|
name: glucose-dashboard-config
|
|
ports:
|
|
- containerPort: 8501
|
|
resources:
|
|
requests: { cpu: 100m, memory: 256Mi }
|
|
limits: { cpu: 500m, memory: 512Mi }
|
|
readinessProbe:
|
|
httpGet: { path: /_stcore/health, port: 8501 }
|
|
initialDelaySeconds: 10
|
|
livenessProbe:
|
|
httpGet: { path: /_stcore/health, port: 8501 }
|
|
initialDelaySeconds: 30 |