File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
self-serve-infrastructure/k8s-services Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ resource "kubernetes_pod" "cats-and-dogs-backend" {
32
32
spec {
33
33
service_account_name = " ${ kubernetes_service_account . cats-and-dogs . metadata . 0 . name } "
34
34
container {
35
- image = " rberlind/cats-and-dogs-backend:k8s-auth "
35
+ image = " ${ var . backend_image } "
36
36
image_pull_policy = " Always"
37
37
name = " cats-and-dogs-backend"
38
38
command = [" /app/start_redis.sh" ]
@@ -89,7 +89,7 @@ resource "kubernetes_pod" "cats-and-dogs-frontend" {
89
89
spec {
90
90
service_account_name = " ${ kubernetes_service_account . cats-and-dogs . metadata . 0 . name } "
91
91
container {
92
- image = " rberlind/cats-and-dogs-frontend:k8s-auth "
92
+ image = " ${ var . frontend_image } "
93
93
image_pull_policy = " Always"
94
94
name = " cats-and-dogs-frontend"
95
95
env = {
Original file line number Diff line number Diff line change @@ -6,3 +6,13 @@ variable "tfe_organization" {
6
6
variable "k8s_cluster_workspace" {
7
7
description = " workspace to use for the k8s cluster"
8
8
}
9
+
10
+ variable "frontend_image" {
11
+ default = 'rberlind/ cats- and- dogs- frontend: k8s- auth'
12
+ description = " Docker image location of the frontend app"
13
+ }
14
+
15
+ variable "backend_image" {
16
+ default = 'rberlind/ cats- and- dogs- backend: k8s- auth'
17
+ description = " Docker image location of the frontend app"
18
+ }
You can’t perform that action at this time.
0 commit comments