ingress now works

This commit is contained in:
jem 2021-05-21 12:12:41 +02:00
parent ca8a7b2a11
commit 0d2061b37e

View file

@ -26,8 +26,11 @@
letsencrypt-issuer (str "letsencrypt-" (name issuer) "-issuer")] letsencrypt-issuer (str "letsencrypt-" (name issuer) "-issuer")]
(-> (->
(yaml/from-string (yaml/load-resource "ingress.yaml")) (yaml/from-string (yaml/load-resource "ingress.yaml"))
(assoc-in [:metadata :annotations :cert-manager.io/cluster-issuer] letsencrypt-issuer)))) (assoc-in [:metadata :annotations :cert-manager.io/cluster-issuer] letsencrypt-issuer)
(assoc-in [:spec :tls] [{:hosts [fqdn], :secretName "keycloak-secret"}])
(assoc-in [:spec :rules] [{:host fqdn
:http {:paths [{:backend {:serviceName "keycloak"
:servicePort 8080}}]}}]))))
(defn-spec generate any? (defn-spec generate any?
[my-config string? [my-config string?
my-auth string?] my-auth string?]