switch image to standard microos
This commit is contained in:
parent
7ac37f0ddf
commit
1f0c825b23
@ -21,8 +21,8 @@ locals {
|
|||||||
MicroOS_install_commands = [
|
MicroOS_install_commands = [
|
||||||
"set -ex",
|
"set -ex",
|
||||||
"apt-get install -y aria2",
|
"apt-get install -y aria2",
|
||||||
"aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-k3s-kvm-and-xen.qcow2.meta4",
|
"aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-kvm-and-xen.qcow2.meta4",
|
||||||
"qemu-img convert -p -f qcow2 -O host_device $(ls -a | grep -ie '^opensuse.*microos.*k3s.*qcow2$') /dev/sda",
|
"qemu-img convert -p -f qcow2 -O host_device $(ls -a | grep -ie '^opensuse.*microos.*qcow2$') /dev/sda",
|
||||||
"sgdisk -e /dev/sda",
|
"sgdisk -e /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%",
|
||||||
|
4
main.tf
4
main.tf
@ -153,8 +153,8 @@ resource "hcloud_placement_group" "k3s" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data "hcloud_load_balancer" "traefik" {
|
/* data "hcloud_load_balancer" "traefik" {
|
||||||
name = "traefik"
|
name = "traefik"
|
||||||
|
|
||||||
depends_on = [hcloud_server.agents[0]]
|
depends_on = [hcloud_server.agents[0]]
|
||||||
}
|
} */
|
||||||
|
@ -67,7 +67,7 @@ resource "hcloud_server" "first_control_plane" {
|
|||||||
destination = "/etc/rancher/k3s/config.yaml"
|
destination = "/etc/rancher/k3s/config.yaml"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run the first control plane
|
/* # Run the first control plane
|
||||||
provisioner "remote-exec" {
|
provisioner "remote-exec" {
|
||||||
inline = [
|
inline = [
|
||||||
# set the hostname in a persistent fashion
|
# set the hostname in a persistent fashion
|
||||||
@ -154,7 +154,7 @@ resource "hcloud_server" "first_control_plane" {
|
|||||||
"sed -i 's/^- |[0-9]\\+$/- |/g' /tmp/post_install/kustomization.yaml",
|
"sed -i 's/^- |[0-9]\\+$/- |/g' /tmp/post_install/kustomization.yaml",
|
||||||
"kubectl apply -k /tmp/post_install",
|
"kubectl apply -k /tmp/post_install",
|
||||||
]
|
]
|
||||||
}
|
} */
|
||||||
|
|
||||||
network {
|
network {
|
||||||
network_id = hcloud_network.k3s.id
|
network_id = hcloud_network.k3s.id
|
||||||
|
Loading…
Reference in New Issue
Block a user