mirror of
https://github.com/lukaszraczylo/rpi-home-cluster-setup.git
synced 2026-10-18 01:27:31 +00:00
Abstract customised images.
Images currently set are either multiarch or ARM64. Users willing to create their own k8s cluster in different architectures should find it easier to change images causing problems to desirable format.
This commit is contained in:
@@ -180,7 +180,7 @@ resource "kubernetes_deployment" "adguard" {
|
||||
}
|
||||
container {
|
||||
name = "adguard"
|
||||
image = "adguard/adguardhome:arm64-edge"
|
||||
image = var.images.adguard
|
||||
port {
|
||||
container_port = 53
|
||||
protocol = "TCP"
|
||||
|
||||
@@ -83,7 +83,7 @@ resource "kubernetes_cron_job" "etcd_backup" {
|
||||
}
|
||||
container {
|
||||
name = "etcd-backup"
|
||||
image = "gcr.io/etcd-development/etcd:v3.4.15-arm64"
|
||||
image = var.images.etcd
|
||||
env {
|
||||
name = "ETCDCTL_API"
|
||||
value = "3"
|
||||
|
||||
@@ -149,7 +149,7 @@ resource "kubernetes_deployment" "flood-torrent" {
|
||||
}
|
||||
container {
|
||||
name = "flood-torrent"
|
||||
image = "ghcr.io/lukaszraczylo/flood:1.2292.7"
|
||||
image = var.images.flood_torrent
|
||||
env {
|
||||
name = "FLOOD_DISABLE_AUTH"
|
||||
value = "true"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
variable "network_subnet" {}
|
||||
variable "nfs_storage" {}
|
||||
variable "net_hosts" {}
|
||||
variable "images" {}
|
||||
variable "traefik_api_key" {}
|
||||
variable "github_user" {}
|
||||
variable "github_pat" {}
|
||||
Reference in New Issue
Block a user