forked from kubebn/talos-proxmox-kaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrolplane.yaml.tpl
264 lines (264 loc) · 8.52 KB
/
controlplane.yaml.tpl
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
machine:
nodeLabels:
node.cloudprovider.kubernetes.io/platform: proxmox
topology.kubernetes.io/region: ${px_region}
topology.kubernetes.io/zone: ${px_node}
certSANs:
- ${apiDomain}
- ${ipv4_vip}
- ${ipv4_local}
kubelet:
defaultRuntimeSeccompProfileEnabled: true # Enable container runtime default Seccomp profile.
disableManifestsDirectory: true # The `disableManifestsDirectory` field configures the kubelet to get static pod manifests from the /etc/kubernetes/manifests directory.
extraArgs:
rotate-server-certificates: true
clusterDNS:
- 169.254.2.53
- ${cidrhost(split(",",serviceSubnets)[0], 10)}
network:
hostname: "${hostname}"
interfaces:
- interface: eth0
addresses:
- ${ipv4_local}/24
vip:
ip: ${ipv4_vip}
- interface: dummy0
addresses:
- 169.254.2.53/32
extraHostEntries:
- ip: 127.0.0.1
aliases:
- ${apiDomain}
nameservers:
- 1.1.1.1
- 8.8.8.8
kubespan:
enabled: false
install:
disk: /dev/sda
image: ghcr.io/siderolabs/installer:${talos-version}
bootloader: true
wipe: false
sysctls:
net.core.somaxconn: 65535
net.core.netdev_max_backlog: 4096
systemDiskEncryption:
state:
provider: luks2
options:
- no_read_workqueue
- no_write_workqueue
keys:
- nodeID: {}
slot: 0
ephemeral:
provider: luks2
options:
- no_read_workqueue
- no_write_workqueue
keys:
- nodeID: {}
slot: 0
time:
servers:
- time.cloudflare.com
# Features describe individual Talos features that can be switched on or off.
features:
rbac: true # Enable role-based access control (RBAC).
stableHostname: true # Enable stable default hostname.
apidCheckExtKeyUsage: true # Enable checks for extended key usage of client certificates in apid.
kubernetesTalosAPIAccess:
enabled: true
allowedRoles:
- os:reader
allowedKubernetesNamespaces:
- kube-system
kernel:
modules:
- name: br_netfilter
parameters:
- nf_conntrack_max=131072
registries:
mirrors:
docker.io:
endpoints:
- http://${registry-endpoint}/v2/proxy-docker.io
overridePath: true
ghcr.io:
endpoints:
- http://${registry-endpoint}/v2/proxy-ghcr.io
overridePath: true
gcr.io:
endpoints:
- http://${registry-endpoint}/v2/proxy-gcr.io
overridePath: true
registry.k8s.io:
endpoints:
- http://${registry-endpoint}/v2/proxy-registry.k8s.io
overridePath: true
quay.io:
endpoints:
- http://${registry-endpoint}/v2/proxy-quay.io
overridePath: true
cluster:
controlPlane:
endpoint: https://${apiDomain}:6443
network:
dnsDomain: ${domain}
podSubnets: ${format("%#v",split(",",podSubnets))}
serviceSubnets: ${format("%#v",split(",",serviceSubnets))}
cni:
name: custom
urls:
- https://raw.githubusercontent.com/kubebn/talos-proxmox-kaas/main/manifests/talos/cilium.yaml
proxy:
disabled: true
etcd:
extraArgs:
listen-metrics-urls: http://0.0.0.0:2381
inlineManifests:
- name: fluxcd
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: flux-system
labels:
app.kubernetes.io/instance: flux-system
app.kubernetes.io/part-of: flux
pod-security.kubernetes.io/warn: restricted
pod-security.kubernetes.io/warn-version: latest
- name: cilium
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: cilium
labels:
pod-security.kubernetes.io/enforce: "privileged"
- name: d8-system
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: d8-system
labels:
pod-security.kubernetes.io/enforce: "privileged"
- name: external-dns
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: external-dns
- name: kasten
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: kasten-io
- name: cert-manager
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: cert-manager
- name: ingress-nginx
contents: |-
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
- name: flux-system-secret
contents: |-
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: github-creds
namespace: flux-system
data:
identity: ${base64encode(identity)}
identity.pub: ${base64encode(identitypub)}
known_hosts: ${base64encode(knownhosts)}
- name: proxmox-cloud-controller-manager
contents: |-
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: proxmox-cloud-controller-manager
namespace: kube-system
data:
config.yaml: ${base64encode(clusters)}
- name: proxmox-csi-plugin
contents: |-
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: proxmox-csi-plugin
namespace: csi-proxmox
data:
config.yaml: ${base64encode(clusters)}
- name: proxmox-operator-creds
contents: |-
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: proxmox-operator-creds
namespace: kube-system
data:
config.yaml: ${base64encode(pxcreds)}
- name: metallb-addresspool
contents: |-
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- ${metallb_l2_addressrange}
- name: metallb-l2
contents: |-
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: layer2
namespace: metallb-system
spec:
ipAddressPools:
- first-pool
- name: flux-vars
contents: |-
apiVersion: v1
kind: ConfigMap
metadata:
namespace: flux-system
name: cluster-settings
data:
CACHE_REGISTRY: ${registry-endpoint}
SIDERO_ENDPOINT: ${sidero-endpoint}
STORAGE_CLASS: ${storageclass}
STORAGE_CLASS_XFS: ${storageclass-xfs}
CLUSTER_0_VIP: ${cluster-0-vip}
externalCloudProvider:
enabled: true
manifests:
- https://raw.githubusercontent.com/kubebn/talos-proxmox-kaas/main/manifests/talos/coredns-local.yaml
- https://raw.githubusercontent.com/kubebn/talos-proxmox-kaas/main/manifests/talos/metallb-native.yaml
- https://raw.githubusercontent.com/kubebn/talos-proxmox-kaas/main/manifests/talos/metrics-server.yaml
- https://raw.githubusercontent.com/kubebn/talos-proxmox-kaas/main/manifests/talos/fluxcd.yaml
- https://raw.githubusercontent.com/kubebn/talos-proxmox-kaas/main/manifests/talos/fluxcd-install.yaml
- https://raw.githubusercontent.com/sergelogvinov/terraform-talos/main/_deployments/vars/talos-cloud-controller-manager-result.yaml
- https://raw.githubusercontent.com/sergelogvinov/proxmox-cloud-controller-manager/main/docs/deploy/cloud-controller-manager-talos.yml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.64.1/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml