forked from weaveworks/wks-quickstart-firekube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wks-controller.yaml
55 lines (55 loc) · 1.49 KB
/
wks-controller.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wks-controller
namespace: weavek8sops
labels:
name: wks-controller
control-plane: wks-controller
controller-tools.k8s.io: "1.0"
spec:
replicas: 1
selector:
matchLabels:
name: wks-controller
template:
metadata:
labels:
name: wks-controller
control-plane: wks-controller
controller-tools.k8s.io: "1.0"
spec:
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
# Allow scheduling on master nodes. This is required because during
# bootstrapping of the cluster, we may initially have just one master,
# and would then need to deploy this controller there to set the entire
# cluster up.
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
# Mark this as a critical addon:
- key: CriticalAddonsOnly
operator: Exists
# Only schedule on nodes which are ready and reachable:
- effect: NoExecute
key: node.alpha.kubernetes.io/notReady
operator: Exists
- effect: NoExecute
key: node.alpha.kubernetes.io/unreachable
operator: Exists
containers:
- name: controller
image: quay.io/wksctl/controller:0.8.0
command:
- /bin/controller
- --verbose
resources:
limits:
cpu: 100m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi