Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update talos to version 1.9.1 and add selinux workaround #90

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ephemeral/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "digitalocean_ssh_key" "spectrum" {
}

data "digitalocean_image" "talos" {
name = "talos-v1.8.4"
name = "talos-v1.9.1"
}

resource "digitalocean_droplet" "talos" {
Expand Down
41 changes: 41 additions & 0 deletions flux/components/kubevirt/app/disable-selinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See:
# - https://github.com/siderolabs/talos/issues/10083
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: disable-selinux
namespace: kube-system
labels:
app: disable-selinux
spec:
selector:
matchLabels:
app: disable-selinux
template:
metadata:
labels:
app: disable-selinux
spec:
containers:
- command:
- sh
- -exc
- test -f /host/sys/fs/selinux/enforce && mount -t tmpfs tmpfs /host/sys/fs/selinux; sleep infinity
image: docker.io/library/alpine
name: mount
securityContext:
privileged: true
volumeMounts:
- mountPath: /host
mountPropagation: Bidirectional
name: host-root
hostIPC: true
hostNetwork: true
hostPID: true
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /
name: host-root
1 change: 1 addition & 0 deletions flux/components/kubevirt/app/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
- https://github.com/kubevirt/kubevirt/releases/download/v1.4.0/kubevirt-cr.yaml
- https://github.com/kubevirt/containerized-data-importer/releases/download/v1.60.3/cdi-operator.yaml
- https://github.com/kubevirt/containerized-data-importer/releases/download/v1.60.3/cdi-cr.yaml
- disable-selinux.yml
patches:
- target:
kind: Deployment
Expand Down
4 changes: 2 additions & 2 deletions terraform-modules/talos/talos.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
resource "talos_machine_secrets" "this" {
talos_version = "v1.8"
talos_version = "v1.9"
}

data "talos_machine_configuration" "this" {
cluster_name = var.cluster_name
machine_type = "controlplane"
cluster_endpoint = "https://${var.server_ip}:6443"
machine_secrets = talos_machine_secrets.this.machine_secrets
talos_version = "v1.8"
talos_version = "v1.9"
config_patches = [
templatefile("${path.module}/templates/controlplane_patch.yml", {})
]
Expand Down
2 changes: 1 addition & 1 deletion terraform-modules/talos/templates/controlplane_patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ machine:
install:
diskSelector:
size: '>= 100GB'
image: ghcr.io/siderolabs/installer:v1.8.4
image: ghcr.io/siderolabs/installer:v1.9.1
bootloader: true
wipe: true
kubelet:
Expand Down
Loading