mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Use packer to create a base preconfigured base image
This commit is contained in:
parent
3090cc6818
commit
3731d10987
12 changed files with 153 additions and 68 deletions
3
terraform/.gitignore
vendored
3
terraform/.gitignore
vendored
|
|
@ -1,3 +0,0 @@
|
|||
.terraform*
|
||||
terraform.tfstate
|
||||
terraform.tfstate.backup
|
||||
|
|
@ -42,7 +42,7 @@ resource "scaleway_server" "master" {
|
|||
resource "scaleway_server" "proxy1" {
|
||||
count = 1
|
||||
name = "proxy1"
|
||||
image = "${data.scaleway_image.ubuntu_mini.id}"
|
||||
image = "${data.scaleway_image.ubuntu.id}"
|
||||
type = "${var.proxy_instance_type}"
|
||||
public_ip = "51.158.77.6"
|
||||
state = "running"
|
||||
|
|
@ -52,7 +52,7 @@ resource "scaleway_server" "proxy1" {
|
|||
resource "scaleway_server" "proxy2" {
|
||||
count = 1
|
||||
name = "proxy2"
|
||||
image = "${data.scaleway_image.ubuntu_mini.id}"
|
||||
image = "${data.scaleway_image.ubuntu.id}"
|
||||
type = "${var.proxy_instance_type}"
|
||||
state = "running"
|
||||
tags = ["k8s","k8s_proxy","secondary"]
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ variable "architecture" {
|
|||
}
|
||||
|
||||
variable "image" {
|
||||
default = "Ubuntu Xenial"
|
||||
default = "ubuntu-bionic-k8s"
|
||||
}
|
||||
|
||||
variable "mini_image" {
|
||||
|
|
@ -23,7 +23,7 @@ variable "master_instance_count" {
|
|||
}
|
||||
|
||||
variable "proxy_instance_type" {
|
||||
default = "START1-XS"
|
||||
default = "START1-S"
|
||||
}
|
||||
|
||||
variable "worker_instance_type" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue