Add needed build args and imagePullSecrets

This commit is contained in:
2025-10-20 21:45:15 -05:00
parent bbdda51337
commit 8f3c0f3a76

View File

@@ -1,9 +1,12 @@
(ns k8s.services.foundryvtt.service) (ns k8s.services.foundryvtt.service)
(def config (def config
{:stack [:docker-image :vault-secrets :deployment :service :ingress] {:stack [:vault-secrets :docker-image :deployment :service :ingress]
:image-port 80 :image-port 80
:app-namespace "generic" :app-namespace "generic"
:app-name "foundry" :app-name "foundry"
:image-opts {:imageName '(str repo "/" app-name ":latest")} :image-opts {:build {:args {:FOUNDRY_USERNAME 'FOUNDRY_USERNAME
:deployment-opts {:spec {:template {:spec {:containers [{:name 'app-name :image '(str repo "/" app-name ":latest")}]}}}}}) :FOUNDRY_PASSWORD 'FOUNDRY_PASSWORD}}
:imageName '(str repo "/" app-name ":latest")}
:deployment-opts {:spec {:template {:spec {:imagePullSecrets [{:name "harbor-creds-secrets"}]
:containers [{:name 'app-name :image '(str repo "/" app-name ":latest")}]}}}}})