48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: oil-calculator
|
|
namespace: oil-calculator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: oil-calculator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: oil-calculator
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: oil-calculator
|
|
image: registry.oci.euphon.net/oil-calculator:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8000
|
|
env:
|
|
- name: DB_PATH
|
|
value: /data/oil_calculator.db
|
|
- name: FRONTEND_DIR
|
|
value: /app/frontend
|
|
- name: ADMIN_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: oil-calculator-secrets
|
|
key: admin-token
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m"
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: oil-calculator-data
|