-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcluster-cilium.yaml
146 lines (146 loc) · 4.05 KB
/
cluster-cilium.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
labels:
cluster.x-k8s.io/proxmox-cluster-cni: cilium
name: capmox-cluster
spec:
topology:
class: proxmox-clusterclass-cilium-v0.1.0
version: 1.27.8
controlPlane:
replicas: 1
workers:
machineDeployments:
- class: proxmox-worker
name: proxmox-worker-pool
replicas: 3
- class: proxmox-loadbalancer
name: proxmox-loadbalancer-pool
replicas: 0
variables:
- name: allowedNodes
value:
- pve1
- pve2
- pve3
- name: controlPlaneEndpoint
value:
host: 10.10.10.9
port: 6443
- name: dnsServers
value: [8.8.8.8, 8.8.4.4]
- name: ipv4Config
value:
addresses: [10.10.10.10-10.10.10.20]
gateway: 10.10.10.1
prefix: 24
# - name: ipv6Config
# value:
# addresses: [2001:db8:1::10-2001:db8:1::20]
# gateway: 2001:db8:1::1
# prefix: 64
- name: kubeProxy
value:
mode: iptables
- name: cloneSpec
value:
machineSpec:
controlPlane:
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# numSockets: 1
# numCores: 4
# memoryMiB: 4096
sourceNode: pve1
templateID: 100
workerNode:
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# numSockets: 1
# numCores: 4
# memoryMiB: 4096
sourceNode: pve1
templateID: 100
loadBalancer:
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
sourceNode: pve1
templateID: 100
sshAuthorizedKeys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPK5kBd7cxXAHZ6UbeE+ysOlSjOFare3fCCZJ3xtXt1 [email protected]
# virtualIPNetworkInterface: eno1
# ---
# apiVersion: ipam.cluster.x-k8s.io/v1alpha2
# kind: GlobalInClusterIPPool
# metadata:
# name: shared-inclusteripv4pool
# spec:
# addresses:
# - 10.10.11.1
# - 10.10.11.2
# - 10.10.11.3
# prefix: 24
# gateway: 10.10.11.254
# ---
# apiVersion: ipam.cluster.x-k8s.io/v1alpha2
# kind: GlobalInClusterIPPool
# metadata:
# name: shared-inclusteripv6pool
# spec:
# addresses:
# - 2001:db8::10
# - 2001:db8::11
# - 2001:db8::12
# prefix: 64
# gateway: 2001:db8::1