-
Notifications
You must be signed in to change notification settings - Fork 4
/
deployment.yaml
59 lines (59 loc) · 1.29 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: apps/v1
kind: Deployment
metadata:
namespace: kube-system
name: flannel-fixer-deployment
labels:
app: flannel-fixer
spec:
replicas: 1
selector:
matchLabels:
app: flannel-fixer
template:
metadata:
labels:
app: flannel-fixer
spec:
serviceAccountName: flannel-fixer
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
containers:
- name: flannel-fixer
image: "alekcander/k3s-flannel-fixer:0.0.2"
command:
- flannel-fixer
ports:
- containerPort: 2112
name: metrics
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: flannel-fixer
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: flannel-fixer
namespace: kube-system
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["nodes"]
verbs: ["get", "watch", "list","update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
namespace: kube-system
name: flannel-fixer-role-binding
roleRef:
kind: ClusterRole
name: flannel-fixer
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: flannel-fixer
namespace: kube-system