Clean up and remove httproute

This commit is contained in:
2025-12-03 01:34:27 -06:00
parent 07216ddae5
commit 6b260de324

View File

@@ -2,7 +2,7 @@
(ns k8s.services.matrix.mmr.service) (ns k8s.services.matrix.mmr.service)
(def config (def config
{:stack [:vault:prepare [:k8s :config-map :deployment :service :httproute]] {:stack [:vault:prepare [:k8s :config-map :deployment :service]]
:image-port 80 :image-port 80
:app-namespace "matrix" :app-namespace "matrix"
:app-name "matrix-media-repo" :app-name "matrix-media-repo"
@@ -19,7 +19,7 @@
:accessTokens {:appservices [{:id "discord" :accessTokens {:appservices [{:id "discord"
:asToken discord-app-service-token :asToken discord-app-service-token
:senderUserId discord-send-user-id :senderUserId discord-send-user-id
:userNamespaces {:regex user-namespace-regex}}]} :userNamespaces [{:regex user-namespace-regex}]}]}
:admins [admin] :admins [admin]
:datastores [{:type "s3" :datastores [{:type "s3"
:id s3-id :id s3-id
@@ -32,18 +32,27 @@
:bucketName s3-bucket-name :bucketName s3-bucket-name
:region s3-region}}] :region s3-region}}]
:rateLimit {:enabled false}})}} :rateLimit {:enabled false}})}}
:k8s:deployment-opts {:spec {:template {:spec {:containers [{:args ["-config" "/etc/media-repo.yaml"] :k8s:deployment-opts
:name 'app-name {:spec
:image '(str repo "/" app-name ":v1.3.8") {:template
:volumeMounts [{:name "config-vol" {:spec
:mountPath "/mmr" {:containers
:subPath "media-repo.yaml"} [{:name 'app-name
{:name "temp-vol" :image '(str repo "/" app-name ":v1.3.8")
:mountPath "/tmp/media-repo"}]}] :command ["/usr/local/bin/media_repo"]
:volumes [{:name "config-vol" :configMap {:name "mmr-config"}} :args ["-config" "/data/media-repo.yaml"]
{:name "temp-vol"
:emptyDir {}}]}}}} :volumeMounts [{:name "config-vol"
:k8s:httproute-opts {:spec {::hostnames ['host]}}}) :mountPath "/data/media-repo.yaml"
:subPath "media-repo.yaml"}
{:name "temp-vol"
:mountPath "/tmp/media-repo"}]}]
:volumes
[{:name "config-vol" :configMap {:name "mmr-config"}}
{:name "temp-vol" :emptyDir {}}]}}}}
})