diff --git a/src/main/k8s/services/nextcloud/service.cljs b/src/main/k8s/services/nextcloud/service.cljs index 6772204..7afa570 100644 --- a/src/main/k8s/services/nextcloud/service.cljs +++ b/src/main/k8s/services/nextcloud/service.cljs @@ -1,12 +1,13 @@ (ns k8s.services.nextcloud.service) +;; Need to automate set-up/restore (def config - {:stack [:vault-secrets :chart :ingress] + {:stack [:vault-secrets :k8s:chart :k8s:httproute] :app-namespace "nextcloud" :app-name "nextcloud" :image-port 8080 :vault-load-yaml true - :chart-opts {:repositoryOpts {:repo "https://nextcloud.github.io/helm/"} + :k8s:chart-opts {:repositoryOpts {:repo "https://nextcloud.github.io/helm/"} :values {:nextcloud {:host 'host :trustedDomains ['host 'app-name]}} :transformations (fn [args _opts] @@ -14,4 +15,6 @@ (if (some #{kind} ["StatefulSet" "PersistentVolumeClaim" "Ingress"]) (update-in args [:resource :metadata :annotations] #(assoc (or % {}) "pulumi.com/skipAwait" "true")) - args)))}}) \ No newline at end of file + args)))} + :k8s:httproute-opts {:spec {::hostnames ['host]}} + }) \ No newline at end of file