This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 369
/
wks-controller.yaml
60 lines (60 loc) · 1.63 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
56
57
58
59
60
---
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
env:
- name: FOOTLOOSE_SERVER_ADDR
value: 172.17.0.1
- name: FOOTLOOSE_BACKEND
value: docker
image: docker.io/weaveworks/wksctl-controller:v0.8.4
command:
- /bin/controller
- --verbose
resources:
limits:
cpu: 100m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi