mirror of
https://github.com/lukaszraczylo/rpi-home-cluster-setup.git
synced 2026-10-12 00:45:39 +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" {}
|
||||
@@ -14,5 +14,12 @@ nfs_storage = {
|
||||
adguard = "/mnt/drobo-storage/docker-volumes/adguard"
|
||||
}
|
||||
|
||||
# Images definition to make it easier to update
|
||||
images = {
|
||||
flood_torrent = "ghcr.io/lukaszraczylo/flood:1.2292.7"
|
||||
etcd = "gcr.io/etcd-development/etcd:v3.4.15-arm64"
|
||||
adguard = "adguard/adguardhome:arm64-edge"
|
||||
}
|
||||
|
||||
# ENV variable: TRAEFIK_API_KEY sets traefik_api_key
|
||||
# ENV variable: GH_USER, GH_PAT for authentication with private containers
|
||||
Reference in New Issue
Block a user