2018-06-29 10:44:33 +02:00
|
|
|
---
|
2018-06-29 10:11:51 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: carts-db
|
|
|
|
labels:
|
|
|
|
name: carts-db
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: carts-db
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: carts-db
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: carts-db
|
|
|
|
image: mongo
|
|
|
|
ports:
|
|
|
|
- name: mongo
|
|
|
|
containerPort: 27017
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- all
|
|
|
|
add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /tmp
|
|
|
|
name: tmp-volume
|
|
|
|
volumes:
|
|
|
|
- name: tmp-volume
|
|
|
|
emptyDir:
|
|
|
|
medium: Memory
|
|
|
|
nodeSelector:
|
2018-06-29 10:44:33 +02:00
|
|
|
beta.kubernetes.io/os: linux
|