-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yaml
77 lines (76 loc) · 1.49 KB
/
deploy.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: v1
kind: ServiceAccount
metadata:
name: sorry-gke
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: sorry-gke
namespace: kube-system
rules:
- apiGroups: [kopf.dev]
resources: [kopfpeerings]
verbs: [list, watch, patch, get]
- apiGroups: [""]
resources: ["events"]
verbs: ["create"]
- apiGroups: ["apps"]
resources: ["deployments", "deployments/status"]
verbs: ["list", "get", "watch", "patch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: sorry-gke
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: sorry-gke
subjects:
- kind: ServiceAccount
name: sorry-gke
namespace: kube-system
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: sorry-gke
namespace: kube-system
spec:
selector:
matchLabels:
app: sorry-gke
maxUnavailable: 1
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sorry-gke
namespace: kube-system
labels:
app: sorry-gke
spec:
replicas: 1
selector:
matchLabels:
app: sorry-gke
template:
metadata:
labels:
app: sorry-gke
spec:
serviceAccountName: sorry-gke
containers:
- name: sorry-gke
image: guyguy333/sorry-gke
imagePullPolicy: Always
resources:
limits:
cpu: 25m
memory: 200Mi
requests:
cpu: 25m
memory: 50Mi