Repair lein test
This commit is contained in:
parent
9175c46f48
commit
9c236b954b
2 changed files with 28 additions and 15 deletions
|
@ -21,9 +21,7 @@
|
||||||
(is (= {:apiVersion "apps/v1"
|
(is (= {:apiVersion "apps/v1"
|
||||||
:kind "Deployment"
|
:kind "Deployment"
|
||||||
:metadata
|
:metadata
|
||||||
{:name "keycloak"
|
{:name "keycloak" :namespace "default" :labels {:app "keycloak"}},
|
||||||
:namespace "default"
|
|
||||||
:labels {:app "keycloak"}}
|
|
||||||
:spec
|
:spec
|
||||||
{:replicas 1
|
{:replicas 1
|
||||||
:selector {:matchLabels {:app "keycloak"}}
|
:selector {:matchLabels {:app "keycloak"}}
|
||||||
|
@ -32,11 +30,22 @@
|
||||||
:spec
|
:spec
|
||||||
{:containers
|
{:containers
|
||||||
[{:name "keycloak"
|
[{:name "keycloak"
|
||||||
:image "quay.io/keycloak/keycloak:13.0.0"
|
:image "quay.io/keycloak/keycloak:20.0.3"
|
||||||
|
:imagePullPolicy "IfNotPresent"
|
||||||
|
:args ["start"]
|
||||||
|
:volumeMounts
|
||||||
|
[{:name "keycloak-cert"
|
||||||
|
:mountPath "/etc/certs"
|
||||||
|
:readOnly true}]
|
||||||
:env
|
:env
|
||||||
[{:name "DB_VENDOR", :value "POSTGRES"}
|
[{:name "KC_HTTPS_CERTIFICATE_FILE"
|
||||||
{:name "DB_ADDR", :value "postgresql-service"}
|
:value "/etc/certs/tls.crt"}
|
||||||
{:name "DB_SCHEMA", :value "public"}
|
{:name "KC_HTTPS_CERTIFICATE_KEY_FILE"
|
||||||
|
:value "/etc/certs/tls.key"}
|
||||||
|
{:name "KC_HOSTNAME" :value "test.de"}
|
||||||
|
{:name "DB_VENDOR" :value "POSTGRES"}
|
||||||
|
{:name "DB_ADDR" :value "postgresql-service"}
|
||||||
|
{:name "DB_SCHEMA" :value "public"}
|
||||||
{:name "DB_DATABASE"
|
{:name "DB_DATABASE"
|
||||||
:valueFrom
|
:valueFrom
|
||||||
{:configMapKeyRef
|
{:configMapKeyRef
|
||||||
|
@ -48,8 +57,7 @@
|
||||||
{:name "DB_PASSWORD"
|
{:name "DB_PASSWORD"
|
||||||
:valueFrom
|
:valueFrom
|
||||||
{:secretKeyRef
|
{:secretKeyRef
|
||||||
{:name "postgres-secret"
|
{:name "postgres-secret" :key "postgres-password"}}}
|
||||||
:key "postgres-password"}}}
|
|
||||||
{:name "PROXY_ADDRESS_FORWARDING", :value "true"}
|
{:name "PROXY_ADDRESS_FORWARDING", :value "true"}
|
||||||
{:name "KEYCLOAK_USER"
|
{:name "KEYCLOAK_USER"
|
||||||
:valueFrom
|
:valueFrom
|
||||||
|
@ -58,10 +66,15 @@
|
||||||
{:name "KEYCLOAK_PASSWORD"
|
{:name "KEYCLOAK_PASSWORD"
|
||||||
:valueFrom
|
:valueFrom
|
||||||
{:secretKeyRef
|
{:secretKeyRef
|
||||||
{:name "keycloak-secret"
|
{:name "keycloak-secret" :key "keycloak-password"}}}]
|
||||||
:key "keycloak-password"}}}]
|
:ports [{:name "http" :containerPort 8080}]
|
||||||
:ports [{:name "http", :containerPort 8080}]
|
|
||||||
:readinessProbe
|
:readinessProbe
|
||||||
{:httpGet
|
{:httpGet {:path "/auth/realms/master", :port 8080}}}]
|
||||||
{:path "/auth/realms/master", :port 8080}}}]}}}}
|
:volumes
|
||||||
(cut/generate-deployment))))
|
[{:name "keycloak-cert"
|
||||||
|
:secret
|
||||||
|
{:secretName "keycloak"
|
||||||
|
:items
|
||||||
|
[{:key "tls.crt" :path "tls.crt"}
|
||||||
|
{:key "tls.key" :path "tls.key"}]}}]}}}}
|
||||||
|
(cut/generate-deployment {:fqdn "test.de"}))))
|
||||||
|
|
Loading…
Reference in a new issue