forked from microservices-demo/microservices-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-db-dep.yaml
50 lines (49 loc) · 1.12 KB
/
user-db-dep.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: user-db
labels:
name: user-db
kube-monkey/enabled: enabled
kube-monkey/identifier: user-db
kube-monkey/mtbf: '2'
kube-monkey/kill-mode: "fixed"
kube-monkey/kill-value: 1
namespace: sock-shop
spec:
replicas: 1
template:
metadata:
labels:
name: user-db
kube-monkey/enabled: enabled
kube-monkey/identifier: user-db
kube-monkey/mtbf: '2'
kube-monkey/kill-mode: "fixed"
kube-monkey/kill-value: 1
spec:
containers:
- name: user-db
image: weaveworksdemos/user-db:0.3.0
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:
beta.kubernetes.io/os: linux