cloudnet-compose/k8s-specifications/db-deployment.yaml

22 lines
387 B
YAML
Raw Normal View History

2018-03-05 12:57:48 +01:00
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: db
namespace: vote
2018-03-05 12:57:48 +01:00
spec:
replicas: 1
template:
metadata:
labels:
app: db
spec:
containers:
- image: postgres:9.4
name: db
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: db-data
volumes:
- name: db-data
emptyDir: {}