-
Notifications
You must be signed in to change notification settings - Fork 3
/
worker-flux-sc.yaml
76 lines (76 loc) · 1.9 KB
/
worker-flux-sc.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: metal.sidero.dev/v1alpha2
kind: ServerClass
metadata:
name: worker-cluster-flux
spec:
selector:
matchLabels:
worker-flux: "true"
qualifiers:
hardware:
- compute:
processors:
- manufacturer: QEMU
productName: pc-i440fx-7.1
configPatches:
- op: add
path: /machine/network/interfaces
value:
- deviceSelector:
busPath: "0*"
dhcp: true
- interface: dummy0
addresses:
- 169.254.2.53/32
- op: add
path: /machine/network/extraHostEntries
value:
- ip: "${CLUSTER_FLUX_VIP}"
aliases:
- api.cluster.local
- op: add
path: /machine/network/nameservers
value:
- 1.1.1.1
- 8.8.8.8
- op: replace
path: /machine/install
value:
disk: /dev/sda
extraKernelArgs: ['elevator=noop']
- op: replace
path: /cluster/proxy
value:
disabled: true
- op: replace
path: /machine/kubelet/extraArgs
value:
rotate-server-certificates: true
- op: replace
path: /machine/kubelet/clusterDNS
value:
- 169.254.2.53
- 10.96.0.10
- op: replace
path: /machine/registries/mirrors
value:
docker.io:
endpoints:
- http://${CACHE_REGISTRY}:80/v2/proxy-docker.io
overridePath: true
ghcr.io:
endpoints:
- http://${CACHE_REGISTRY}:80/v2/proxy-ghcr.io
overridePath: true
gcr.io:
endpoints:
- http://${CACHE_REGISTRY}:80/v2/proxy-gcr.io
overridePath: true
registry.k8s.io:
endpoints:
- http://${CACHE_REGISTRY}:80/v2/proxy-registry.k8s.io
overridePath: true
quay.io:
endpoints:
- http://${CACHE_REGISTRY}:80/v2/proxy-quay.io
overridePath: true