mob
This commit is contained in:
parent
ab0e8f3ff3
commit
4b30021201
1 changed files with 22 additions and 1 deletions
|
@ -60,4 +60,25 @@
|
|||
{:tls [{:hosts ["test.de"], :secretName "keycloak-secret"}]
|
||||
:rules '({:host "test.de", :http {:paths [{:backend {:serviceName "keycloak", :servicePort 8080}}]}})}}
|
||||
(cut/generate-ingress {:fqdn "test.de"
|
||||
:issuer :prod}))))
|
||||
:issuer :prod}))))
|
||||
|
||||
(deftest should-generate-deployment
|
||||
(is (= {{:apiVersion "apps/v1"
|
||||
:kind "Deployment"
|
||||
:metadata {:name "keycloak", :namespace "default", :labels {:app "keycloak"}}
|
||||
:spec
|
||||
{:replicas 1
|
||||
:selector {:matchLabels {:app "keycloak"}}
|
||||
:template
|
||||
{:metadata {:labels {:app "keycloak"}}
|
||||
:spec
|
||||
{:containers
|
||||
[({:name "keycloak"
|
||||
:image "quay.io/keycloak/keycloak:13.0.0"
|
||||
:env
|
||||
({:name "KEYCLOAK_USER", :value "admin"}
|
||||
{:name "KEYCLOAK_PASSWORD", :value "admin"}
|
||||
{:name "PROXY_ADDRESS_FORWARDING", :value "true"})
|
||||
:ports ({:name "http", :containerPort 8080})
|
||||
:readinessProbe {:httpGet {:path "/auth/realms/master", :port 8080}}})]}}}}}
|
||||
(cut/generate-deployment))))
|
Loading…
Reference in a new issue