-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
59 lines (59 loc) · 1.25 KB
/
deployment.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
51
52
53
54
55
56
57
58
59
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: pod-crash-controller
namespace: kube-demo
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: pod-crash-controller-role
namespace: kube-demo
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["list","get","watch"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-crash-controller-access
namespace: kube-demo
subjects:
- kind: ServiceAccount
name: pod-crash-controller
roleRef:
kind: Role
name: pod-crash-controller-role
apiGroup: rbac.authorization.k8s.io
---
#apiVersion: apps/v1
#kind: Deployment
#metadata:
# name: pod-crash-controller
# namespace: kube-demo
# labels:
# k8s-app: pod-crash-controller
#spec:
# replicas: 1
# selector:
# matchLabels:
# k8s-app: pod-crash-controller
# template:
# metadata:
# labels:
# k8s-app: pod-crash-controller
# spec:
# serviceAccountName: pod-crash-controller
# containers:
# - name: pod-crash-controller
# image: santoshr1016/pod-crash-controller
# imagePullPolicy: IfNotPresent
# resources:
# limits:
# cpu: 200m
# memory: 300Mi
# requests:
# cpu: 150m
# memory: 250Mi