traefic ingres proxy
This commit is contained in:
parent
a470dbc5fc
commit
f6598e68f6
3 changed files with 13 additions and 18 deletions
|
@ -11,15 +11,11 @@
|
||||||
|
|
||||||
(def config-defaults {:issuer :staging})
|
(def config-defaults {:issuer :staging})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password
|
(def auth? (s/keys :req-un [::postgres/postgres-db-user ::postgres/postgres-db-password
|
||||||
::nextcloud/nextcloud-admin-user ::nextcloud/nextcloud-admin-password
|
::nextcloud/nextcloud-admin-user ::nextcloud/nextcloud-admin-password
|
||||||
::aws-access-key-id ::aws-secret-access-key
|
::aws-access-key-id ::aws-secret-access-key
|
||||||
::restic-password]))
|
::restic-password]))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn-spec k8s-objects any?
|
(defn-spec k8s-objects any?
|
||||||
[config (s/merge nextcloud/config? auth?)]
|
[config (s/merge nextcloud/config? auth?)]
|
||||||
(let [storage-class (if (contains? config :postgres-data-volume-path) :manual :local-path)]
|
(let [storage-class (if (contains? config :postgres-data-volume-path) :manual :local-path)]
|
||||||
|
|
|
@ -4,12 +4,12 @@ metadata:
|
||||||
name: ingress-cloud
|
name: ingress-cloud
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-staging-issuer
|
cert-manager.io/cluster-issuer: letsencrypt-staging-issuer
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "256m"
|
ingress.kubernetes.io/proxy-body-size: "256m"
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
ingress.kubernetes.io/rewrite-target: /
|
||||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
|
ingress.kubernetes.io/proxy-connect-timeout: "300"
|
||||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
|
ingress.kubernetes.io/proxy-send-timeout: "300"
|
||||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
|
ingress.kubernetes.io/proxy-read-timeout: "300"
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
|
|
|
@ -33,14 +33,13 @@
|
||||||
:metadata
|
:metadata
|
||||||
{:name "ingress-cloud"
|
{:name "ingress-cloud"
|
||||||
:annotations
|
:annotations
|
||||||
{:cert-manager.io/cluster-issuer
|
{:cert-manager.io/cluster-issuer "letsencrypt-staging-issuer"
|
||||||
"letsencrypt-staging-issuer"
|
:ingress.kubernetes.io/proxy-body-size "256m"
|
||||||
:nginx.ingress.kubernetes.io/proxy-body-size "256m"
|
:ingress.kubernetes.io/ssl-redirect "true"
|
||||||
:nginx.ingress.kubernetes.io/ssl-redirect "true"
|
:ingress.kubernetes.io/rewrite-target "/"
|
||||||
:nginx.ingress.kubernetes.io/rewrite-target "/"
|
:ingress.kubernetes.io/proxy-connect-timeout "300"
|
||||||
:nginx.ingress.kubernetes.io/proxy-connect-timeout "300"
|
:ingress.kubernetes.io/proxy-send-timeout "300"
|
||||||
:nginx.ingress.kubernetes.io/proxy-send-timeout "300"
|
:ingress.kubernetes.io/proxy-read-timeout "300"}
|
||||||
:nginx.ingress.kubernetes.io/proxy-read-timeout "300"}
|
|
||||||
:namespace "default"}
|
:namespace "default"}
|
||||||
:spec
|
:spec
|
||||||
{:tls [{:hosts ["xx"], :secretName "cloud-secret"}]
|
{:tls [{:hosts ["xx"], :secretName "cloud-secret"}]
|
||||||
|
|
Loading…
Reference in a new issue