1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-14 04:32:29 +00:00
senpy/k8s/senpy-deployment.yaml.tmpl
J. Fernando Sánchez 98d368dd9a k8s: fix volume mount
2023-09-27 11:01:15 +02:00

37 lines
762 B
Cheetah

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: senpy-latest
spec:
replicas: 1
selector:
matchLabels:
app: senpy-latest
template:
metadata:
labels:
app: senpy-latest
role: senpy-latest
spec:
containers:
- name: senpy-latest
image: $IMAGEWTAG
imagePullPolicy: Always
args: ["--enable-cors"]
resources:
limits:
memory: "512Mi"
cpu: "1000m"
ports:
- name: web
containerPort: 5000
volumeMounts:
- name: senpy-data
mountPath: /senpy-data
subPath: data
volumes:
- name: senpy-data
persistentVolumeClaim:
claimName: pvc-senpy