-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreating_infra_node.txt
66 lines (52 loc) · 1.51 KB
/
creating_infra_node.txt
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
https://tinyexplosions.com/posts/infra-nodes/
# oc edit node worker-x.ocp.example.net
Remove worker label
add label:
Spec -> Template -> Spec -> Metadata -> Label
node-role.kubernetes.io/infra: ""
#Edit the ingress controller
oc edit ingresscontroller default -n openshift-ingress-operator -o yaml
spec:
nodePlacement:
nodeSelector:
matchLabels:
node-role.kubernetes.io/infra: ""
replicas: 3
#Move the registry pods on infra:
#oc edit config cluster
spec:
nodeSelector:
node-role.kubernetes.io/infra: ""
-----------------
apiVersion: machine.openshift.io/v1beta1
kind: MachineSet
metadata:
labels:
machine.openshift.io/cluster-api-cluster: xxx-t7lrf
name: xxx-t7lrf-infra
namespace: openshift-machine-api
spec:
replicas: 3
selector:
matchLabels:
machine.openshift.io/cluster-api-cluster: xxx-t7lrf
machine.openshift.io/cluster-api-machineset: xxx-t7lrf-infra
template:
metadata:
labels:
machine.openshift.io/cluster-api-cluster: xxx-t7lrf
machine.openshift.io/cluster-api-machine-role: infra
machine.openshift.io/cluster-api-machine-type: worker
machine.openshift.io/cluster-api-machineset: xxx-t7lrf-infra
spec:
lifecycleHooks: {}
metadata:
labels:
node-role.kubernetes.io/infra: ""
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/infra
value: reserved
- effect: NoExecute
key: node-role.kubernetes.io/infra
value: reserved