argocd-example-apps/sock-shop/base/user-db-dep.yaml

42 lines
821 B
YAML
Raw Permalink Normal View History

2018-06-29 08:44:33 +00:00
---
2018-06-29 08:11:51 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: user-db
labels:
name: user-db
spec:
replicas: 1
selector:
matchLabels:
name: user-db
template:
metadata:
labels:
name: user-db
spec:
containers:
- name: user-db
2018-06-29 08:44:33 +00:00
image: weaveworksdemos/user-db:0.3.0
2018-06-29 08:11:51 +00:00
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 08:44:33 +00:00
beta.kubernetes.io/os: linux