Add all the services I use and update several

This commit is contained in:
2025-11-14 21:20:52 -06:00
parent e7a1e1d5f3
commit 6dd0ea6193
14 changed files with 191 additions and 7 deletions

View File

@@ -1,9 +1,20 @@
(ns k8s.services.mesite.service)
(def config
{:stack [:vault-secrets :deployment :service :ingress]
:image-port 80
:app-namespace "generic"
:app-name "mesite"
:deployment-opts {:spec {:template {:spec {:imagePullSecrets [{:name "harbor-creds-secrets"}]
:containers [{:name 'app-name :image '(str repo "/" app-name ":latest")}]}}}}})
{:stack [:vault-secrets:prepare
:harbor:robot-account
:docker:image
[-> :k8s :namespace :deployment :service :ingress]]
:app-name "mesite"
:docker:image-opts {:context {:location "https://codeberg.org/Gigia/mesite.git"}
:registry {:server 'repo
:username '(-> :harbor:robot-account .-name)
:password '(-> :harbor:robot-account .-secret)}
:tags ['(str registry-base "/" registry-namespace "/" app-name)]
:push true}
:harbor:robot-account-opts {:permissions [{:kind "project"
:namespace 'registry-namespace
:access [{:action "push" :resource "repository"}
{:action "list" :resource "repository"}]}]}
:k8s:deployment-opts {:spec {:template {:spec {:imagePullSecrets [{:name "harbor-creds-secrets"}]}}}}})