cloudnet-compose/k8s-specifications/db-deployment.yaml
Bret Fisher c0e29c622c update to app/v1 and yaml parity
update yaml to current deployment manifest defaults and try for more pairity between kube-deploy.yml and k8s-specifications
2019-08-26 01:52:41 -04:00

30 lines
517 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: db
name: db
namespace: vote
spec:
replicas: 1
selector:
matchLabels:
app: db
template:
metadata:
labels:
app: db
spec:
containers:
- image: postgres:9.4
name: postgres
ports:
- containerPort: 5432
name: postgres
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: db-data
volumes:
- name: db-data
emptyDir: {}