1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-14 20:42:27 +00:00
senpy/k8s/senpy-deployment.yaml

37 lines
796 B
YAML
Raw Normal View History

2018-06-15 07:46:15 +00:00
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: senpy-$NAME-latest
spec:
replicas: 1
template:
metadata:
labels:
role: $NAME-latest
app: test
spec:
containers:
- name: senpy-latest
image: $IMAGEWTAG
imagePullPolicy: Always
resources:
limits:
2019-04-04 10:56:46 +00:00
memory: "2048Mi"
2018-06-15 07:46:15 +00:00
cpu: "1000m"
ports:
- name: web
containerPort: 5000
2018-06-15 14:44:25 +00:00
volumeMounts:
# name must match the volume name below
- name: senpy-data
mountPath: "/data"
subPath: data
env:
- name: SENPY_DATA
value: '/data'
volumes:
- name: senpy-data
persistentVolumeClaim:
claimName: senpy-pvc