Skip to content

Commit e56a220

Browse files
authored
feat: Update talos to version 1.9.1 and add selinux workaround (#90)
Update talos to version 1.9.1 and add selinux workaround
1 parent 9436ed8 commit e56a220

File tree

5 files changed

+46
-4
lines changed

5 files changed

+46
-4
lines changed

ephemeral/instance.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "digitalocean_ssh_key" "spectrum" {
1212
}
1313

1414
data "digitalocean_image" "talos" {
15-
name = "talos-v1.8.4"
15+
name = "talos-v1.9.1"
1616
}
1717

1818
resource "digitalocean_droplet" "talos" {
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See:
2+
# - https://github.com/siderolabs/talos/issues/10083
3+
---
4+
apiVersion: apps/v1
5+
kind: DaemonSet
6+
metadata:
7+
name: disable-selinux
8+
namespace: kube-system
9+
labels:
10+
app: disable-selinux
11+
spec:
12+
selector:
13+
matchLabels:
14+
app: disable-selinux
15+
template:
16+
metadata:
17+
labels:
18+
app: disable-selinux
19+
spec:
20+
containers:
21+
- command:
22+
- sh
23+
- -exc
24+
- test -f /host/sys/fs/selinux/enforce && mount -t tmpfs tmpfs /host/sys/fs/selinux; sleep infinity
25+
image: docker.io/library/alpine
26+
name: mount
27+
securityContext:
28+
privileged: true
29+
volumeMounts:
30+
- mountPath: /host
31+
mountPropagation: Bidirectional
32+
name: host-root
33+
hostIPC: true
34+
hostNetwork: true
35+
hostPID: true
36+
tolerations:
37+
- operator: Exists
38+
volumes:
39+
- hostPath:
40+
path: /
41+
name: host-root

flux/components/kubevirt/app/kustomization.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resources:
55
- https://github.com/kubevirt/kubevirt/releases/download/v1.4.0/kubevirt-cr.yaml
66
- https://github.com/kubevirt/containerized-data-importer/releases/download/v1.60.3/cdi-operator.yaml
77
- https://github.com/kubevirt/containerized-data-importer/releases/download/v1.60.3/cdi-cr.yaml
8+
- disable-selinux.yml
89
patches:
910
- target:
1011
kind: Deployment

terraform-modules/talos/talos.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
resource "talos_machine_secrets" "this" {
2-
talos_version = "v1.8"
2+
talos_version = "v1.9"
33
}
44

55
data "talos_machine_configuration" "this" {
66
cluster_name = var.cluster_name
77
machine_type = "controlplane"
88
cluster_endpoint = "https://${var.server_ip}:6443"
99
machine_secrets = talos_machine_secrets.this.machine_secrets
10-
talos_version = "v1.8"
10+
talos_version = "v1.9"
1111
config_patches = [
1212
templatefile("${path.module}/templates/controlplane_patch.yml", {})
1313
]

terraform-modules/talos/templates/controlplane_patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ machine:
55
install:
66
diskSelector:
77
size: '>= 100GB'
8-
image: ghcr.io/siderolabs/installer:v1.8.4
8+
image: ghcr.io/siderolabs/installer:v1.9.1
99
bootloader: true
1010
wipe: true
1111
kubelet:

0 commit comments

Comments
 (0)