Fix Nextcloud (wtf broadcom)
This commit is contained in:
@@ -2,19 +2,38 @@
|
|||||||
|
|
||||||
;; Need to automate set-up/restore
|
;; Need to automate set-up/restore
|
||||||
(def config
|
(def config
|
||||||
{:stack [:vault-secrets :k8s:chart :k8s:httproute]
|
{:stack [:vault:prepare :k8s:chart :k8s:httproute]
|
||||||
:app-namespace "nextcloud"
|
:app-namespace "nextcloud"
|
||||||
:app-name "nextcloud"
|
:app-name "nextcloud"
|
||||||
:image-port 8080
|
:image-port 80
|
||||||
:vault-load-yaml true
|
:vault-load-yaml true
|
||||||
:k8s:chart-opts {:repositoryOpts {:repo "https://nextcloud.github.io/helm/"}
|
:k8s:chart-opts {:repositoryOpts {:repo "https://nextcloud.github.io/helm/"}
|
||||||
:values {:nextcloud {:host 'host
|
:values
|
||||||
:trustedDomains ['host 'app-name]}}
|
{:nextcloud {:host 'host
|
||||||
:transformations (fn [args _opts]
|
:containerPort 80
|
||||||
(let [kind (get-in args [:resource :kind])]
|
:trustedDomains ['host 'app-name]
|
||||||
(if (some #{kind} ["StatefulSet" "PersistentVolumeClaim" "Ingress"])
|
:persistence {:enabled true
|
||||||
(update-in args [:resource :metadata :annotations]
|
:storageClass "juicefs-sc"
|
||||||
#(assoc (or % {}) "pulumi.com/skipAwait" "true"))
|
:accessMode "ReadWriteMany"
|
||||||
args)))}
|
:size "1Ti"}}
|
||||||
:k8s:httproute-opts {:spec {::hostnames ['host]}}
|
:service {:port 80}
|
||||||
})
|
:mariadb {:enabled true
|
||||||
|
:architecture "standalone"
|
||||||
|
:primary {:persistence {:enabled true
|
||||||
|
:storageClass "hcloud-volumes"
|
||||||
|
:size "8Gi"}}
|
||||||
|
;; Obligatory what the fuck Broadcom, why are you like this. RIP Bitnami
|
||||||
|
:volumePermissions {:enabled true
|
||||||
|
:image {:registry "docker.io"
|
||||||
|
:repository "bitnami/os-shell"
|
||||||
|
:tag "latest"
|
||||||
|
:pullPolicy "Always"}}
|
||||||
|
}
|
||||||
|
|
||||||
|
:transformations (fn [args _opts]
|
||||||
|
(let [kind (get-in args [:resource :kind])]
|
||||||
|
(if (some #{kind} ["StatefulSet" "PersistentVolumeClaim" "Ingress"])
|
||||||
|
(update-in args [:resource :metadata :annotations]
|
||||||
|
#(assoc (or % {}) "pulumi.com/skipAwait" "true"))
|
||||||
|
args)))}}
|
||||||
|
:k8s:httproute-opts {:spec {::hostnames ['host]}}})
|
||||||
Reference in New Issue
Block a user