-
Notifications
You must be signed in to change notification settings - Fork 3
/
deploy.yml
76 lines (70 loc) · 1.4 KB
/
deploy.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
kind: ServiceAccount
apiVersion: v1
metadata:
name: trow-garbage-collector-sa
namespace: trow
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: trow-garbage-collector-r
namespace: trow
rules:
- apiGroups: [""]
resources:
- pods
verbs:
- get
- list
- apiGroups: [""]
resources:
- pods/exec
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: trow-garbage-collector-rb
namespace: trow
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: trow-garbage-collector-r
subjects:
- kind: ServiceAccount
name: trow-garbage-collector-sa
namespace: trow
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: trow-garbage-collector
name: trow-garbage-collector
namespace: trow
spec:
replicas: 1
selector:
matchLabels:
app: trow-garbage-collector
template:
metadata:
labels:
app: trow-garbage-collector
spec:
serviceAccountName: trow-garbage-collector-sa
securityContext:
runAsUser: 405
runAsGroup: 65533
containers:
- image: compumike/trow-garbage-collector:latest
imagePullPolicy: Always
name: main
resources:
requests:
memory: "50Mi"
cpu: "10m"
limits:
memory: "100Mi"
cpu: "50m"