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:
2021-03-14 18:34:15 +00:00
parent 21a6fcaffa
commit 7a9a25aa7f
5 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
View File
@@ -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" {}
+7
View File
@@ -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