This repository was archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkubernetes.yaml
More file actions
103 lines (100 loc) · 1.81 KB
/
kubernetes.yaml
File metadata and controls
103 lines (100 loc) · 1.81 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-node-cloudwatch
namespace: kube-system
labels:
app: kube-node-cloudwatch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: kube-node-cloudwatch
namespace: kube-system
labels:
app: kube-node-cloudwatch
roleRef:
kind: ClusterRole
name: kube-node-cloudwatch
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
namespace: "kube-system"
name: kube-node-cloudwatch
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: kube-node-cloudwatch
namespace: kube-system
labels:
app: kube-node-cloudwatch
chart: kube-spot-termination-notice-handler
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- apiGroups:
- extensions
resources:
- replicasets
- daemonsets
verbs:
- get
- list
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
- list
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- patch
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-node-cloudwatch
namespace: kube-system
labels:
k8s-app: kube-node-cloudwatch
spec:
selector:
matchLabels:
name: kube-node-cloudwatch
template:
metadata:
labels:
name: kube-node-cloudwatch
spec:
serviceAccountName: kube-node-cloudwatch
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: kube-node-cloudwatch
image: quay.io/typeform/kube-node-cloudwatch:stable
resources:
limits:
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
terminationGracePeriodSeconds: 30