mirror of
https://github.com/jbowdre/vsphere-k8s.git
synced 2024-12-22 03:42:18 +00:00
merge fixes
This commit is contained in:
commit
b5bbc4e7a8
10 changed files with 85 additions and 91 deletions
|
@ -178,7 +178,6 @@ autoinstall:
|
||||||
hostname: ${ vm_guest_os_hostname }
|
hostname: ${ vm_guest_os_hostname }
|
||||||
users:
|
users:
|
||||||
- name: ${ build_username }
|
- name: ${ build_username }
|
||||||
passwd: "${ build_password }"
|
|
||||||
groups: [adm, cdrom, dip, plugdev, lxd, sudo]
|
groups: [adm, cdrom, dip, plugdev, lxd, sudo]
|
||||||
lock-passwd: false
|
lock-passwd: false
|
||||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/bin/bash -eu
|
#!/bin/bash -eu
|
||||||
echo '>> Enabling legacy VMware Guest Customization...'
|
echo '>> Enabling legacy VMware Guest Customization...'
|
||||||
echo 'disable_vmware_customization: true' | sudo tee -a /etc/cloud/cloud.cfg
|
if grep -q 'disable_vmware_customization' /etc/cloud/cloud.cfg; then
|
||||||
|
sudo sed -i 's/^disable_vmware_customization:.*$/disable_vmware_customization: True/' /etc/cloud/cloud.cfg
|
||||||
|
else
|
||||||
|
echo 'disable_vmware_customization: true' | sudo tee -a /etc/cloud/cloud.cfg
|
||||||
|
fi
|
||||||
sudo vmware-toolbox-cmd config set deployPkg enable-custom-scripts true
|
sudo vmware-toolbox-cmd config set deployPkg enable-custom-scripts true
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
# Prepare a VM to become a template.
|
# Prepare a VM to become a template.
|
||||||
|
|
||||||
echo '>> Clearing audit logs...'
|
echo '>> Clearing audit logs...'
|
||||||
sudo sh -c 'if [ -f /var/log/audit/audit.log ]; then
|
sudo sh -c 'if [ -f /var/log/audit/audit.log ]; then
|
||||||
cat /dev/null > /var/log/audit/audit.log
|
cat /dev/null > /var/log/audit/audit.log
|
||||||
fi'
|
fi'
|
||||||
sudo sh -c 'if [ -f /var/log/wtmp ]; then
|
sudo sh -c 'if [ -f /var/log/wtmp ]; then
|
||||||
cat /dev/null > /var/log/wtmp
|
cat /dev/null > /var/log/wtmp
|
||||||
fi'
|
fi'
|
||||||
sudo sh -c 'if [ -f /var/log/lastlog ]; then
|
sudo sh -c 'if [ -f /var/log/lastlog ]; then
|
||||||
|
@ -31,7 +31,7 @@ echo '>> Clearing host keys...'
|
||||||
sudo rm -f /etc/ssh/ssh_host_*
|
sudo rm -f /etc/ssh/ssh_host_*
|
||||||
|
|
||||||
echo '>> Removing Packer SSH key...'
|
echo '>> Removing Packer SSH key...'
|
||||||
sed -i '/packer_temp_key/d' ~/.ssh/authorized_keys
|
sed -i '/packer_key/d' ~/.ssh/authorized_keys
|
||||||
|
|
||||||
echo '>> Clearing machine-id...'
|
echo '>> Clearing machine-id...'
|
||||||
sudo truncate -s 0 /etc/machine-id
|
sudo truncate -s 0 /etc/machine-id
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
echo '>> Preserving network settings...'
|
echo '>> Preserving network settings...'
|
||||||
echo 'manual_cache_clean: True' | sudo tee -a /etc/cloud/cloud.cfg
|
if grep -q 'manual_cache_clean' /etc/cloud/cloud.cfg; then
|
||||||
|
sudo sed -i 's/^manual_cache_clean.*$/manual_cache_clean: True/' /etc/cloud/cloud.cfg
|
||||||
|
else
|
||||||
|
echo 'manual_cache_clean: True' | sudo tee -a /etc/cloud/cloud.cfg
|
||||||
|
fi
|
|
@ -1,67 +1,67 @@
|
||||||
/*
|
/*
|
||||||
DESCRIPTION:
|
DESCRIPTION :
|
||||||
Ubuntu Server 20.04 LTS Kubernetes node variables used by the Packer Plugin for VMware vSphere (vsphere-iso).
|
Ubuntu Server 20.04 LTS Kubernetes node variables used by the Packer Plugin for VMware vSphere (vsphere-iso).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// vSphere Credentials
|
// vSphere Credentials
|
||||||
vsphere_endpoint = "vcenter.lab.local"
|
vsphere_endpoint = "vcenter.lab.local"
|
||||||
vsphere_username = "packer"
|
vsphere_username = "packer"
|
||||||
vsphere_password = "VMware1!"
|
vsphere_password = "VMware1!"
|
||||||
vsphere_insecure_connection = true
|
vsphere_insecure_connection = true
|
||||||
|
|
||||||
// vSphere Settings
|
// vSphere Settings
|
||||||
vsphere_datacenter = "Datacenter 01"
|
vsphere_datacenter = "Datacenter 01"
|
||||||
vsphere_cluster = "cluster-01"
|
vsphere_cluster = "cluster-01"
|
||||||
vsphere_datastore = "datastore-01"
|
vsphere_datastore = "datastore-01"
|
||||||
vsphere_network = "network-01"
|
vsphere_network = "network-01"
|
||||||
vsphere_folder = "_Templates"
|
vsphere_folder = "_Templates"
|
||||||
|
|
||||||
// Guest Operating System Settings
|
// Guest Operating System Settings
|
||||||
vm_guest_os_language = "en_US"
|
vm_guest_os_language = "en_US"
|
||||||
vm_guest_os_keyboard = "us"
|
vm_guest_os_keyboard = "us"
|
||||||
vm_guest_os_timezone = "America/Chicago"
|
vm_guest_os_timezone = "America/Chicago"
|
||||||
vm_guest_os_type = "ubuntu64Guest"
|
vm_guest_os_type = "ubuntu64Guest"
|
||||||
|
|
||||||
// Virtual Machine Hardware Settings
|
// Virtual Machine Hardware Settings
|
||||||
vm_name = "k8s-u2004"
|
vm_name = "k8s-u2004"
|
||||||
vm_firmware = "efi-secure"
|
vm_firmware = "efi-secure"
|
||||||
vm_cdrom_type = "sata"
|
vm_cdrom_type = "sata"
|
||||||
vm_cpu_count = 2
|
vm_cpu_count = 2
|
||||||
vm_cpu_cores = 1
|
vm_cpu_cores = 1
|
||||||
vm_cpu_hot_add = true
|
vm_cpu_hot_add = true
|
||||||
vm_mem_size = 2048
|
vm_mem_size = 2048
|
||||||
vm_mem_hot_add = true
|
vm_mem_hot_add = true
|
||||||
vm_disk_size = 30720
|
vm_disk_size = 30720
|
||||||
vm_disk_controller_type = ["pvscsi"]
|
vm_disk_controller_type = ["pvscsi"]
|
||||||
vm_disk_thin_provisioned = true
|
vm_disk_thin_provisioned = true
|
||||||
vm_network_card = "vmxnet3"
|
vm_network_card = "vmxnet3"
|
||||||
common_vm_version = 19
|
common_vm_version = 19
|
||||||
common_tools_upgrade_policy = true
|
common_tools_upgrade_policy = true
|
||||||
common_remove_cdrom = true
|
common_remove_cdrom = true
|
||||||
|
|
||||||
// Template and Content Library Settings
|
// Template and Content Library Settings
|
||||||
common_template_conversion = true
|
common_template_conversion = true
|
||||||
common_content_library_name = null
|
common_content_library_name = null
|
||||||
common_content_library_ovf = false
|
common_content_library_ovf = false
|
||||||
common_content_library_destroy = true
|
common_content_library_destroy = true
|
||||||
common_content_library_skip_export = true
|
common_content_library_skip_export = true
|
||||||
|
|
||||||
// OVF Export Settings
|
// OVF Export Settings
|
||||||
common_ovf_export_enabled = false
|
common_ovf_export_enabled = false
|
||||||
common_ovf_export_overwrite = true
|
common_ovf_export_overwrite = true
|
||||||
common_ovf_export_path = ""
|
common_ovf_export_path = ""
|
||||||
|
|
||||||
// Removable Media Settings
|
// Removable Media Settings
|
||||||
common_iso_datastore = "datastore-01"
|
common_iso_datastore = "datastore-01"
|
||||||
iso_url = null
|
iso_url = null
|
||||||
iso_path = "_ISO"
|
iso_path = "_ISO"
|
||||||
iso_file = "ubuntu-20.04.5-live-server-amd64.iso"
|
iso_file = "ubuntu-20.04.5-live-server-amd64.iso"
|
||||||
iso_checksum_type = "sha256"
|
iso_checksum_type = "sha256"
|
||||||
iso_checksum_value = "5035be37a7e9abbdc09f0d257f3e33416c1a0fb322ba860d42d74aa75c3468d4"
|
iso_checksum_value = "5035be37a7e9abbdc09f0d257f3e33416c1a0fb322ba860d42d74aa75c3468d4"
|
||||||
|
|
||||||
// Boot Settings
|
// Boot Settings
|
||||||
vm_boot_order = "disk,cdrom"
|
vm_boot_order = "disk,cdrom"
|
||||||
vm_boot_wait = "4s"
|
vm_boot_wait = "4s"
|
||||||
vm_boot_command = [
|
vm_boot_command = [
|
||||||
"<esc><wait>",
|
"<esc><wait>",
|
||||||
"linux /casper/vmlinuz --- autoinstall ds=\"nocloud\"",
|
"linux /casper/vmlinuz --- autoinstall ds=\"nocloud\"",
|
||||||
|
@ -73,14 +73,14 @@ vm_boot_command = [
|
||||||
]
|
]
|
||||||
|
|
||||||
// Communicator Settings
|
// Communicator Settings
|
||||||
communicator_port = 22
|
communicator_port = 22
|
||||||
communicator_timeout = "20m"
|
communicator_timeout = "20m"
|
||||||
common_ip_wait_timeout = "20m"
|
common_ip_wait_timeout = "20m"
|
||||||
common_shutdown_timeout = "15m"
|
common_shutdown_timeout = "15m"
|
||||||
build_remove_keys = true
|
build_remove_keys = true
|
||||||
build_username = "admin"
|
build_username = "admin"
|
||||||
build_password = "VMware1!"
|
build_password = "VMware1!"
|
||||||
ssh_keys = [
|
ssh_keys = [
|
||||||
"ssh-ed25519 blahblahblah builder"
|
"ssh-ed25519 blahblahblah builder"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -105,4 +105,4 @@ pre_final_scripts = [
|
||||||
]
|
]
|
||||||
|
|
||||||
// Kubernetes Settings
|
// Kubernetes Settings
|
||||||
k8s_version = "1.25.3"
|
k8s_version = "1.25.3"
|
|
@ -41,7 +41,6 @@ locals {
|
||||||
"/meta-data" = file("data/meta-data")
|
"/meta-data" = file("data/meta-data")
|
||||||
"/user-data" = templatefile("data/user-data.pkrtpl.hcl", {
|
"/user-data" = templatefile("data/user-data.pkrtpl.hcl", {
|
||||||
build_username = var.build_username
|
build_username = var.build_username
|
||||||
build_password = bcrypt(var.build_password)
|
|
||||||
ssh_keys = concat([local.ssh_public_key], var.ssh_keys)
|
ssh_keys = concat([local.ssh_public_key], var.ssh_keys)
|
||||||
vm_guest_os_language = var.vm_guest_os_language
|
vm_guest_os_language = var.vm_guest_os_language
|
||||||
vm_guest_os_keyboard = var.vm_guest_os_keyboard
|
vm_guest_os_keyboard = var.vm_guest_os_keyboard
|
||||||
|
@ -108,7 +107,7 @@ source "vsphere-iso" "ubuntu-k8s" {
|
||||||
boot_wait = var.vm_boot_wait
|
boot_wait = var.vm_boot_wait
|
||||||
boot_command = var.vm_boot_command
|
boot_command = var.vm_boot_command
|
||||||
ip_wait_timeout = var.common_ip_wait_timeout
|
ip_wait_timeout = var.common_ip_wait_timeout
|
||||||
shutdown_command = local.shutdown_command
|
shutdown_command = var.vm_shutdown_command
|
||||||
shutdown_timeout = var.common_shutdown_timeout
|
shutdown_timeout = var.common_shutdown_timeout
|
||||||
|
|
||||||
// Communicator Settings and Credentials
|
// Communicator Settings and Credentials
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
// Defines the input variables.
|
// Defines the input variables.
|
||||||
|
|
||||||
// vSphere Credentials
|
// vSphere Credentials
|
||||||
|
|
||||||
variable "vsphere_endpoint" {
|
variable "vsphere_endpoint" {
|
||||||
type = string
|
type = string
|
||||||
description = "The fully qualified domain name or IP address of the vCenter Server instance. ('vcenter.lab.local')"
|
description = "The fully qualified domain name or IP address of the vCenter Server instance. ('vcenter.lab.local')"
|
||||||
|
@ -16,7 +15,6 @@ variable "vsphere_endpoint" {
|
||||||
variable "vsphere_username" {
|
variable "vsphere_username" {
|
||||||
type = string
|
type = string
|
||||||
description = "The username to login to the vCenter Server instance. ('packer')"
|
description = "The username to login to the vCenter Server instance. ('packer')"
|
||||||
sensitive = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vsphere_password" {
|
variable "vsphere_password" {
|
||||||
|
@ -32,7 +30,6 @@ variable "vsphere_insecure_connection" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// vSphere Settings
|
// vSphere Settings
|
||||||
|
|
||||||
variable "vsphere_datacenter" {
|
variable "vsphere_datacenter" {
|
||||||
type = string
|
type = string
|
||||||
description = "The name of the target vSphere datacenter. ('Lab Datacenter')"
|
description = "The name of the target vSphere datacenter. ('Lab Datacenter')"
|
||||||
|
@ -59,7 +56,6 @@ variable "vsphere_folder" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Virtual Machine Settings
|
// Virtual Machine Settings
|
||||||
|
|
||||||
variable "vm_name" {
|
variable "vm_name" {
|
||||||
type = string
|
type = string
|
||||||
description = "Name of the new VM to create."
|
description = "Name of the new VM to create."
|
||||||
|
@ -175,7 +171,6 @@ variable "common_remove_cdrom" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Template and Content Library Settings
|
// Template and Content Library Settings
|
||||||
|
|
||||||
variable "common_template_conversion" {
|
variable "common_template_conversion" {
|
||||||
type = bool
|
type = bool
|
||||||
description = "Convert the virtual machine to template. Must be 'false' for content library."
|
description = "Convert the virtual machine to template. Must be 'false' for content library."
|
||||||
|
@ -207,7 +202,6 @@ variable "common_content_library_skip_export" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Snapshot Settings
|
// Snapshot Settings
|
||||||
|
|
||||||
variable "common_snapshot_creation" {
|
variable "common_snapshot_creation" {
|
||||||
type = bool
|
type = bool
|
||||||
description = "Create a snapshot for Linked Clones."
|
description = "Create a snapshot for Linked Clones."
|
||||||
|
@ -221,7 +215,6 @@ variable "common_snapshot_name" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// OVF Export Settings
|
// OVF Export Settings
|
||||||
|
|
||||||
variable "common_ovf_export_enabled" {
|
variable "common_ovf_export_enabled" {
|
||||||
type = bool
|
type = bool
|
||||||
description = "Enable OVF artifact export."
|
description = "Enable OVF artifact export."
|
||||||
|
@ -240,7 +233,6 @@ variable "common_ovf_export_path" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removable Media Settings
|
// Removable Media Settings
|
||||||
|
|
||||||
variable "common_iso_datastore" {
|
variable "common_iso_datastore" {
|
||||||
type = string
|
type = string
|
||||||
description = "The name of the source vSphere datastore for ISO images. ('datastore-iso-01')"
|
description = "The name of the source vSphere datastore for ISO images. ('datastore-iso-01')"
|
||||||
|
@ -278,7 +270,6 @@ variable "cd_label" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boot Settings
|
// Boot Settings
|
||||||
|
|
||||||
variable "vm_boot_order" {
|
variable "vm_boot_order" {
|
||||||
type = string
|
type = string
|
||||||
description = "The boot order for virtual machines devices. ('disk,cdrom')"
|
description = "The boot order for virtual machines devices. ('disk,cdrom')"
|
||||||
|
@ -313,7 +304,6 @@ variable "common_shutdown_timeout" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Communicator Settings and Credentials
|
// Communicator Settings and Credentials
|
||||||
|
|
||||||
variable "build_username" {
|
variable "build_username" {
|
||||||
type = string
|
type = string
|
||||||
description = "The username to login to the guest operating system. ('admin')"
|
description = "The username to login to the guest operating system. ('admin')"
|
||||||
|
@ -346,7 +336,6 @@ variable "build_remove_keys" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Communicator Settings
|
// Communicator Settings
|
||||||
|
|
||||||
variable "communicator_port" {
|
variable "communicator_port" {
|
||||||
type = string
|
type = string
|
||||||
description = "The port for the communicator protocol."
|
description = "The port for the communicator protocol."
|
||||||
|
@ -370,7 +359,6 @@ variable "communicator_ssl" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Provisioner Settings
|
// Provisioner Settings
|
||||||
|
|
||||||
variable "cloud_init_apt_packages" {
|
variable "cloud_init_apt_packages" {
|
||||||
type = list(string)
|
type = list(string)
|
||||||
description = "A list of apt packages to install during the subiquity cloud-init installer."
|
description = "A list of apt packages to install during the subiquity cloud-init installer."
|
||||||
|
@ -396,7 +384,6 @@ variable "pre_final_scripts" {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kubernetes Settings
|
// Kubernetes Settings
|
||||||
|
|
||||||
variable "k8s_version" {
|
variable "k8s_version" {
|
||||||
type = string
|
type = string
|
||||||
description = "Kubernetes version to be installed. Latest stable is listed at https://dl.k8s.io/release/stable.txt"
|
description = "Kubernetes version to be installed. Latest stable is listed at https://dl.k8s.io/release/stable.txt"
|
||||||
|
|
|
@ -79,6 +79,7 @@ resource "vsphere_virtual_machine" "control" {
|
||||||
firmware = data.vsphere_virtual_machine.template.firmware
|
firmware = data.vsphere_virtual_machine.template.firmware
|
||||||
hardware_version = data.vsphere_virtual_machine.template.hardware_version
|
hardware_version = data.vsphere_virtual_machine.template.hardware_version
|
||||||
scsi_type = data.vsphere_virtual_machine.template.scsi_type
|
scsi_type = data.vsphere_virtual_machine.template.scsi_type
|
||||||
|
wait_for_guest_net_timeout = 10
|
||||||
|
|
||||||
extra_config = {
|
extra_config = {
|
||||||
"disk.EnableUUID" = "TRUE"
|
"disk.EnableUUID" = "TRUE"
|
||||||
|
@ -163,6 +164,7 @@ resource "vsphere_virtual_machine" "worker" {
|
||||||
firmware = data.vsphere_virtual_machine.template.firmware
|
firmware = data.vsphere_virtual_machine.template.firmware
|
||||||
hardware_version = data.vsphere_virtual_machine.template.hardware_version
|
hardware_version = data.vsphere_virtual_machine.template.hardware_version
|
||||||
scsi_type = data.vsphere_virtual_machine.template.scsi_type
|
scsi_type = data.vsphere_virtual_machine.template.scsi_type
|
||||||
|
wait_for_guest_net_timeout = 10
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
network_id = data.vsphere_network.network.id
|
network_id = data.vsphere_network.network.id
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
#!/bin/bash -eu
|
#!/bin/bash -eu
|
||||||
source ./env.txt
|
source ./env.txt
|
||||||
|
|
||||||
if [ ! -f /etc/kubernetes/manifests/kube-vip.yaml ]; then
|
|
||||||
echo ">> Configuring kube-vip..."
|
|
||||||
sudo ctr image pull ghcr.io/kube-vip/kube-vip:"${KUBEVIP_VER}"
|
|
||||||
sudo ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:"${KUBEVIP_VER}" vip /kube-vip manifest pod \
|
|
||||||
--interface ens192 \
|
|
||||||
--vip "${K8S_CONTROLPLANE_VIP}" \
|
|
||||||
--controlplane \
|
|
||||||
--arp \
|
|
||||||
--leaderElection | sudo tee /etc/kubernetes/manifests/kube-vip.yaml
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${HOSTNAME}" == "${K8S_INITIAL_NODE}" ]; then
|
if [ "${HOSTNAME}" == "${K8S_INITIAL_NODE}" ]; then
|
||||||
|
if [ ! -f /etc/kubernetes/manifests/kube-vip.yaml ]; then
|
||||||
|
echo ">> Configuring kube-vip..."
|
||||||
|
sudo ctr image pull ghcr.io/kube-vip/kube-vip:"${KUBEVIP_VER}"
|
||||||
|
sudo ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:"${KUBEVIP_VER}" vip /kube-vip manifest pod \
|
||||||
|
--interface ens192 \
|
||||||
|
--vip "${K8S_CONTROLPLANE_VIP}" \
|
||||||
|
--controlplane \
|
||||||
|
--arp \
|
||||||
|
--leaderElection | sudo tee /etc/kubernetes/manifests/kube-vip.yaml
|
||||||
|
fi
|
||||||
if ! kubectl get nodes 2>/dev/null; then
|
if ! kubectl get nodes 2>/dev/null; then
|
||||||
echo ">> Bootstrapping first controlplane node..."
|
echo ">> Bootstrapping first controlplane node..."
|
||||||
cat << EOF > kubeadminit.yaml
|
cat << EOF > kubeadminit.yaml
|
||||||
|
@ -57,7 +56,7 @@ EOF
|
||||||
|
|
||||||
echo ">> Creating discovery config..."
|
echo ">> Creating discovery config..."
|
||||||
kubectl -n kube-public get configmap cluster-info -o jsonpath='{.data.kubeconfig}' > discovery.yaml
|
kubectl -n kube-public get configmap cluster-info -o jsonpath='{.data.kubeconfig}' > discovery.yaml
|
||||||
sudo install -o root -g root -m 600 discovery.yaml /etc/kubernetes/discovery.yaml
|
sudo install -m 600 discovery.yaml /etc/kubernetes/discovery.yaml
|
||||||
else
|
else
|
||||||
echo ">> [ERROR] Cluster initialization unsuccessful on ${HOSTNAME}! <<"
|
echo ">> [ERROR] Cluster initialization unsuccessful on ${HOSTNAME}! <<"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -20,15 +20,15 @@ vm-domain = "lab.local"
|
||||||
# Control plane specs
|
# Control plane specs
|
||||||
vm-control-count = "3"
|
vm-control-count = "3"
|
||||||
vm-control-cpu = "2"
|
vm-control-cpu = "2"
|
||||||
vm-control-ram = "2048"
|
vm-control-ram = "4096"
|
||||||
vm-control-disk-size = "30"
|
vm-control-disk-size = "30"
|
||||||
vm-control-ip-address-start = "60"
|
vm-control-ip-address-start = "60"
|
||||||
vm-control-name = "k8s-control"
|
vm-control-name = "k8s-control"
|
||||||
|
|
||||||
# Worker specs
|
# Worker specs
|
||||||
vm-worker-count = "3"
|
vm-worker-count = "3"
|
||||||
vm-worker-cpu = "1"
|
vm-worker-cpu = "4"
|
||||||
vm-worker-ram = "1024"
|
vm-worker-ram = "8192"
|
||||||
vm-worker-disk-size = "30"
|
vm-worker-disk-size = "30"
|
||||||
vm-worker-ip-address-start = "64"
|
vm-worker-ip-address-start = "64"
|
||||||
vm-worker-name = "k8s-worker"
|
vm-worker-name = "k8s-worker"
|
||||||
|
|
Loading…
Reference in a new issue