added kured and fixed initial ignition disk partitioning
This commit is contained in:
parent
fba212de47
commit
919e1087f8
@ -5,4 +5,4 @@ resources:
|
|||||||
- "https://github.com/weaveworks/kured/releases/download/1.9.1/kured-1.9.1-dockerhub.yaml"
|
- "https://github.com/weaveworks/kured/releases/download/1.9.1/kured-1.9.1-dockerhub.yaml"
|
||||||
|
|
||||||
patchesStrategicMerge:
|
patchesStrategicMerge:
|
||||||
- patch_latest.yaml
|
- patch.yaml
|
@ -1,22 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: DaemonSet
|
|
||||||
metadata:
|
|
||||||
name: kured
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
name: kured
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
name: kured
|
|
||||||
spec:
|
|
||||||
serviceAccountName: kured
|
|
||||||
containers:
|
|
||||||
- name: kured
|
|
||||||
image: docker.io/weaveworks/kured:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
command:
|
|
||||||
- /usr/bin/kured
|
|
||||||
- --reboot-command="/usr/bin/systemctl reboot"
|
|
@ -20,7 +20,7 @@ locals {
|
|||||||
"partprobe /dev/sda",
|
"partprobe /dev/sda",
|
||||||
"parted -s /dev/sda resizepart 4 99%",
|
"parted -s /dev/sda resizepart 4 99%",
|
||||||
"parted -s /dev/sda mkpart primary ext2 99% 100%",
|
"parted -s /dev/sda mkpart primary ext2 99% 100%",
|
||||||
"sleep 5 && fdisk -l /dev/sda",
|
"udevadm settle",
|
||||||
"mount /dev/sda4 /mnt/ && btrfs filesystem resize max /mnt && umount /mnt",
|
"mount /dev/sda4 /mnt/ && btrfs filesystem resize max /mnt && umount /mnt",
|
||||||
"mke2fs -L ignition /dev/sda5",
|
"mke2fs -L ignition /dev/sda5",
|
||||||
"mount /dev/sda5 /mnt",
|
"mount /dev/sda5 /mnt",
|
||||||
|
3
main.tf
3
main.tf
@ -166,8 +166,7 @@ resource "local_file" "hetzner_csi_config" {
|
|||||||
|
|
||||||
resource "local_file" "kured_config" {
|
resource "local_file" "kured_config" {
|
||||||
content = templatefile("${path.module}/templates/kured.yaml.tpl", {
|
content = templatefile("${path.module}/templates/kured.yaml.tpl", {
|
||||||
version = data.github_release.kured.release_tag
|
version = data.github_release.kured.release_tag
|
||||||
patch_name = var.kured_container_latest ? "patch_latest" : "patch"
|
|
||||||
})
|
})
|
||||||
filename = "${path.module}/kured/kustomization.yaml"
|
filename = "${path.module}/kured/kustomization.yaml"
|
||||||
file_permission = "0644"
|
file_permission = "0644"
|
||||||
|
@ -5,4 +5,4 @@ resources:
|
|||||||
- "https://github.com/weaveworks/kured/releases/download/${version}/kured-${version}-dockerhub.yaml"
|
- "https://github.com/weaveworks/kured/releases/download/${version}/kured-${version}-dockerhub.yaml"
|
||||||
|
|
||||||
patchesStrategicMerge:
|
patchesStrategicMerge:
|
||||||
- ${patch_name}.yaml
|
- patch.yaml
|
@ -26,9 +26,6 @@ agents_num = 2
|
|||||||
# hetzner_ccm_containers_latest = true
|
# hetzner_ccm_containers_latest = true
|
||||||
# hetzner_csi_containers_latest = true
|
# hetzner_csi_containers_latest = true
|
||||||
|
|
||||||
# If you want to kustomize the kured container with the latest image tag and imagePullPolicy Always, set this to true, by default it's false
|
|
||||||
# kured_container_latest = true
|
|
||||||
|
|
||||||
# If you want to use letsencrypt with tls Challenge, the email address is used to send you certificates expiration notices
|
# If you want to use letsencrypt with tls Challenge, the email address is used to send you certificates expiration notices
|
||||||
# traefik_acme_tls = true
|
# traefik_acme_tls = true
|
||||||
# traefik_acme_email = "mail@example.com"
|
# traefik_acme_email = "mail@example.com"
|
||||||
|
@ -79,12 +79,6 @@ variable "hetzner_csi_containers_latest" {
|
|||||||
description = "Whether to kustomize the Hetzner CSI manifest with the latest or canary tags for containers and imagePullPolicy of Always"
|
description = "Whether to kustomize the Hetzner CSI manifest with the latest or canary tags for containers and imagePullPolicy of Always"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "kured_container_latest" {
|
|
||||||
type = bool
|
|
||||||
default = false
|
|
||||||
description = "Whether to kustomize the Kured container with the latest tag and imagePullPolicy of Always"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "traefik_acme_tls" {
|
variable "traefik_acme_tls" {
|
||||||
type = bool
|
type = bool
|
||||||
default = false
|
default = false
|
||||||
|
Loading…
Reference in New Issue
Block a user