c0e29c622c
update yaml to current deployment manifest defaults and try for more pairity between kube-deploy.yml and k8s-specifications
30 lines
517 B
YAML
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: {}
|